tmp88cs43fg TOSHIBA Semiconductor CORPORATION, tmp88cs43fg Datasheet - Page 36

no-image

tmp88cs43fg

Manufacturer Part Number
tmp88cs43fg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
3. Interrupt Control Circuit
3.1 Interrupt latches (IL38 to IL2)
Example 1 :Clears interrupt latches
Example 2 :Reads interrupt latches
Example 3 :Tests interrupt latches
3.1 Interrupt latches (IL38 to IL2)
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.
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.
latches are not set to “1” by an instruction.
Note 1: To use the watchdog timer interrupt (INTWDT), clear WDTCR1<WDTOUT> to "0" (It is set for the "Reset request" after
An interrupt latch is provided for each interrupt source, except for a software interrupt and an executed the unde-
The interrupt latches are located on address 003CH, 003DH, 002EH, 002FH and 002BH in SFR area. Each latch
Since interrupt latches can be read, the status for interrupt requests can be monitored by software. But interrupt
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".
reset is released). It is described in the section "Watchdog Timer" for details.
DI
LD
LD
LD
LD
LD
EI
LD
LD
LD
TEST
JR
(ILL), 1110100000111111B
(ILH), 1110100000111111B
(ILE), 1110100000111111B
(ILD), 1110100000111111B
(ILC), 1110100000111111B
WA, (ILL)
BC, (ILE)
D, (ILC)
(ILL). 7
F, SSET
Page 26
; D ← (ILC)
; IMF ← 0
; IL2 to IL7 ← 0
; IL8 to IL15 ← 0
; IL16 to IL23 ← 0
; IL24 to IL31 ← 0
; IL32 toIL38 ← 0
; IMF ← 1
; W ← (ILH), A ← (ILL)
; B ← (ILD), C ← (ILE)
; if IL7 = 1 then jump
TMP88CS43FG

Related parts for tmp88cs43fg