Rev. 1.10
42
October 23, 2020
Rev. 1.10
43
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
Write Flash
Memory
Flash Memory Erase/Write
Function Enable Procedure
FWT=1
Write data to Write Buffer
FD0L=xxH, FD0H=xxH
FWT=1
FWT=0 ?
Yes
No
Write
FMOD[2:0]=000
Clear CFWEN bit
END
Write Finish ?
Yes
No
Write to
Buffer Finish ?
No
Write another Page
Write next data
Yes
FWT=0 ?
No
Yes
Verify data with
Table Read instruction
DATA correct ?
No
Yes
Blank Check with Table Read
instruction
Blank Check
Page Data=0000h ?
No
Set CLWB bit
Specify Flash Memory Address
FARH=xxH, FARL=xxH
Yes
Page Erase
FMOD[2:0]=001
Set CLWB Bit
Set Erase Page Address
FARH=xxH, FARL=xxH
Write dummy data into FD0H
(Tag Address)
Tag address
Finish ?
Yes
No
Flash Memory Consecutive Write Procedure
Note: 1. When the erase or write operation is successfully activated, all CPU operations will temporarily cease.
2. It will take certain time for the FWT bit state changing from high to low in the erase or write operation,
which can be selected by the FWERTS bit in the FC2 register.