English
Language : 

C161 Datasheet, PDF (86/400 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller
&3,
,QWHUUXSW DQG 7UDS )XQFWLRQV
The table below lists the vector locations for hardware traps and the corresponding
status flags in register TFR. It also lists the priorities of trap service for cases, where
more than one trap condition might be detected within the same instruction. After any
reset (hardware reset, software reset instruction SRST, or reset by watchdog timer
overflow) program execution starts at the reset vector at location 00’0000H. Reset
conditions have priority over every other system activity and therefore have the highest
priority (trap priority III).
Software traps may be initiated to any vector location between 00’0000H and 00’01FCH.
A service routine entered via a software TRAP instruction is always executed on the
current CPU priority level which is indicated in bit field ILVL in register PSW. This means
that routines entered via the software TRAP instruction can be interrupted by all
hardware traps or higher level interrupt requests.
Table 5-2 Hardware Trap Summary
Exception Condition
Trap
Flag
Trap
Vector
Vector
Trap
Trap
Location Number Prio
Reset Functions:
Hardware Reset
Software Reset
Watchdog Timer Overflow
Class A Hardware Traps:
Non-Maskable Interrupt
Stack Overflow
Stack Underflow
NMI
STKOF
STKUF
Class B Hardware Traps:
Undefined Opcode
UNDOPC
Protected Instruction Fault PRTFLT
Illegal Word Operand Access ILLOPA
Illegal Instruction Access
ILLINA
Illegal External Bus Access ILLBUS
Reserved
Software Traps:
TRAP Instruction
RESET
RESET
RESET
00’0000H 00H
00’0000H 00H
00’0000H 00H
NMITRAP 00’0008H 02H
STOTRAP 00’0010H 04H
STUTRAP 00’0018H 06H
BTRAP
BTRAP
BTRAP
BTRAP
BTRAP
00’0028H 0AH
00’0028H 0AH
00’0028H 0AH
00’0028H 0AH
00’0028H 0AH
[2CH – 3CH] [0BH –
0FH]
Any
Any
[00’0000H – [00H –
00’01FCH] 7FH]
in steps
of 4H
III
III
III
II
II
II
I
I
I
I
I
Current
CPU
Priority
User’s Manual
5-4
1999-08