A96G140/A96G148/A96A148 User’s manual
19. Memory programming
245
⑥
Set page address. FEARH:FEARM:FEARL=20’hx_xxxx
⑦
Set FETCR.
⑧
Start program. FECR:0000_1011
⑨
Insert one NOP operation
⑩
Read FESR until PEVBSY is 1.
Flash OTP area erase mode
①
Enable program mode.
②
Reset page buffer. FEMR: 1000_0001 FECR:0000_0010
③
Select page buffer. FEMR:1000_1001
④
Write ‘h00 to page buffer. (Data value is not important
.)
⑤
Set erase mode and select OTP area. FEMR:1001_0101
⑥
Set page address. FEARH:FEARM:FEARL=20’hx_xxxx
⑦
Set FETCR.
⑧
Start erase. FECR:0000_1011
⑨
Insert one NOP operation
⑩
Read FESR until PEVBSY is 1.
Flash program verify mode
①
Enable program mode.
②
Set program verify mode. FEMR:1010_0011
③
Read data from Flash.
OTP program verify mode
①
Enable program mode.
②
Set program verify mode. FEMR:1010_0111
③
Read data from Flash.
Flash erase verify mode
①
Enable program mode.
②
Set erase verify mode. FEMR:1001_0011