November, 2018 Rev.1.4
185
15.6 Serial In-System Program Mode
Serial In-System Program is performed via the interface of debugger which uses two wires. For more
information about debugger, refer to chapter 14.
15.6.1 ISP or Self Programming Sequence
In MC96FR364B, the commands needed to update FLASH is commenced by FECR register only.
PROGRAM or ERASE sequence is as follows :
1. Set Erase or Program time : FETCR(EE
H
) = 0xxx
NOTE1
2. Enter ISP or Self Program Mode
NOTE2
3. Reset Page Buffer : FECR(EC
H
) = 0x00
4. Load Page Buffer by “MOVX” instruction (up to 64Bytes).
5. Set Page Address to be programmed or erased by writing FARH(E9
H
), FARM(EA
H
) and FARL(EB
H
)
6-1. Set AEF and FSEL bits in FEMR. (This is used in ISP mode for Bulk Erase operation)
6-2. Set OTPE bit in FEMR. (OTPE bit is used to access OTP area. Set this bit if needed.)
6-3. Set VFY bit in FEMR. (VFY bit is used for read-verify operation. Set this bit if needed.)
7. Start Erase or Program : FECR(EC
H
) = 0x03(Erase) or 0x05(Program)
8. Wait PEVBSY bit in FESR(ED
H
) : for OCD mode
9. ISP or Self Program Mode Exit : FECR(EC
H
) = 0x31
NOTE1
Program or Erase time is only to be set before real program or erase operation. Normally, the FETCR value
doesn’t have to be changed.
NOTE2
Between flash program mode entry and exit, there can be several program or erase operation. It is only
need to exit flash program mode when all program or erase operations are done.
Step Operation
Page/Byte Program
Page/Byte Erase
Bulk Erase
Set Erase or Program Time
1) FETCR = 0xxx
1) FETCR = 0xxx
1) FETCR = 0xxx
Mode Entry
2) Mode Entry
2) Mode Entry
2) Mode Entry
Page Buffer Reset
3) FECR = 0x00
3) FECR = 0x00
3) FECR = 0x00
Load Page Buffer
4) Load bytes by MOVX
instruction
4) Load bytes by
MOVX instruction
4) Load page(64B) by
movx instruction
Set Page Address
5) FARH = 0xxx
5) FARH = 0x00
FARM = 0xxx
FARM = 0xxx
FARL = 0xxx
FARL = 0xxx
Set AEF/FSEL (Bulk Erase only)
6-1) FEMR = 0xA1
Set OTPE (OTP Access only)
6-2) FEMR |= 0x09
6-2) FEMR |= 0x09
6-2) FEMR |= 0x09
Set VFY (Verify operation only)
6-3) FEMR |= 0x02
6-3) FEMR |= 0x02
6-3) FEMR |= 0x02
Start Program or Erase
7) FECR = 0x05
7) FECR = 0x03
7) FECR = 0x03
Wait PEVBSY (OCD only)
8) Wait PEVBSY
8) Wait PEVBSY
8) Wait PEVBSY
Summary of Contents for MC96FR364B
Page 17: ...MC96FR364B November 2018 Rev 1 4 17 4 PACKAGE DIMENSION...
Page 18: ...MC96FR364B 18 November 2018 Rev 1 4 Figure 4 1 PKG DIMENSION 28 TSSOP...
Page 23: ...MC96FR364B November 2018 Rev 1 4 23 6 3 REMOUT Port Data PAD VDD Figure 6 3 REMOUT port...
Page 69: ...November 2018 Rev 1 4 69 Initial value 00H BIT 7 0 BIT counter value...