tmp89fm42 TOSHIBA Semiconductor CORPORATION, tmp89fm42 Datasheet - Page 335

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
21.5.2.2 How to write to the flash memory by using a support program (API) of BOOTROM
main section code abs = 0xF000
; Initial setting
; Sector erase process (API)
; Write process
sLOOP1:
; End process
main section code abs = 0xF000
; Initial setting
; Check the status of the security program
; Security program enable process (API)
sSKIP
gram (API) of BOOTROM in MCU mode.
Example: Case in which a sector erase is performed on 0xE000 through 0xEFFF in the data area, and then data at
This section describes how to perform an erase and a write on the flash memory by using a support pro-
Example:
0x0100 through 0x01FF is written to 0xE000 through 0xE0FF in the data area.
.BTWrite
.BTEraseSec
.BTEraseChip equ 0x1014
.BTGetRP
.BTSetRP
LD
LD
LD
LD
CALL
LD
LD
LD
LD
LD
LD
CALL
INC
INC
CMP
J
LD
LD
Whether the security program is enabled or disabled is checked. If it is disabled, it is enabled.
.BTWrite
.BTEraseSec
.BTEraseChip equ 0x1014
.BTGetRP
.BTSetRP
LD
LD
LD
LD
CALL
CMP
J
LD
LD
CALL
LD
equ 0x1010
equ 0x1012
equ 0x1016
equ 0x1018
(FLSCR1),0x50
(FLSCR2),0xD5
A,0x0E
C,0xD5
(.BTEraseSec)
HL,0xE000
IY,0x0100
C,0x00
WA,HL
E,(IY)
(SP-),0xD5
(.BTWrite)
IY
HL
L,0x00
NZ,sLOOP1
(FLSCR1),0x40
(FLSCR2),0xD5
equ 0x1010
equ 0x1012
equ 0x1016
equ 0x1018
(FLSCR1),0x50
(FLSCR2),0xD5
A,0xD5
C,0x00
(.BTGetRP)
A,0xFF
NZ,sSKIP
A,0xD5
C,0x00
(.BTSetRP)
(FLSCR1),0x40
Page 321
; Write data to the flash memory
; Sector Erase
; Chip Erase
; Check the status of the security program
; Configure the security program
; Set BAREA to "1" (note)
; Reflect the FLSCR1 setting
; Specify the area to be erased (0xE000 through 0xEFFF)
; Enable Code
; Execute sector erase
; Flash start address (address where data is written)
; RAM start address
; Address where data is written (bit 16)
; Address where data is written (bits 15 to 0)
; Data to be written
; Enable Code
; Write data to the flash memory (1 byte)
; Increment flash address
; Increment RAM address
; Finish 256-byte write?
; Return to sLOOP1 if the number of bytes is less than 256
; Set BAREA to "0"
; Write data to the flash memory
; Sector Erase
; Chip Erase
; Check the status of the security program
; Enable the security program
; Set BAREA to "1"
; Reflect the FLSCR1 setting
; Enable Code
; Set 0x00 (note 1)
; Check the status of the security program
; Go to sSKIP if the security program is enabled
; Enable Code
; Set 0x00 (note 1)
; Enable the security program
; Set BAREA to "0"
TMP89FM42

Related parts for tmp89fm42