mpc82x52a Megawin Technology, mpc82x52a Datasheet - Page 62

no-image

mpc82x52a

Manufacturer Part Number
mpc82x52a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
62
Procedures demonstrating ISP function
not software reset.
IFMT ← xxxxx001
ISPCR ← 100xx010
IFADRH ← (Address high byte)
IFADRL ← (Address low byte)
SCMD ← 46h
SCMD ← B9h
(CPU progressing will be hold here)
(CPU continues and currently IFD contain the desired data byte )
IFMT ← xxxxx010
ISPCR ← 100xx010
IFADRH ← (Address high byte)
IFADRL ← (Address low byte)
IFD ← (byte date to be written into flash)
SCMD ← 46h
SCMD ← B9h
(CPU progressing will be hold here)
(CPU continues)
IFMT ← xxxxx011
ISPCR ← 100xx010
IFADRH ← (page address high byte)
IFADRL ← (page address low byte)
SCMD ← 46h
SCMD ← B9h
(CPU progressing will be hold here )
(CPU continues)
B
B
B
B
B
B
MPC82x52A Data Sheet
Erase a specific flash page
Program a byte into flash
Read a byte from flash
/* set ISPEN=1 to enable flash change.
/* set ISPEN=1 to enable flash change.
/* set ISPEN=1 to enable flash change.
/* specify the address to be read */
/* choice page-erasing command */
/* specify the address of the page to be erased */
/* prepare data source */
set WAIT=010, 11 MC; assumed 10M X’s*/
set WAIT=010, 60 MC; assumed 10M X’s*/
/* specify the address to be programmed */
/* choice byte-read command */
set WAIT=010, 10942 MC; assumed 10M X’s*/
/* trig ISP activity */
/* choice byte-programming command */
/* trig ISP activity */
/* trig ISP activity */
MEGAWIN

Related parts for mpc82x52a