
MC97F6108A User’s manual
19. Memory programming
211
Flash OTP area read mode
1.
Enter OCD (=ISP) mode.
2.
Set ENBDM bit of BCR.
3.
Enable debug and Request debug mode.
4.
Select OTP area. FEMR:1000_0101
5.
Read data from Flash.
Flash OTP area 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 and select OTP area. FEMR:1010_0101
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.