dsPIC30F
6.3
Traps
Many of these trap conditions can only be detected
Traps can be considered as non-maskable, nestable
interrupts that adhere to a fixed priority structure.
Traps are intended to provide the user a means to
correct erroneous operation during debug and when
operating within the application. If the user does not
intend to take corrective action in the event of a trap
error condition, these vectors must be loaded with the
address of a software routine that will reset the device.
Otherwise, the trap vector is programmed with the
address of a service routine that will correct the trap
condition.
when they happen. Consequently, the instruction that
caused the trap is allowed to complete before
exception processing begins. Therefore, the user may
have to correct the action of the instruction that
caused the trap.
Each trap source has a fixed priority as defined by its
position in the IVT. An oscillator failure trap has the
highest priority, while an arithmetic error trap has the
lowest priority.
Table 6-2 contains information about the trap vector.
The dsPIC30F has four implemented sources of
6.4
Generating a Software Interrupt
non-maskable traps:
Any available interrupt can be manually generated by
?
?
?
?
Oscillator Failure Trap
Address Error Trap
Stack Error Trap
Arithmetic Error Trap
user software (even if the corresponding peripheral is
disabled), simply by enabling the interrupt and then
setting the interrupt flag bit when required.
TABLE 6-2:
TRAP VECTORS
Vector Number
0
1
2
3
4
5
6
7
DS70043F-page 18
IVT Address
0x000004
0x000006
0x000008
0x00000A
0x00000C
0x00000E
0x000010
0x000012
AIVT Address
0x000084
0x000086
0x000088
0x00008A
0x00008C
0x00008E
0x000090
0x000092
Trap Source
Reserved
Oscillator Failure
Address Error
Stack Error
Arithmetic Error
Reserved
Reserved
Reserved
? 2005 Microchip Technology Inc.
相关PDF资料
MA320002 MODULE PLUG-IN PIC32 USB OTG
MA320011 MODULE PLUG-IN PIC32MX220F32D
MA330024 MODULE PLUG-IN DSPIC33F 100TQFP
MA330027 MODULE PLUG-IN DSPIC33F 100TQFP
MA330029 MODULE PLUG-IN DSPIC33FJ16GP102
MA9D00-42 DSUB CONN W/DIAGNOSTIC PORT STRT
MAI ADAPTER PUSH-ON/M-SWTCH ATTCHMNT
MAV0020RP VARISTOR ARRY 2ELEMENT 120V 0405
相关代理商/技术参数
MA300013 制造商:Microchip Technology Inc 功能描述:Tools Development kit Kit Con
MA300014 功能描述:子卡和OEM板 dsPIC30F 80L Plug In Sample (6014A) RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300015 功能描述:子卡和OEM板 dsPIC30F 80L Plug In Sample (6010A). RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300016 功能描述:子卡和OEM板 dsPICDEM 80-PIN PIM RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300118 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300128 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300140 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA300228 功能描述:子卡和OEM板 _ RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit