tmp89fh42l TOSHIBA Semiconductor CORPORATION, tmp89fh42l Datasheet - Page 349

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
main section code abs = 0xF000
; #### Transfer the program to RAM #### (step 2)
sRAMLOOP:
; #### Set a nonmaskable interrupt vector inside the RAM area #### (step 3)
; #### Allocate RAM to the code area. Switch the vector area to RAM #### (step 4)
; #### Sector erase and write process ####
; Sector erase process (step 5)
; Write process (step 11)
; #### Allocate RAM to the code area. Switch the vector area to RAM #### (step 17)
; #### Execute the next main program ####
; #### Program to be executed in RAM ####
sRAMprogStart:
Note 3: Before jumping from the flash memory to the RAM area, RAM must be allocated to the code area by
Example: Case in which a program is transferred to RAM, a sector erase is performed on 0xE000 through 0xEFFF in
making the appropriate SYSCR3<RAREA> setting (setting made in step 4 in the procedure described
on the previous page).
the code area, and then 0x3F data is written to 0xE500.
If nonmaskable interrupts (INTSWI, INTUNDEF or INTWDT) occur, system clock reset is generated.
cRAMStartAdd equ 0x0200
DI
LD
LD
LD
LD
INC
INC
CMP
J
LD
LDW
LD
LDW
LD
LD
LD
LD
LD
LD
CALL
LD
LD
LD
CALL
LD
LD
:
J
NOP
NOP
NOP
HL,cRAMStartAdd
IX,sRAMprogStart
A,(IX)
(HL),A
HL
IX
IX,sRAMprogEnd
NZ,sRAMLOOP
HL,0x01FC
(HL),sINTSWI - sRAMprogStart + cRAMStartAdd
HL,0x01F8
(HL),sINTWDT - sRAMprogStart + cRAMStartAdd
(SYSCR3),0x06
(SYSCR4),0xD4
HL,0xF555
DE,0xFAAA
C,0x00
IX,0xE000
sSectorErase - sRAMprogStart + cRAMStartAdd
C,0x00
IX,0xE500
B,0x3F
sByteProgram - sRAMprogStart + cRAMStartAdd
(SYSCR3),0x00
(SYSCR4),0xD4
:
XXXXX
Page 335
; RAM start address
; Disable interrupts (step 1)
; Transfer the program from sRAMprogStart to
; sRAMprogEnd to cRAMStartAdd.
; Set INTUNDEF and INTSWI interrupt vectors
; Set INTWDT interrupt vector
; Set RAREA and RVCTR to "1"
; Enable Code
; Variable for command sequence
; Variable for command sequence
; Set upper addresses
; Set middle and lower addresses
; Perform a sector erase (0xE000)
; Set upper addresses
; Set middle and lower addresses
; Data to be written
; Write process (0xE500)
; Set RAREA and RVCTR to "0"
; Enable Code
; Execute the main program
; Fail-safe process
TMP89FH42L

Related parts for tmp89fh42l