
MC97F6108A User’s manual
19. Memory programming
209
Enable program mode
1.
Enter OCD(=ISP) mode.
NOTE1
2.
Set ENBDM bit of BCR.
3.
Enable debug and Request debug mode.
4.
Enter program/erase mode sequence.
NOTE2
A.
Write 0xAA to 0xF555.
B.
Write 0x55 to 0xFAAA.
C.
Write 0xA5 to 0xF555.
NOTES
:
1.
Refer to how to enter ISP mode.
2.
Command sequence to activate Flash write/erase mode. It is composed of sequentially writing data of
Flash memory.
Flash write mode
1.
Enable program mode.
2.
Reset page buffer. FEMR: 1000_0001 FECR:0000_0010
3.
Select page buffer. FEMR:1000_1001
4.
Write data to page buffer (Address automatically increases by twin).
5.
Set write mode. FEMR:1010_0001
6.
Set page address. FEARH:
FEARM:FEARL=20’hx_xxxx
7.
Set FETCR.
8.
Start program. FECR:0000_1011
9.
Insert one NOP operation
10.
Read FESR until PEVBSY is 1.
11.
Repeat Steps from 2 to 8 until all pages are written.