| Motore di ricerca datesheet componenti elettronici |
|
R8C Scheda tecnica(PDF) 53 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C Scheda tecnica(HTML) 53 Page - Renesas Technology Corp |
|
53 / 199 page ![]() R8C/10 Group Rev.1.20 Jan 27, 2006 page 43 of 180 REJ09B0019-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 |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |