|
XC2287M Datasheet, PDF (63/142 Pages) Infineon Technologies AG – 16/32-Bit Single-Chip Microcontroller with 32-Bit Performance XC2000 Family Derivatives / Base Line | |||
|
◁ |
XC2287M, XC2286M, XC2285M
XC2000 Family Derivatives / Base Line
Functional Description
The XC228xM includes an excellent mechanism to identify and process exceptions or
error conditions that arise during run-time, the so-called âHardware Trapsâ. A hardware
trap causes an immediate non-maskable system reaction similar to a standard interrupt
service (branching to a dedicated vector table location). The occurrence of a hardware
trap is also indicated by a single bit in the trap flag register (TFR). Unless another higher-
priority trap service is in progress, a hardware trap will interrupt any ongoing program
execution. In turn, hardware trap services can normally not be interrupted by standard
or PEC interrupts.
Table 8 shows all possible exceptions or error conditions that can arise during runtime:
Table 8
Trap Summary
Exception Condition
Trap
Flag
Trap
Vector
Vector Trap Trap
Location1) Number Priority
Reset Functions
â
RESET
xxâ0000H 00H
III
Class A Hardware Traps:
⢠System Request 0
SR0
SR0TRAP xxâ0008H 02H
II
⢠Stack Overflow
STKOF STOTRAP xxâ0010H 04H
II
⢠Stack Underflow
STKUF STUTRAP xxâ0018H 06H
II
⢠Software Break
SOFTBRK SBRKTRAP xxâ0020H 08H
II
Class B Hardware Traps:
⢠System Request 1
⢠Memory Protection
⢠Undefined Opcode
⢠Memory Access Error
⢠Protected Instruction
Fault
SR1
MPR/W/X
UNDOPC
ACER
PRTFLT
BTRAP
BTRAP
BTRAP
BTRAP
BTRAP
xxâ0028H 0AH
I
xxâ0028H 0AH
I
xxâ0028H 0AH
I
xxâ0028H 0AH
I
xxâ0028H 0AH
I
⢠Illegal Word Operand ILLOPA
Access
BTRAP
xxâ0028H 0AH
I
Reserved
â
â
[2CH - 3CH] [0BH - â
0FH]
Software Traps:
â
â
Any
Any
Current
⢠TRAP Instruction
[xxâ0000H - [00H -
xxâ01FCH] 7FH]
in steps of
CPU
Priority
4H
1) Register VECSEG defines the segment where the vector table is located to.
Bitfield VECSC in register CPUCON1 defines the distance between two adjacent vectors. This table
represents the default setting, with a distance of 4 (two words) between two vectors.
Data Sheet
63
V2.0, 2009-03
|
▷ |