mpc89l515ap Megawin Technology, mpc89l515ap Datasheet - Page 29

no-image

mpc89l515ap

Manufacturer Part Number
mpc89l515ap
Description
8-bit Micro-controller
Manufacturer
Megawin Technology
Datasheet
ISPEN: ISP function enabling bit
SWBS: Secondary Booting program selecting
SWRST: software reset trigger
SFR: ISPCR (ISP Control register):
Procedures demonstrating ISP function
Notice: Software reset actions could reset other SFR, but it never influences bits ISPEN and SWBS.
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
ISPEN
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
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
b
b
MPC89x515A Data Sheet
Page Erase
Bit-4
43769
21885
10942
-
5471
Erase a specific flash page
Bit-3
CPU Wait time (Machine Cycle)
-
Program
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
Read
43
22
11
6
WAIT
Bit-1
Recommended
System clock
40M
20M
10M
5M
Bit-0
29

Related parts for mpc89l515ap