| Electronic Components Datasheet Search |
|
7220 Datasheet(PDF) 31 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
7220 Datasheet(HTML) 31 Page - Renesas Technology Corp |
|
31 / 303 page ![]() 2-4 FUNCTIONAL DESCRIPTION 2.1 Central processing unit 7220 Group User’s Manual Storing of the processor status register in items and above is not performed during a subroutine call. Execute the PHP instruction in a program to push the processor status register onto a stack. To prevent data from losing during interrupts and subroutine calls, push the other registers onto a stack by software as described above. For example, execute the PHA instruction to push the accumulator contents onto a stack. Executing the PHA instruction stores the accumulator contents at an address indicated as below: • The high-order 8 bits are the stack area value (“0016” or “0116”). • The low-order 8 bits are the stack pointer contents. The stack pointer contents are then decremented by 1. Execute the RTI instruction to return from an interrupt routine. When the RTI instruction is executed, the processing is performed automatically in the following sequence (refer to “Figure 2.1.3”). The stack pointer contents are incremented by 1. The contents at the address indicated as below are restored to the processor status register. • The high-order 8 bits are the stack area value (“0016” or “0116”). • The low-order 8 bits are the stack pointer contents. The stack pointer contents are incremented by 1. The contents at the address indicated as below are restored to low-order 8 bits of the program counter (PCL). • The high-order 8 bits are the stack area value (“0016” or “0116”). • The low-order 8 bits are the stack pointer contents. The stack pointer contents are incremented by 1. The contents at the address indicated as below are restored to high-order 8 bits of the program counter (PCH). • The high-order 8 bits are the stack area value (“0016” or “0116”). • The low-order 8 bits are the stack pointer contents. Restoring of the processor status register in items and above is not performed in this case. Execute the RTS instruction to return from a subroutine. Execute the PLP instruction and PLA instruction to restore the processor status register and the accumulator, respectively. Executing the PLP (PLA) instruction increments the stack pointer by 1 and restores the contents at the address indicated as below to the processor status register. • The high-order 8 bits are the stack area value (“0016” or “0116”). • The low-order 8 bits are the stack pointer. |
|
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 |