| Motore di ricerca datesheet componenti elettronici |
|
TMP89FS60 Scheda tecnica(PDF) 72 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP89FS60 Scheda tecnica(HTML) 72 Page - Toshiba Semiconductor |
|
72 / 410 page ![]() Page 58 3. Interrupt Control Circuit 3.5 Interrupt Sequence TMP89FS60 RA003 3.5.3.2 Using data transfer instructions To save only a specific register without nested interrupts, data transfer instructions are available. Figure 3-4 Saving/Restoring General-purpose Registers under Interrupt Processing 3.5.3.3 Using a register bank to save/restore general-purpose registers In non-multiple interrupt handling, the register bank function can be used to save/restore the general- purpose registers at a time. The register bank function saves (switches) the general-purpose registers by executing a register bank manipulation instruction (such as LD RBS,1) at the beginning of an interrupt service task. It is unnecessary to re-execute the register bank manipulation instruction at the end of the interrupt service task because executing the RETI instruction makes a return automatically to the register bank that was being used by the main task according to the content of the PSW. Note: Two register banks (BANK0 and BANK1) are available. Each bank consists of 8-bit general-purpose registers (W, A, B, C, D, E, H, and L) and 16-bit general-purpose registers (IX and IY). Example :Save/store register using data transfer instructions PINTxx: LD (GSAVA), A ; Save A register Interrupt processing LD A, (GSAVA) ; Restore A register RETI ; RETURN Example :Saving/restoring registers, using an instruction for transfer with data memory (with the main task using the regis- ter bank BANK0) PINTxx: LD RBS, 1 ; Switches to the register bank BANK1 Interrupt processing RETI ; RETURN (Makes a return automatically to BANK0 that was being used by the main task when the PSW is restored) Main task Interrupt acceptance Interrupt service task Saving registers Restoring registers Interrupt return |
|
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 |