| Electronic Components Datasheet Search |
|
R8C11 Datasheet(PDF) 68 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C11 Datasheet(HTML) 68 Page - Renesas Technology Corp |
|
68 / 227 page ![]() R8C/11 Group Rev.1.20 Jan 27, 2006 page 57 of 204 REJ09B0062-0120 • Saving Registers In the interrupt sequence, the FLG register and PC are saved to the stack. At this time, the 4 high-order bits in the PC and the 4 high-order (IPL) and 8 low-order bits in the FLG register, 16 bits in total, are saved to the stack first. Next, the 16 low-order bits in the PC are saved. Figure 10.6 shows the stack status before and after an interrupt request is accepted. The other necessary registers must be saved in a program at the beginning of the interrupt routine. The PUSHM instruction can save several registers in the register bank being currently used(1) with a single instruction. NOTES: 1. Selectable from registers R0, R1, R2, R3, A0, A1, SB, and FB. Address Content of previous stack Stack [SP] SPvalue before interrupt occurs m m – 1 m – 2 m – 3 m – 4 Stack status before interrupt request is acknowledged Stack status after interrupt request is acknowledged Content of previous stack m + 1 MSB LSB m m – 1 m – 2 m – 3 m – 4 Address FLGL Content of previous stack Stack FLGH PCH [SP] New SP value Content of previous stack m + 1 MSB LSB PCL PCM Figure 10.6 Stack Status Before and After Acceptance of Interrupt Request Figure 10.7 Operation of Saving Register [SP] [SP] – 1 [SP] – 2 [SP] – 3 [SP] – 4 [SP] – 5 Address Sequence in which order registers are saved (2) (1) Finished saving registers in four operations. (3) (4) NOTES: 1.[SP] denotes the initial value of the SP when interrupt request is acknowledged. After registers are saved, the SP content is [SP] minus 4. PCM Stack FLGL PCL Saved, 8 bits at a time FLGH PCH The registers are saved in four steps, 8 bits at a time. Figure 10.7 shows the operation of the saving registers. NOTES: 1. When any INT instruction in software numbers 32 to 63 has been executed, this is the SP indi- cated by the U flag. Otherwise, it is the ISP. 10.1 Interrupt Overview |
|
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 |