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

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
RA003
Example :Using PUSH and POP instructions
3.5.3
3.5.3.1
SP
PINTxx
the interrupt service routine.
case, acceptable interrupt sources are selectively enabled by the individual interrupt enable flags.
before setting IMF to “1”. As for non-maskable interrupt, keep interrupt service shorter compared with length
between interrupt requests.
IMF) are automatically saved on the stack, but the general purpose registers are not. These registers must be saved
by software if necessary. When multiple interrupt services are nested, it is also necessary to avoid using the same
data memory area for saving registers. The following methods are used to save/restore the general-purpose reg-
isters.
At Acceptance of
Saving/restoring general-purpose registers
A maskable interrupt is not accepted until the IMF is set to “1” even if the maskable interrupt is requested in
In order to utilize nested interrupt service, the IMF must be set to “1” in the interrupt service program. In this
To avoid overloaded nesting, clear the individual interrupt enable flag whose interrupt is currently serviced,
During interrupt acceptance processing, the program counter (PC) and the program status word (PSW, includes
an Interrupt
To save only a specific register, PUSH and POP instructions are available.
Using PUSH and POP instructions
PSW
PC
PC
H
L
PUSH
POP
RETI
Interrupt processing
Figure 3-3 Saving/restoring general-purpose registers
SP
PUSH instruction
At execution of
WA
WA
PSW
PC
PC
W
A
H
L
Page 57
; Save WA register
; Restore WA register
; RETURN
SP
POP instruction
At execution of
PSW
PC
PC
H
L
SP
an RETI instruction
At execution of
Address
(Example)
b-4
b-3
b-2
b-1
b
TMP89FS60

Related parts for TMP89xy60UG/FG