English
Language : 

BH66F2470 Datasheet, PDF (36/223 Pages) Holtek Semiconductor Inc – Glucose Meter Flash MCU
BH66F2470
Glucose Meter Flash MCU
• FD2L Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0 D7~D0: The third Flash Memory data [7:0]
• FD2H Register
Bit
7
6
5
4
3
2
1
0
Name
D15
D14
D13
D12
D11
D10
D9
D8
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0 D15~D8: The third Flash Memory data [15:8]
• FD3L Register
Bit
7
6
5
4
3
2
1
0
Name
D7
D6
D5
D4
D3
D2
D1
D0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0 D7~D0: The fourth Flash Memory data [7:0]
• FD3H Register
Bit
7
6
5
4
3
2
1
0
Name
D15
D14
D13
D12
D11
D10
D9
D8
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0 D15~D8: The fourth Flash Memory data [15:8]
Flash Memory Write Function Enable Procedure
In order to allow users to change the Flash Memory data through the IAP control registers, users
must first enable the Flash Memory write operation by the following procedure:
Step 1. Write "110" into the FMOD2~FMOD0 bits to select the FWEN mode.
Step 2. Set the FWPEN bit to "1". The step 1 and step 2 can be executed simultaneously.
Step 3. The pattern data with a sequence of 00H, 04H, 0DH, 09H, C3H and 40H must be written
into the FD1L, FD1H, FD2L, FD2H, FD3L and FD3H registers respectively.
Step 4. A counter with a time-out period of 300μs will be activated to allow users writing the correct
pattern data into the FD1L/FD1H~FD3L/FD3H register pairs. The counter clock is derived
from the fSUB clock.
Step 5. If the counter overflows or the pattern data is incorrect, the Flash Memory write operation
will not be enabled and users must again repeat the above procedure. Then the FWPEN bit
will be automatically cleared to 0 by hardware.
Step 6. If the pattern data is correct before the counter overflows, the Flash Memory write operation
will be enabled and the FWPEN bit will automatically be cleared to 0 by hardware. The
CFWEN bit will also be set to 1 by hardware to indicate that the Flash Memory write
operation is successfully enabled.
Step 7. Once the Flash Memory write operation is enabled, the user can change the Flash Memory
data through the Flash control register.
Step 8. To disable the Flash Memory write operation, the user can clear the CFWEN bit to 0.
Rev. 1.00
36
March 15, 2017