TMP86xy12MG Toshiba, TMP86xy12MG Datasheet - Page 50

no-image

TMP86xy12MG

Manufacturer Part Number
TMP86xy12MG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP86xy12MG

Package
SSOP30
Rom Types (m=mask,p=otp,f=flash)
M/F
Rom Size
16
Ram Size
512
Driver Led
8
Driver Lcd
-
Spi/sio Channels
1
Uart/sio Channels
1
I2c/sio Channels
-
High-speed Serial Output
-
Adc 8-bit Channels
-
Adc 10-bit Channels
8
Da Converter Channels
-
Timer Counter 18-bit Channel
IGBT
Timer Counter 16-bit Channel
1
Timer Counter 8-bit Channel
2
Motor Channels
-
Watchdog Timer
Y
Dual Clock
Y
Clock Gear
-
Number Of I/o Ports
24
Power Supply (v)
4.5 to 5.5
Example :Save/store register using data transfer instructions
Example 1 :Returning from address trap interrupt (INTATRAP) service program
3.3.3 Interrupt return
Figure 3-4 Saving/Restoring General-purpose Registers under Interrupt Processing
restarting address, during interrupt service program.
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
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
LD
(interrupt processing)
LD
RETI
POP
LD
PUSH
(interrupt processing)
RETN
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.
(GSAVA), A
A, (GSAVA)
WA
WA, Return Address
WA
Interrupt
acceptance
[RETI]/[RETN] Interrupt Return
Interrupt return
Page 39
Interrupt
service task
; Restore A register
; Alter stacked data
; Save A register
; RETURN
; Recover SP by 2
;
; RETURN
Saving
registers
Restoring
registers
TMP86CH12MG

Related parts for TMP86xy12MG