mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 103

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
Method 2: MCU Re-boots from ISP-memory through AP-memory
The alternative method to make the MCU boot from the ISP-memory is to trigger a software reset while the MCU
is running in the AP-memory. In this case, neither HWBS nor HWBS2 is enabled. The only way for the MCU to
boot from the ISP-memory is to trigger a software reset when running in the AP-memory. See the following flow
chart.
Figure 20-6. Re-boot from ISP-memory through AP-memory
103
See Figure 20-2
for the flow chart
See Figure 20-3
for the flow chart
See Figure 20-4
for the flow chart
ISPCR=ISPCR|0x40;
ISPCR=ISPCR|0x20;
//SWBS=1, select software-boot from ISP-memory
//SWRST=1, trigger software reset
MCU will re-boot from ISP-memory,
and run the "ISP code"
Check if ISP is requested?
Check if ISP is requested?
Do Flash Read to verify
the programmed data
Do Flash Page Erase
When MCU is running
in the AP-memory
Do Flash Program
End
.
. . .
.
YES
YES
MPC82G516A Data Sheet
NO
NO
ISPCR=ISPCR&0xBF;
ISPCR=ISPCR|0x20;
//SWBS=0,
//select software-boot from AP-memory
//SWRST=1,
//trigger software reset to reboot from AP-memory
MCU will re-boot from AP-memory,
and run the normal "Application code"
MEGAWIN

Related parts for mpc82g516a