mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 101

no-image

mpc82g516a

Manufacturer Part Number
mpc82g516a
Description
8-bit Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mpc82g516aE
Manufacturer:
MEGAWIN
Quantity:
1 200
Part Number:
mpc82g516aF
Manufacturer:
MEGAWIN
Quantity:
20 000
20.2.2.3 Flash Read Mode
Figure 20-4. Flow Chart for “Flash Read”
Demo code for triggering the “Read Mode”
101
isp_error:
MOV
MOV
MOV
MOV
MOV
MOV
;Now, MCU will halt here until processing completed
MOV
CJNE
;...
JMP
ISP fail
ISPCR,#10000011b ;ISPCR.7=1, enable ISP
IFMT,#01h
IFADRH,??
IFADRL,??
SCMD,#46h
SCMD,#0B9h
A,IFD
A,??,isp_error
$
IFADRH= High-byte of Byte_address
IFADRL= Low-byte of Byte_address
SCMD=0x46, then SCMD=0xB9
(trigger ISP processing by sequential
writing)
Now, the read data will exist in IFD
NO
ISPEN=1 (enable ISP function),
and initialize ISPCR[2:0]
IFMT=0x01 (select Read Mode)
;ISPCR[2:0]=011,
;select Read Mode
;fill [IFADRH,IFADRL] with byte address
;
;trigger ISP processing
;
;now, the read data exists in IFD
;and, the user can check if the data is correct
Address=0x0000
Check if the
read data correct ?
End of address?
MPC82G516A Data Sheet
ISP pass
Start
YES
YES
suppose MPC82-series running @11.0592MHz
NO
Refer to Table 20-2
to initialize ISPCR[2:0]
Address=Address+1
MEGAWIN

Related parts for mpc82g516a