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

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
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 41
Interrupt
service task
; Restore A register
; Alter stacked data
; Save A register
; RETURN
; Recover SP by 2
;
; RETURN
Saving
registers
Restoring
registers
TMP86PM49UG

Related parts for TMP86xy49UG/F/NG