HT67F2350/HT67F2360
HT67F2370/HT67F2390
Advanced A/D Flash MCU with LCD & EEPROM
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 LIRC oscillator.
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 automatically be 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 ROM data
through the Flash control register.
Step 8. To disable the Flash memory write operation, the user can clear the CFWEN bit to 0.
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
Rev. 1.60
Flash Memory Write Function Enable Procedure
63
No
Is counter
overflow ?
Yes
FWPEN=0
No
Is pattern
correct ?
Yes
CFWEN=0
CFWEN = 1
Success
Failed
END
May 16, 2019
Need help?
Do you have a question about the HT67F2350 and is the answer not in the manual?