tmp88f846ug TOSHIBA Semiconductor CORPORATION, tmp88f846ug Datasheet - Page 198

no-image

tmp88f846ug

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP88F846UG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88f846ug(CZHZB)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
Part Number:
tmp88f846ug(ZHZB)
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
18.4 Access to the Flash Memory Area
18. Flash Memory
Example :After sector erasure (E000H-EFFFH), the program in the RAM area writes data 3FH to address
Example :This write control program reads data from address F000H and stores it to 98H in the RAM area.
; #### Flash Memory Sector Erase Process ####
sLOOP1:
; #### Flash Memory Write Process ####
sLOOP2:
E000H.
DI
LD
LDW
LD
LD
LD
LD
LD
LD
LD
LD
LD
LD
LD
CMP
JR
LD
LD
LD
LD
LD
CMP
JR
LD
JP
LD
LD
(WDTCR2),4EH
(WDTCR1),0B101H
(FLSCR),0011_1000B
IX,04555H
IY,04AAAH
HL,0E000H
(IX),0AAH
(IY),55H
(IX),80H
(IX),0AAH
(IY),55H
(HL),30H
A,(IX)
A,(IX)
NZ,sLOOP1
(IX),0AAH
(IY),55H
(IX),0A0H
(HL),3FH
A,(HL)
A,(HL)
NZ,sLOOP2
(FLSCR),1100_1000B
XXXXH
A,(0F000H)
(98H),A
Page 188
: Disable interrupts (IMF←"0")
: Clear the WDT binary counter.
: Disable the WDT.
: Enable command sequence execution.
: 1st bus write cycle
: 2nd bus write cycle
: 3rd bus write cycle
: 4th bus write cycle
: 5th bus write cycle
: 6th bus write cycle
: Loop until the same value is read.
: 1st bus write cycle
: 2nd bus write cycle
: 3rd bus write cycle
: 4th bus write cycle, (E000H)=3FH
: Loop until the same value is read.
: Disable command sequence execution.
: Jump to the flash memory area.
: Read data from address F000H.
: Store data to address 98H.
TMP88F846UG

Related parts for tmp88f846ug