English
Language : 

BH66F2260 Datasheet, PDF (35/214 Pages) Holtek Semiconductor Inc – R-Sensor Blood Pressure Meter Flash MCU
BH66F2260
R-Sensor Blood Pressure Meter Flash MCU
Flash Memory
Write Function
Enable Procedure
Set FMOD [2:0] =110 & FWPEN=1
→ Select FWEN mode & Start Flash write
Hardware activate a counter
Wrtie the following pattern to Flash Data registers
FD1L= 00h , FD1H = 04h
FD2L= 0Dh , FD2H = 09h
FD3L= C3h , FD3H = 40h
Is counter
No
overflow ?
Yes
FWPEN=0
Is pattern
correct ?
Yes
CFWEN = 1
No
CFWEN=0
Success
Failed
END
Flash Memory Write Function Enable Procedure
Flash Memory Read/Write Procedure
After the Flash Memory write function is successfully enabled through the preceding IAP procedure,
users must first erase the corresponding Flash Memory page and then initiate the Flash Memory write
operation. For the device the number of the page erase operation is 64 words per page, the available
page erase address is only specified by FARH register and the content of the FARL[7:6] bit field.
Erase Page
0
1
2
3
4
5
:
:
126
127
:
:
254
255
FARH
0000 0000
0000 0000
0000 0000
0000 0000
0000 0001
0000 0001
:
:
0001 1111
0001 1111
:
:
0011 1111
0011 1111
FARL[7:6]
00
01
10
11
00
01
:
:
10
11
:
:
10
11
Erase Page Number and Selection
FARL[5:0]
xx xxxx
xx xxxx
xx xxxx
xx xxxx
xx xxxx
xx xxxx
:
:
xx xxxx
xx xxxx
:
:
xx xxxx
xx xxxx
"x": don’t care
Rev. 1.00
35
March 15, 2017