| Electronic Components Datasheet Search |
|
C164SL Datasheet(PDF) 87 Page - Infineon Technologies AG |
|
|
|||||||||||||||||||||||||||||
C164SL Datasheet(HTML) 87 Page - Infineon Technologies AG |
|
87 / 484 page ![]() C164CI/C164SI Derivatives Central Processing Unit (CPU) User’s Manual 4-29 V3.1, 2002-02 Stack Underflow Pointer STKUN This non-bit addressable register is compared against the SP register after each operation which pops data from the system stack (e.g. POP and RET instructions) and after each addition to the SP register. If the content of the SP register is greater than the content of the STKUN register, a stack underflow hardware trap will occur. Because the least significant bit of register STKUN is tied to ‘0’ and bits 15 through 12 are tied to ‘1’ by hardware, the STKUN register can contain values from F000H to FFFEH only. The Stack Underflow Trap (entered when (SP) > (STKUN)) may be used in two different ways: • Fatal error indication treats the stack underflow as a system error through the associated trap service routine. • Automatic system stack refilling allows to use the system stack as a ‘Stack Cache’ for a bigger external user stack. In this case register STKUN should be initialized to a value, which represents the desired highest Bottom of Stack address. More details about the stack underflow trap service routine and virtual stack management are given in Chapter 24. Scope of Stack Limit Control The Stack Limit Control implemented by the register pair STKOV and STKUN detects cases in which the Stack Pointer SP is moved outside the defined stack area, either by ADD or SUB instructions or by PUSH or POP operations (explicit or implicit, i.e. CALL or RET instructions). This control mechanism is not triggered, i.e. no stack trap is generated, when • The Stack Pointer SP is directly updated via MOV instructions • The limits of the stack area (STKOV, STKUN) are changed so that SP is outside the new limits STKUN Stack Underflow Reg. SFR (FE16H/0BH) Reset Value: FC00H 15 14 13 12 11 10 9876 543210 1111 stkun 0 r r r r rw r Bit Function stkun Modifiable portion of register STKUN Specifies the upper limit of the internal system stack. |
|
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 |
| 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 |