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 2 to 8 until all pages are written.
Flash page erase mode
1. Enable program mode.
2. Reset page buffer. FEMR: 1000_0001 FECR:0000_0010
3. Select page buffer. FEMR:1000_1001
4. Write ‘h00 to page buffer. (Data value is not important.)
5. Set erase mode. FEMR:1001_0001
6. Set page address. FEARH:FEARM:FEARL=20’hx_xxxx
7. Set FETCR.
8. Start erase. FECR:0000_1011
9. Insert one NOP operation
10. Read FESR until PEVBSY is 1.