MPC89L54A Megawin Technology, MPC89L54A Datasheet - Page 30

no-image

MPC89L54A

Manufacturer Part Number
MPC89L54A
Description
8-bit micro-controller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MPC89L54AD44
Manufacturer:
MEGAWIN原装
Quantity:
20 000
Part Number:
MPC89L54AF
Manufacturer:
MEGAWIN
Quantity:
1 648
www.DataSheet4U.com
Booting Program Entrance
The MPC89x54A boots according to the following rule.
Above rule is adaptive only for power-up procedure, while not software reset.
Switching from ISP program to AP program
The device permits the user normally start running the AP program as soon as the ISP program
has finished updating the flash content. Just program an instruction at the tail of ISP program as
30
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 )
If ( HWBS == 0 )
else
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)
ISPCR ←
System will boot from ISP program
System will boot from normal AP program
001xxxxx
b
b
&&
b
b
b
MPC89x54A Data Sheet
( { ISPAS1, ISPAS0}
Program a byte into flash
Read a byte from flash
/* set ISPEN=1 to enable flash change.
/* set ISPEN=1 to enable flash change.
/* specify the address to be read */
/* specify the address to be programmed */
/* prepare data source */
/* choice byte-read command */
set WAIT=010, 11 MC; assumed 10M X’s*/
/* choice byte-programming command */
set WAIT=010, 60 MC; assumed 10M X’s*/
/* trig ISP activity */
/* trig ISP activity */
{ 1, 1 })
MEGAWIN

Related parts for MPC89L54A