dsPIC30F Demonstration Program Operation
3.4.3.6
TIMER1
Timer1 is a 16-bit timer that uses the instruction cycle as its time base. It is configured
to time out and generate an interrupt every 125 microseconds. The Timer1 Interrupt
Service Routine (ISR) loads the SPI 2 buffer with a value from a sine table. The SPI 2
module is then used to transmit the sine sample to digital potentiometer MCP41010.
The MCP41010 output is connected to pin AN3/RB3 of the dsPIC30F device.
3.4.3.7
TIMER2
LEDs 1-4 count upward in binary form from 0 through 15. The count rate is controlled
by the 16-bit Timer2 module, which expires every second as it is operated in a 256:1
prescale mode, with the instruction cycle being the count interval.
3.4.3.8
TIMER3
The Timer3 count is configured to expire every 1.14 seconds. In the Timer3 ISR, a
software flag is used to determine whether data needs to be updated to the PC via the
UART2 module. Thus data is not transmitted to the PC all the time so that the data on
the HyperTerminal window is legible. Data sent to the LCD, however, is refreshed
continuously since it does not have a “scrolling” effect.
3.5
dsPIC30F DEMONSTRATION PERFORMANCE METRICS
The dsPIC30F performance metrics are primarily based upon acquisition and
processing of the 256 discrete samples. The discrete samples are acquired by the ADC
sampling of a sine-wave signal applied to analog channel input AN3.
The sine-wave signal is generated as a result of stepping the MCP41010 digital
potentiometer at an 8 kHz rate with its output applied to a low-pass filter with a cutoff
frequency of approximately 4 kHz.
This acquisition and processing sequence repeats in a continuous loop.
Upon user command via the LCD menu system (or optionally from PC keys <0>-<9>),
DTMF tones are generated. During this time additional CPU MIPS are required.
This demonstration was developed for the development board that is supplied with a
7.3728 MHz crystal. The dsPIC30F is programmed for the XTx4PLL mode of
operation, effectively yielding 7.3728 MIPS. Additional MIPS are not required for this
demo but could have been obtained by using the XTx8PLL and XTx16PLL modes of
operation yielding 14.7456 and 29.4912 MIPS.
Note:
? 2006 Microchip Technology Inc.
The demo code as supplied has specific timing parameters derived from
the 7.3728 MHz crystal with the XTx4PLL mode. Changing the device time
base will require modification of several time-specific parameters.
DS70099D-page 39
相关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