
Rev. 1.00
38 of ���
�an�a�� 1�� �01�
Standard 8051 8-Bit Flash MCU
HT85F2260/HT85F2270/HT85F2280
Flash Program Memory
Page Erase Operation
The Flash Memory must be first unlocked before implementing a page erase procedure. The
flash memory address is setup using the control registers, FMAR0, FMAR1 and FMAR2. The
Flash Memory Page Erase function is selected by the control bit, FMCR.2, in the FMCR register.
Setting the FMCR.7 bit high will start the Page Erase procedure. When the procedure has finished,
the MCU will continue to run automatically. The following flowchart illustrates the Page Erase
procedure.
START
END
W�ite FMAR�
W�ite FMAR1
W�ite FMAR0
MCU waits fo� page-e�asing finished.
Then MCU contin�es to ��n.
Flash memo�� cont�olle� m�st be
In �nlocked state
FMCR Bit � = 1
This will t�igge� page-e�asing action
FMCR Bit 7 = 1
Check FMSR Bit 1 = 1
Yes
No
Page Erase Flowchart