Electronic Components Datasheet Search
  English  ▼

X  

C164SL Datasheet(PDF) 125 Page - Infineon Technologies AG

Part # C164SL
Description  16-Bit Single-Chip Microcontroller
PDF  484 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  INFINEON [Infineon Technologies AG]
Direct Link  http://www.infineon.com
Logo INFINEON - Infineon Technologies AG

C164SL Datasheet(HTML) 125 Page - Infineon Technologies AG

Back Button C164SL Datasheet HTML 121Page - Infineon Technologies AG C164SL Datasheet HTML 122Page - Infineon Technologies AG C164SL Datasheet HTML 123Page - Infineon Technologies AG C164SL Datasheet HTML 124Page - Infineon Technologies AG C164SL Datasheet HTML 125Page - Infineon Technologies AG C164SL Datasheet HTML 126Page - Infineon Technologies AG C164SL Datasheet HTML 127Page - Infineon Technologies AG C164SL Datasheet HTML 128Page - Infineon Technologies AG C164SL Datasheet HTML 129Page - Infineon Technologies AG Next Button
Zoom Inzoom in Zoom Outzoom out
 125 / 484 page
background image
C164CI/C164SI
Derivatives
Interrupt and Trap Functions
User’s Manual
5-34
V3.1, 2002-02
External NMI Trap
Whenever a high to low transition on the dedicated external NMI pin (Non-Maskable
Interrupt) is detected, the NMI flag in register TFR is set and the CPU will enter the NMI
trap routine. The IP value pushed on the system stack is the address of the instruction
following the one after which normal processing was interrupted by the NMI trap.
Note: The NMI pin is sampled with every CPU clock cycle to detect transitions.
Stack Overflow Trap
Whenever the stack pointer is decremented to a value which is less than the value in the
stack overflow register STKOV, the STKOF flag in register TFR is set and the CPU will
enter the stack overflow trap routine. Which IP value will be pushed onto the system
stack depends on which operation caused the decrement of the SP. When an implicit
decrement of the SP is made through a PUSH or CALL instruction, or upon interrupt or
trap entry, the IP value pushed is the address of the following instruction. When the SP
is decremented by a subtract instruction, the IP value pushed represents the address of
the instruction after the instruction following the subtract instruction.
For recovery from stack overflow, it must be ensured that there is enough excess space
on the stack to save the current system state twice (PSW, IP, in segmented mode also
CSP). Otherwise, a system reset should be generated.
Stack Underflow Trap
Whenever the stack pointer is incremented to a value greater than the value in the stack
underflow register STKUN, the STKUF flag is set in register TFR and the CPU will enter
the stack underflow trap routine. Again, which IP value will be pushed onto the system
stack depends on which operation caused the increment of the SP. When an implicit
increment of the SP is made through a POP or return instruction, the IP value pushed is
the address of the following instruction. When the SP is incremented by an add
instruction, the pushed IP value represents the address of the instruction after the
instruction following the add instruction.
Undefined Opcode Trap
When the instruction currently decoded by the CPU does not contain a valid C164CI
opcode, the UNDOPC flag is set in register TFR and the CPU enters the undefined
opcode trap routine. The IP value pushed onto the system stack is the address of the
instruction that caused the trap.
This can be used to emulate unimplemented instructions. The trap service routine can
examine the faulting instruction to decode operands for unimplemented opcodes based
on the stacked IP. In order to resume processing, the stacked IP value must be
incremented by the size of the undefined instruction, which is determined by the user,
before a RETI instruction is executed.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com