Megawin Technology Co., Ltd.
MG87FE/L52
SCMD (Sequential Command Data register)
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
SCMD
CMD
SCMD is the command port for triggering ISP/IAP/IAPLB activity. If SCMD is filled with
sequential 0x46h, 0xB9h and if ISPCR.7 = 1, ISP activity will be triggered.
ISPCR (ISP Control Register)
Name
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
ISPCR
ISPEN
SWBS
SWRST
CFAIL
---
= 0, Global disable all ISP/IAP program/erase/read function.
= 1, Enable ISP/IAP program/erase/read function.
= 0, Boot from main-memory after reset.
= 1, Boot from ISP memory after reset.
= 0, No operation
ISPEN
SWBS
SWRST
= 1, Generate software system reset. It will be cleared by hardware automatically.
= 0, The last ISP/IAP command has finished successfully.
= 1, The last ISP/IAP command fails. It could be caused since the access of flash
memory was inhibited.
CFAIL
B3~B0 Reserved
12.1 In-Application-Programmable (IAP)
The flash memory between IAPLB and ISP start address could be defined as data flash memory
and can be accessed by the ISP operation in field application. The size of IAP flash memory is
variable. It is defined by IAPLB.
When the MG87FE/L52 was boots from LD-memory, AP-memory and data flash memory are
opened for ISP operation.
35
Preliminary ver 1.3
Date: 2009-JAN-20