mg84fl54 Megawin Technology, mg84fl54 Datasheet - Page 100

no-image

mg84fl54

Manufacturer Part Number
mg84fl54
Description
Full-speed Usb Micro-controller
Manufacturer
Megawin Technology
Datasheet
Bit7: ISPEN: Set to enable ISP function.
Bit6: SWBS:
Bit5: SWRST: Write ‘1’ to trigger software reset.
Bit4: CFAIL, Command Fail indication for ISP/IAP operation.
Bit3: MISPF, Megawin proprietary ISP Flag.
Bit2: Reserved.
Bit1~0: MS1~MS0, ISP mode select, as listed below.
Table 20-1 ISP mode setting
IFADRH (Address=E3H, ISP/IAP Flash Address High Register)
IFADRH is the high-byte address port for all ISP/IAP modes.
IFADRL (Address=E4H, ISP/IAP Flash Address Low Register)
IFADRL is the low-byte address port for all ISP/IAP modes.
IFD (Address=E2H, ISP/IAP Flash Data Register)
IFD is the data port register for ISP/IAP operation. The data in IFD will be written into the desired address in
operating ISP/IAP write and it is the data window of readout in operating ISP/IAP read.
SCMD (Address=E6H, ISP Sequential Command Register)
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/IAP activity will be triggered.
100
MS1, MS0
0
0
1
1
ISPEN
7
7
7
7
7
after software reset.
This bit would be clear to “0” by hardware when the last ISP/IAP command had finished successfully.
If this bit is set to “1” by hardware, it mean that the error would happen during the last ISP/IAP command
execution.
Software boot select. Set to select booting from ISP-memory, and clear to select booting from AP-memory
If user want to excute the Megawin proprietary USB DFU function, user should not only set SWBS to
select booting from ISP-memory, but also set this bit to trigger Megawin prorietary USB DFU operation
before triggering software reset. If user just only set a soft reset or perform IAP flow, must write “0” on this
bit.
0
1
0
1
Byte Program Program data to Flash specified by the byte address in [IFADRH,IFADRL]
Page Erase
SWBS
ISP Mode
Standby
Read
6
6
6
6
6
SWRST
Keep the ISP/IAP hardware in the deactivated state
Read data from Flash specified by the byte address in [IFADRH, IFADRL]
Erase one page (512 bytes) specified by the page address in [IFADRH, IFADRL]
5
5
5
5
5
CFAIL
MG84FL54B Data Sheet
4
4
4
4
4
Address
Address
SCMD
Data
MISPF
3
3
3
3
3
Operating Description
Reserved
2
2
2
2
2
MS1
1
1
1
1
1
MS0
0
0
0
0
0
MEGAWIN

Related parts for mg84fl54