tmp89fm42 TOSHIBA Semiconductor CORPORATION, tmp89fm42 Datasheet - Page 330

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
21.4 Toggle Bit (D6)
21. Flash Memory
RA003
main section code abs = 0x0100
; #### Set a nonmaskable interrupt vector inside the RAM area #### (step 3)
; #### Sector erase and write process ####
; Sector erase process (step 5)
; Write process (step 8)
; #### Execute the next main program ####
; #### Program to be executed in RAM ####
sSectorErase:
; Sector erase pro-
cess
; Write process
sByteProgram:
; End process
sRAMopEnd
sLOOP1:
; Convert address (steps 4 and 7)
Example: A case in which a program is transferred to RAM, the sector erase is performed on 0xE000 through 0xEFFF
Note 1: If the RAM loader is used in serial PROM mode, the BOOTROM disables (DI) a maskable interrupt,
Note 2: If a certain interrupt is used in the RAM loader program, a vector address corresponding to that inter-
Note 3: Do not set SYSCR3<RVCTR> to "0" by using the RAM loader program. If an interrupt occurs with
10. Set FLSCR1<FLSMD> to "0y010", and then set "0xD5" on FLSCR2<CR1EN> (to disable the
execution of the command sequence).
and the interrupt vector area is designated as a RAM area (SYSCR3<RVCTR>="1"). Considering that
a nonmaskable interrupt may be generated unexpectedly, it is recommended that vector addresses
corresponding these interrupts (INTUNDEF, INTSWI: 0x01F8 to 0x01F9, WDT: 0x01FC to 0x01FD)
be established and that an interrupt service routine be defined inside the RAM area.
rupt and the interrupt service routine must be established inside the RAM area. In this case, it is rec-
ommended that a nonmaskable interrupt be handled as explained in Note 1.
SYSCR3<RVCTR> set to "0", the BOOTROM area is referenced as a vector address and, therefore,
the program will not function properly.
in the code area, and then data of 0x3F is written to 0xE500.
LD
LDW
LD
LDW
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
LD
CMP
J
LD
LD
RET
NOP
HL,0x01FC
(HL),sINTSWI
HL,0x01F8
(HL),sINTWDT
HL,0xF555
DE,0xFAAA
C,0x00
IX,0xE000
sSectorErase
C,0x00
IX,0xE500
B,0x3F
sByteProgram
:
XXXXX
sAddConv
(HL),E
(DE),L
(HL),0x80
(HL),E
(DE),L
(IX),0x30
sRAMopEnd
sAddConv
(HL),E
(DE),L
(HL),0xA0
(IX),B
A,(IX)
A,(IX)
NZ,sLOOP1
(FLSCR1),0x40
(FLSCR2),0xD5
Page 316
; Set INTUNDEF and INTSWI interrupt vectors
; Set INTWDT interrupt vector
; Variable for command sequence
; Variable for command sequence
; Set upper address
; Set middle and lower addresses
; Perform a sector erase (0xE000)
; Set upper address
; 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)
; Convert address
; 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)
; (step 6,9)
; Loop until the read values become the same
; Disable the execution of command sequence (step 10)
; Reflect the FLSCR1 setting
; Return to flash memory
TMP89FM42

Related parts for tmp89fm42