参数资料
型号: DM300004-2
厂商: Microchip Technology
文件页数: 51/114页
文件大小: 0K
描述: BOARD DEMO DSPICDEM.NET 2
标准包装: 1
系列: dsPIC™
类型: 微控制器
适用于相关产品: CTR-21 PSTN,以太网 NIC
所含物品: 板,线缆,CD,电源
相关产品: DSPIC30F6014AT-30I/PF-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014AT-20E/PF-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014A-20E/PF-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014A-30I/PF-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014AT-30I/PT-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014AT-20I/PT-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014AT-20E/PT-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F6014A-20E/PT-ND - IC DSPIC MCU/DSP 144K 80TQFP
DSPIC30F5013T20EP-ND - IC DSPIC MCU/DSP 66K 80TQFP
DSPIC30F5013-20EP-ND - IC DSPIC MCU/DSP 66K 80TQFP
更多...
Quick Start Program
3.9.3
3.9.3.1
Interrupts Used in the Demonstration Program
EXTERNAL INTERRUPTS TO MAIN ROUTINE
External interrupts INT1-INT3 are controlled by switches S1-S3 respectively.
Each switch is monitored by the respective Interrupt pin, INT1-INT3. For each switch
detected the variable “hook_status” is modified in the ISR. The variable “hook_status”
is then monitored in the main loop and based upon the variable state one of three
actions are taken.
3.9.3.2
12-BIT ADC INTERRUPTS
The 12-bit module is configured to continually sample and convert channels AN3
(temperature sensor U2), AN4 (RP1) and AN5 (RP2). When all three signals have been
converted an ADC module based interrupt occurs and the ISR code simply saves off
the converted values to variables defined in data memory. Outside the interrupt this
“raw” data is converted to ASCII by a simple conversion routine and then used by the
UART and LCD display code modules.
3.9.3.3
UART TRANSMIT INTERRUPTS
Approximately every 200 mS, data is transmitted via the UART to the HyperTerminal
session window. The term “data” refers to the following:
? Analog data such as RP1 and RP2 voltages
? Temperature sensor data, U2
3.9.3.4
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 2.2 milliseconds. The Timer1 Interrupt
Service Routine (ISR) simply toggles LED1 and clears the associated interrupt flag.
3.9.3.5
TIMER2
Timer2 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 3.95 milliseconds. The Timer2 Interrupt
Service Routine (ISR) increments a variable, tests bit 9 of this variable and if set toggles
LED2. If LED2 is toggled the ISR resets this same variable to zero. Finally the
associated interrupt flag is cleared.
3.9.3.6
TIMER3
Timer3 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 2.2 milliseconds. The Timer3 Interrupt
Service Routine (ISR) increments a variable, tests bit 9 of this variable and if set toggles
LED3. If LED3 is toggled the ISR resets this same variable to zero. Finally the
associated interrupt flag is cleared.
? 2004 Microchip Technology Inc.
DS51471A-page 47
相关PDF资料
PDF描述
DM300014 BOARD DEMO DSPICDEM 1.1 GEN PURP
DM300016 BOARD DEMO DSPICDEM STARTER
DM300017 BOARD DEMO DSPICDEM STARTER
DM300020 BOARD DEV DSPICDEM MC1 MOTORCTRL
DM300021 MODULE PWR DSPICDEM MC1H HV 3PHS
相关代理商/技术参数
参数描述
DM300014 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 1.1 GP RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300015 功能描述:KIT DESIGN W/DM300014 RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:- 标准包装:1 系列:*
DM300016 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM Starter RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300017 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 28P Starter RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300017 制造商:Microchip Technology Inc 功能描述:Microcontroller Development To