TMP89xy60UG/FG Toshiba, TMP89xy60UG/FG Datasheet - Page 66

no-image

TMP89xy60UG/FG

Manufacturer Part Number
TMP89xy60UG/FG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP89xy60UG/FG

Package
LQFP64/QFP64
Rom Types (m=mask,p=otp,f=flash)
M/F
Rom Size
32/60
Ram Size
3K
Driver Led
8
Driver Lcd
-
Spi/sio Channels
-
Uart/sio Channels
2
I2c/sio Channels
1
High-speed Serial Output
-
Adc 8-bit Channels
-
Adc 10-bit Channels
16
Da Converter Channels
-
Timer Counter 18-bit Channel
-
Timer Counter 16-bit Channel
2
Timer Counter 8-bit Channel
4
Motor Channels
-
Watchdog Timer
Y
Dual Clock
Y
Clock Gear
Y
Number Of I/o Ports
58
Power Supply (v)
4.3 to 5.5
3.2
Interrupt Latches (IL27 to IL3)
RA003
3.2
execution interrupt. When an interrupt request is generated, the latch is set to "1", and the CPU is requested to accept
the interrupt if its acceptance is enabled. The interrupt latch is cleared to "0" immediately after the interrupt is accepted.
All interrupt latches are initialized to "0" during reset.
cleared to "0" individually by an instruction. However, IL2 and IL3 interrupt latches cannot be cleared by instructions.
clear interrupt requests generated while the instruction is executed.
clearing of the interrupt latch, and not setting the interrupt latch.
Interrupt Latches (IL27 to IL3)
An interrupt latch is provided for each interrupt source, except for a software interrupt and an undefined instruction
The interrupt latches are located at addresses 0x0FE0, 0x0FE1, 0x0FE2, 0x0FE3 in SFR area. Each latch can be
Do not use any read-modify-write instruction, such as a bit manipulation or operation instruction, because it may
Interrupt latches cannot be set to "1" by using an instruction. Writing "1" to an interrupt latch is equivalent to denying
Since interrupt latches can be read by instructions, the status of interrupt requests can be monitored by software.
Note:In the main program, before manipulating an interrupt latch (IL), be sure to clear the master enable flag (IMF) to
"0" (Disable interrupt by DI instruction). Then set the IMF to "1" as required after operating the IL (Enable interrupt
by EI instruction).
In the interrupt service routine, the IMF becomes "0" automatically and need not be cleared to "0" normally.
However, if using multiple interrupt in the interrupt service routine, manipulate the IL before setting the IMF to
"1".
Example 1:Clears interrupt latches
Example 2:Reads interrupt latches
Example 3:Tests interrupt latches
DI
LD
LD
EI
LD
TEST
JR
(ILL), 0y00111111
(ILH), 0y11101000
WA, (ILL)
(ILL). 7
F, SSET
Page 50
;IMF ← 0
;IL7 to IL6 ← 0
;IL12, IL10 to IL8 ← 0
;IMF ← 1
;W ← ILH, A ← ILL
;if IL7=1 then jump
;
TMP89FS60

Related parts for TMP89xy60UG/FG