TMP86xy49UG/F/NG Toshiba, TMP86xy49UG/F/NG Datasheet - Page 57

no-image

TMP86xy49UG/F/NG

Manufacturer Part Number
TMP86xy49UG/F/NG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP86xy49UG/F/NG

Package
LQFP64/QFP64/SDIP64
Rom Types (m=mask,p=otp,f=flash)
M/P/F
Rom Size
16/32/60
Ram Size
512/1K/2K
Driver Led
13
Driver Lcd
-
Spi/sio Channels
2
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
-
Number Of I/o Ports
56
Power Supply (v)
4.5 to 5.5
3.3 Interrupt Sequence
Example :Save/store register using PUSH and POP instructions
3.3.2 Saving/restoring general-purpose registers
3.3.2.1
3.3.2.2
SP
level of current servicing interrupt is requested.
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 shorten compared with length
between interrupt requests; otherwise the status cannot be recovered as non-maskable interrupt would simply
nested.
includes IMF) are automatically saved on the stack, but the accumulator and others are not. These registers are
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 registers.
A maskable interrupt is not accepted until the IMF is set to “1” even if the maskable interrupt higher than the
In order to utilize nested interrupt service, the IMF is set to “1” in the interrupt service program. In this case,
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,
At acceptance of
an interrupt
PINTxx:
can be saved/restored using the PUSH/POP instructions.
Figure 3-3 Save/store register using PUSH and POP instructions
Using PUSH and POP instructions
Using data transfer instructions
If only a specific register is saved or interrupts of the same source are nested, general-purpose registers
To save only a specific register without nested interrupts, data transfer instructions are available.
PSW
PCH
PCL
PUSH
(interrupt processing)
POP
RETI
SP
At execution of
PUSH instruction
WA
WA
PSW
PCH
PCL
W
A
Page 40
SP
At execution of
POP instruction
; Save WA register
; Restore WA register
; RETURN
PSW
PCL
PCH
SP
At execution of
RETI instruction
TMP86PM49UG
Address
(Example)
b-5
b-4
b-3
b-2
b-1
b

Related parts for TMP86xy49UG/F/NG