| Electronic Components Datasheet Search |
|
TMP88CS43FG Datasheet(PDF) 36 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP88CS43FG Datasheet(HTML) 36 Page - Toshiba Semiconductor |
|
36 / 218 page ![]() Page 26 3. Interrupt Control Circuit 3.1 Interrupt latches (IL38 to IL2) TMP88CS43FG Note 1: To use the watchdog timer interrupt (INTWDT), clear WDTCR1<WDTOUT> to "0" (It is set for the "Reset request" after reset is released). It is described in the section "Watchdog Timer" for details. 3.1 Interrupt latches (IL38 to IL2) An interrupt latch is provided for each interrupt source, except for a software interrupt and an executed the unde- fined instruction interrupt. When interrupt request is generated, the latch is set to “1”, and the CPU is requested to accept the interrupt if its interrupt is enabled. The interrupt latch is cleared to "0" immediately after accepting inter- rupt. All interrupt latches are initialized to “0” during reset. The interrupt latches are located on address 003CH, 003DH, 002EH, 002FH and 002BH in SFR area. Each latch can be cleared to "0" individually by instruction. However, IL2 and IL3 should not be cleared to "0" by software. For clearing the interrupt latch, load instruction should be used and then IL2 should be set to "1". If the read-modify- write instructions such as bit manipulation or operation instructions are used, interrupt request would be cleared inadequately if interrupt is requested while such instructions are executed. Since interrupt latches can be read, the status for interrupt requests can be monitored by software. But interrupt latches are not set to “1” by an instruction. Note: In main program, before manipulating the interrupt enable flag (EF) or the interrupt latch (IL), be sure to clear IMF to "0" (Disable interrupt by DI instruction). Then set IMF newly again as required after operating on the EF or IL (Enable interrupt by EI instruction) In interrupt service routine, because the IMF becomes "0" automatically, clearing IMF need not execute normally on interrupt service routine. However, if using multiple interrupt on interrupt service routine, manipulating EF or IL should be executed before setting IMF="1". Example 1 :Clears interrupt latches DI ; IMF ← 0 LD (ILL), 1110100000111111B ; IL2 to IL7 ← 0 LD (ILH), 1110100000111111B ; IL8 to IL15 ← 0 LD (ILE), 1110100000111111B ; IL16 to IL23 ← 0 LD (ILD), 1110100000111111B ; IL24 to IL31 ← 0 LD (ILC), 1110100000111111B ; IL32 toIL38 ← 0 EI ; IMF ← 1 Example 2 :Reads interrupt latches LD WA, (ILL) ; W ← (ILH), A ← (ILL) LD BC, (ILE) ; B ← (ILD), C ← (ILE) LD D, (ILC) ; D ← (ILC) Example 3 :Tests interrupt latches TEST (ILL). 7 ; if IL7 = 1 then jump JR F, SSET |
|
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 |