Rev. 1.10
26
November 26, 2019
Rev. 1.10
27
November 26, 2019
HT68FB240
USB Low Speed Flash MCU
Flash Memory Write and Read Procedures
The following flow charts illustrate the Write and Read Flash memory procedures.
Write Flash
ROM
Set FWEN procedure
FWT
=1
Yes
Page Erase
FAH=
xxh,
FAL=
xxh
FMOD
[
2:0
]
=001
FWT
=1
FWT
=0 ?
Yes
No
Write
FMOD
[
2:0
]
=000
Clear CFWEN bit
END
Write Finish
?
Yes
No
Write data to Write Buffer
[(
ROM
≤
8
K
→
1~32
Words data
) or
(ROM
>
8
K
→
1~64
Words data)]:
Flash address register
: FAH=
xxh,
FAL=
xxh
Write the following data to register
:
FD0L=
xxh,
FD0H=
xxh
Write Buffer
Finish
?
No
Write next Page
Write next data
Yes
FWT
=0 ?
No
Write Flash Program ROM Procedure