Rev. 1.60
50
August 20, 2019
Rev. 1.60
51
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
Write
Flash Memory
Flash Memory
Write Function
Enable Procedure
Set FWT=1
FWT=0 ?
Yes
No
Set Page Erase address: FARH/FARL
Set FMOD [2:0]=001 & FWT=1
Select
“
Page Erase mode
”
& Initiate write operation
FWT=0 ?
Yes
No
END
Write Finish ?
Yes
No
Clear CFWEN=0
Set FMOD [2:0]=000
Select
“
Write Flash Mode
”
Set Write starting address: FARH/FARL
Write data to data register: FD0L/FD0H
Page data
Write finish
Yes
No
Write Flash Memory Procedure – BS66F350/BS66F360/BS66F370
Note: When the FWT or FRD bit is set to 1, the MCU is stopped.