tmp88fw45afg TOSHIBA Semiconductor CORPORATION, tmp88fw45afg Datasheet - Page 40

no-image

tmp88fw45afg

Manufacturer Part Number
tmp88fw45afg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
3.1
Interrupt latches (IL39 to IL2)
Example 1 :Clears interrupt latches
Example 2 :Reads interrupt latches
Example 3 :Tests interrupt latches
3.1
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 interrupt. 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.
Interrupt latches (IL39 to IL2)
An interrupt latch is provided for each interrupt source, except for a software interrupt and an executed the undefined
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 1: To use the watchdog timer interrupt (INTWDT), clear WDTCR1<WDTOUT> to "0" (It is set for the "Reset request" after
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
; IMF ← 0
; IL2 to IL7 ← 0
; IL8 to IL15 ← 0
; IL16 to IL23 ← 0
; IL24 to IL31 ← 0
; IL32 to IL39 ← 0
; IMF ← 1
; W ← (ILH), A ← (ILL)
; B ← (ILD), C ← (ILE)
; D ← (ILC)
; if IL7 = 1 then jump
TMP88FW45AFG

Related parts for tmp88fw45afg