mpc89x515a Megawin Technology, mpc89x515a Datasheet - Page 31

no-image

mpc89x515a

Manufacturer Part Number
mpc89x515a
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
ISPEN: ISP function enabling bit
SWBS: Secondary Booting program selecting
SWRST: software reset trigger
SFR: SCMD (Sequential Command Data register for ISP) :
SFR: ISPCR (ISP Control register):
Procedures demonstrating ISP function
Notice: Software reset actions could reset other SFR, but it never influences bits ISPEN and
Note: OR0 cannot be changed by ISP operation. It can be accessed only by Writer. Only OR1 can be
SCMD is the command port for triggering ISP activity. If SCMD is filled with sequential 46h, B9h and if
ISPCR.7 = 1, ISP activity will be triggered.
When this register is read, the device ID of MPC89x515A will be returned (2 bytes). The MSB byte of DID
is F1h and LSB byte 10h. IFADRL[0] is used to select HIGH/LOW byte of DID.
WAIT: Waiting time selection while the flash is busy.
MEGAWIN
Bit-7
Bit-7
ISPEN
changed by ISP program.
SWBS. The ISPEN and SWBS only will be reset by power-up action, not software reset.
0: = Disable ISP program to change flash
1: = Enable ISP program to change flash
0: = Boot from main-memory.
1: = Boot from ISP memory.
1: = Generate software system reset. It will be cleared by hardware automatically.
0: = No operation
SWBS
Bit-6
Bit-6
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)
ISPCR[2:0]
0 0 0
0 0 1
0 1 0
0 1 1
SWRST
Bit-5
Bit-5
b
ISP-Command (Device ID)
b
Page Erase
MPC89x515A Data Sheet
43769
21885
10942
5471
Bit-4
Bit-4
-
Erase a specific flash page
CPU Wait time (Machine Cycle)
Program
Bit-3
Bit-3
-
240
120
60
30
/* set ISPEN=1 to enable flash change.
/* specify the address of the page to be erased */
/* choice page-erasing command */
set WAIT=010, 10942 MC; assumed 10M X’s*/
/* trig ISP activity */
Bit-2
Bit-2
Read
43
22
11
6
WAIT
Bit-1
Bit-1
Recommended
System clock
40M
20M
10M
5M
Bit-0
Bit-0
31

Related parts for mpc89x515a