Using dsPIC33F and PIC24H/24F Devices
4.8
ADDITIONAL CODE EXAMPLES
The dsPICDEM? 1.1 Plus Development Board Kit CD contains additional code
examples that exercise various features and peripherals of the dsPIC33F device:
CE111 – External Interrupt Pins:
Microchip's 16-bit dsPIC Digital Signal Controllers feature up to 5 external interrupt
pins: INT0 through INT4. These pins may be configured to interrupt on either a rising
or a falling edge of a signal.
This code example, written in C, demonstrates how the external interrupt pins can be
configured to interrupt the CPU. Both initialization and interrupt service routines have
been provided.
CE113 – Timer1 Used in Real-Time Clock Applications:
dsPIC Digital Signal Controllers feature several on-chip general purpose timers. Of
these, the Timer1 module has the capability to be clocked by an external asynchronous
32 kHz crystal connected to the device via the SOSCI and SOSCO pins. The attached
code example demonstrates how Timer1 may be configured to use the 32 kHz
secondary oscillator for a real-time clock (RTC) application.
Configuring Timer1 for the real-time clock application is a two step process. In the first
step, the code demonstrates how the secondary oscillator can be enabled via a special
write sequence to the OSCCON register. In the second step, the code demonstrates
how the Timer1 is configured to use an external asynchronous clock. In addition to
these steps, the code also demonstrates Timer1 interrupt operation.
CE114 – UART Loopback:
In this code examples, 256 byte transmit buffer is transmitted using UART and received
back in the receive buffer. This operation happens continuously.
CE121 – ADC Channel Scanning:
In this example, Timer 3 is set up to time-out every 125 microseconds (8 kHz rate). As
a result, the module stops sampling and triggers an A/D conversion on every Timer3
time-out (i.e., Ts=125μs).
ADC is configured in 10-bit mode to sequentially scan AIN0, AIN1, AIN2, AIN3, AIN4
and AIN5 on Timer 3 interrupt. It takes six Timer3 time-out periods to scan through all
the six analog inputs.
? 2006 Microchip Technology Inc.
DS70099D-page 59
相关PDF资料
DM330012 KIT USB STARTER FOR DSPIC33E
DM330013 MICROSTICK DSPIC33F/PIC24H BOARD
DNET1 SURGE SUPPRESSOR ETHERNET RJ45
DR-8094 RACK DOUBLE 84"X20.25"X36" BLK
DR-IAC5E INPUT MODULE AC 5VDC
DRIDC24A INPUT MODULE DC 34MA 24VDC
DRODC24 OUTPUT MODULE DC 13MA 24VDC
DRR-40A MODULE REDUNDANCY 40A DIN RAIL
相关代理商/技术参数
DM300027 功能描述:开发板和工具包 - PIC / DSPIC 16-bit Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM-3-000-K 制造商:PacTec 功能描述:Case, Plastic; ABS; Black; 11.46 in.; 3.38 in.; 10.4 in.; UL 94-HB Rated 制造商:PacTec 功能描述:ENCLOSURE, DESKTOP, PLASTIC, BLACK; Enclosure Type:Desktop; Enclosure Material:Plastic; Body Color:Black; External Height - Imperial:3.38"; External Height - Metric:86mm; External Width - Imperial:10.4"; External Width - Metric:264mm;RoHS Compliant: Yes
DM-300-C 制造商:Greenlee Textron Inc 功能描述:DMM 1000V RMS
DM-301 制造商:Labfacility Limited 功能描述:SENSOR PT100 THIN FILM 2X2.3MM CL B 制造商:LABFACILITY 功能描述:SENSOR, PT100, THIN FILM, 2X2.3MM, CL B 制造商:LABFACILITY 功能描述:TEMPERATURE RTD SENSOR, -70C to +500C, 100 OHM; Sensing Temperature Min:-70C; Sensing Temperature Max:+500C; Resistance:100ohm; Sensor Terminals:Through Hole; Temperature Sensing Range:-70C to +500C ;RoHS Compliant: Yes
DM30103J 制造商:ELMCO 功能描述:
DM30113G 制造商:n/a 功能描述:DM30X311 S7C8B
DM30-113G 制造商:n/a 功能描述:DM30X311 S7C8B
DM30133J 制造商:n/a 功能描述:DM30X313 S7C8B