| Electronic Components Datasheet Search |
|
GMS87C4060 Datasheet(PDF) 77 Page - Hynix Semiconductor |
|
|
|||||||||||||||||||||||||||||
GMS87C4060 Datasheet(HTML) 77 Page - Hynix Semiconductor |
|
77 / 102 page ![]() PRELIMINARY GMS81C4040/87C4060 Nov. 1999 Ver 1.0 PRELIMINARY 73 A maskable interrupt is not accepted until the I-flag is set to "1" even if a maskable interrupt of higher priority than that of the current interrupt being serviced. When nested interrupt service is necessary, the I-flag is set to "1" in the interrupt service program. In this case, accept- able interrupt sources are selectively enabled by the indi- vidual interrupt enable flags. Saving/Restoring General-purpose Register During interrupt acceptance processing, the program counter and the program status word are automatically saved on the stack, but not the accumulator and other reg- isters. These registers are saved by the program if neces- sary. Also, when nesting multiple interrupt services, it is necessary to avoid using the same data memory area for saving registers. The following method is used to save/restore the general- purpose registers. Example: Register save using push and pop instructions General-purpose register save/restore using push and pop instructions; 19.2 BRK Interrupt Software interrupt can be invoked by BRK instruction, which is the lowest priority order. Interrupt vector address of BRK is shared with the vector of TCALL 0 (Refer to Program Memory Section). When BRK interrupt is generated, B-flag of PSW is set to distin- guish BRK from TCALL 0. Each processing step is determined by B-flag as shown in Figure 19-6 . Figure 19-6 Execution of BRK/TCALL0 INTxx: PUSH A PUSH X LDA DPGR PUSH A ;SAVE ACC. ;SAVE X REG. ;SAVE DPGR ; Direct page ; accessable reg. ; : interrupt processing : POP A STA DPGR POP X POP A RETI ;RESTORE DPGR ;RESTORE X REG. ;RESTORE ACC. ;RETURN Basic Interval Timer 012H 0E3H 0FFE6H 0FFE7H 0EH 2EH 0E312H 0E313H Entry Address Correspondence between vector table address for BIT interrupt and the entry address of the interrupt service program. Vector Table Address main task interrupt service task saving registers restoring registers acceptance of interrupt interrupt return B-FLAG BRK INTERRUPT ROUTINE RETI TCALL0 ROUTINE RET BRK or TCALL0 =0 =1 |
|
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 |