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

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
RA006
21.5.2.4
sponding individual data (include data of code area) to each address in flash memory, if FLSCR1<FAREA>
and FLSCR2 is selected properly.
sSKIP
; #### Program to be executed in RAM ####
sRAMprogStart:
; Interrupt subroutine
sINTWDT:
sINTSWI:
sRAMprogEnd:
Note 1: Make sure that you set the C register to "0x00".
Note 2: Do not allocate the above program to 0x1000 through 0x17FF in the code area in the flash memory. If this area
Note 3: It is not necessary to add DI instruction for above example program, because the support program include it.
Example: Case in which data is read from 0xF000 in the code area and stored at 0x98 in RAM
To read data from flash memory, execute transfer instruction for memory. It is possible to read the corre-
How to read data from flash memory
is set to BAREA="1", it changes from the flash memory area to the BOOTROM area so that the program will not
function properly and the microcontroller may malfunction.
However, the support program does not include EI instruction. Therefore, if interrupt process is used, enable IMF
after finishing all above process.
LD
CALL
LD
LD
LD
LD
:
J
LD
LD
CMP
J
LD
RETN
NOP
LD
LD
LD
LD
LD
LD
C,0x00
(.BTSetRP)
(FLSCR1),0x40
(FLSCR2),0xD5
(SYSCR3),0x00
(SYSCR4),0xD4
:
XXXX
IX,0xF000
A,(IX)
A,(IX)
NZ,sINTWDT
(SYSCR2),0x10
(FLSCR1),0xA8
(FLSCR2),0xD5
A,(0xF000)
(0x98),A
(FLSCR1),0x40
(FLSCR2),0xD5
Page 341
; Select AREA C1
; Reflect the FLSCR1 setting
; Read data from 0xF000
; Store data at 0x98
; Select AREA D0
; Reflect the FLSCR1 setting
; Set 0x00 (note 1)
; Enable the security program
; Set BAREA to "0"
; Set RAREA and RVCTR to "0"
; Enable Code
; Loop until the read values become the same
; Generate system clock reset
TMP89FS60

Related parts for TMP89xy60UG/FG