tmp89fh42l TOSHIBA Semiconductor CORPORATION, tmp89fh42l Datasheet - Page 355

no-image

tmp89fh42l

Manufacturer Part Number
tmp89fh42l
Description
8 Bit Microcontroller Tlcs-870/c1 Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp89fh42lUG(JZ)
Manufacturer:
LEVELONE
Quantity:
5 350
Part Number:
tmp89fh42lUG(JZ)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
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: 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
However, the support program does not include EI instruction. Therefore, if interrupt process is used, enable IMF
after finishing all above process.
LD
LD
LD
LD
:
J
LD
LD
CMP
J
LD
RETN
NOP
LD
LD
LD
LD
LD
LD
(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 BAREA to "0"
; Set RAREA and RVCTR to "0"
; Enable Code
; Loop until the read values become the same
; Generate system clock reset
TMP89FH42L

Related parts for tmp89fh42l