TMP86xy45UG Toshiba, TMP86xy45UG Datasheet - Page 51

no-image

TMP86xy45UG

Manufacturer Part Number
TMP86xy45UG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP86xy45UG

Package
QFP44
Rom Types (m=mask,p=otp,f=flash)
M/P
Rom Size
8
Ram Size
256
Driver Led
19
Driver Lcd
-
Spi/sio Channels
1
Uart/sio Channels
-
I2c/sio Channels
-
High-speed Serial Output
-
Adc 8-bit Channels
-
Adc 10-bit Channels
8
Da Converter Channels
-
Timer Counter 18-bit Channel
-
Timer Counter 16-bit Channel
-
Timer Counter 8-bit Channel
2
Motor Channels
-
Watchdog Timer
Y
Dual Clock
Y
Clock Gear
-
Number Of I/o Ports
35
Power Supply (v)
2.7 to 5.5
3.4 Interrupt Sequence
Example 1 :Returning from address trap interrupt (INTATRAP) service program
Example 2 :Restarting without returning interrupt
3.4.3 Interrupt return
Figure 3-4 Saving/Restoring General-purpose Registers under Interrupt Processing
(In this case, PSW (Includes IMF) before interrupt acceptance is discarded.)
restarting address, during interrupt service program.
rupt can be accepted immediately after the interrupt return instruction is executed.
Interrupt return instructions [RETI]/[RETN] perform as follows.
As for address trap interrupt (INTATRAP), it is required to alter stacked data for program counter (PC) to
Note:If [RETN] is executed with the above data unaltered, the program returns to the address trap area and
Interrupt requests are sampled during the final cycle of the instruction being executed. Thus, the next inter-
PINTxx:
PINTxx:
INTATRAP occurs again.When interrupt acceptance processing has completed, stacked data for PCL and
PCH are located on address (SP + 1) and (SP + 2) respectively.
Saving/Restoring general-purpose registers using PUSH/POP data transfer instruction
POP
LD
PUSH
(interrupt processing)
RETN
INC
INC
INC
(interrupt processing)
LD
JP
Main task
1. Program counter (PC) and program status word
2. Stack pointer (SP) is incremented by 3.
(PSW, includes IMF) are restored from the stack.
WA
WA, Return Address
WA
SP
SP
SP
EIRL, data
Restart Address
Interrupt
acceptance
[RETI]/[RETN] Interrupt Return
Interrupt return
Page 40
Interrupt
service task
; Alter stacked data
;
;
; Set IMF to “1” or clear it to “0”
; Jump into restarting address
; Recover SP by 2
;
; RETURN
; Recover SP by 3
Saving
registers
Restoring
registers
TMP86C845UG

Related parts for TMP86xy45UG