tmp89fm42 TOSHIBA Semiconductor CORPORATION, tmp89fm42 Datasheet - Page 333

no-image

tmp89fm42

Manufacturer Part Number
tmp89fm42
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp89fm42AUG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42LUG
Manufacturer:
ST
Quantity:
500
Part Number:
tmp89fm42LUG
Manufacturer:
TOSHIBA
Quantity:
745
Part Number:
tmp89fm42LUG
Manufacturer:
TOSHIBA
Quantity:
1 000
Part Number:
tmp89fm42LUG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42UG
Manufacturer:
PROCONN
Quantity:
3 705
Part Number:
tmp89fm42UG
Manufacturer:
TOSHIBA/PBF
Quantity:
29
Part Number:
tmp89fm42UG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42UG
0
Company:
Part Number:
tmp89fm42UG
Quantity:
15 795
Company:
Part Number:
tmp89fm42UG
Quantity:
2 400
Part Number:
tmp89fm42UG(C
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42UG(C,JZ)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp89fm42UG(CZHZ)
0
Part Number:
tmp89fm42UG(JZ)
Manufacturer:
Toshiba
Quantity:
10 000
RA003
main section code abs = 0x1000
; #### 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)
; #### Execute the next main program ####
; #### Program to be executed in RAM ####
sRAMprogStart:
sSectorErase:
; Sector erase process (step 7)
; Write process (step 13)
sByteProgram
; End process
sRAMopEnd:
Example: Case in which a program is transferred to RAM, a sector erase is performed on 0xE000 through 0xEFFF in
Note 3: Before jumping from the flash memory to the RAM area, RAM must be allocated to the code area by
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.
cRAMStartAdd
DI
LD
LD
LD
LD
INC
INC
CMP
J
LD
LDW
LD
LDW
LD
LD
LD
LD
LD
LD
CALL
LD
LD
LD
CALL
:
J
CALL
LD
LD
LD
LD
LD
LD
J
CALL
LD
LD
LD
LD
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
sRAMStartAdd
C,0x00
IX,0xE500
B,0x3F
sByteProgram - sRAMprogStart + cRAMStartAdd
:
XXXXX
sAddConv - sRAMprogStart + cRAMStartAdd
(HL),E
(DE),L
(HL),0x80
(HL),E
(DE),L
(IX),0x30
sRAMopEnd
sAddConv - sRAMprogStart + cRAMStartAdd
(HL),E
(DE),L
(HL),0xA0
(IX),B
equ 0x0200
Page 319
; 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)
; Execute the main program
; Address conversion process
; 1st Bus Write Cycle (note 1)
; 2nd Bus Write Cycle (note 1)
; 3rd Bus Write Cycle (note 1)
; 4th Bus Write Cycle (note 1)
; 5th Bus Write Cycle (note 1)
; 6th Bus Write Cycle (note 1)
; Address conversion process
; 1st Bus Write Cycle (note 1)
; 2nd Bus Write Cycle (note 1)
; 3rd Bus Write Cycle (Note 1)
; 4th Bus Write Cycle (note 1)
; (note 2)
; (note 2)
; (note 2)
TMP89FM42

Related parts for tmp89fm42