20 ISP, IAP and ICP
The embedded Flash memory of the MPC82G516A can be programmed using the following methods.
(1) The traditional parallel programming method: generally for a Universal Programmer (not described here).
(2) In-System Programming method (ISP): under control of the loader program.
(3) In-Application Programming method (IAP): under control of the user’s application program.
(4) In-Circuit Programming (ICP): under control of the proprietary ICP Programmer (see Section 20.4.1).
Refer to Figure 20-1 for the MPC82G516A Flash Configuration. The Flash of MPC82G516A can be partitioned
into AP-memory, IAP-memory and ISP-memory. AP-memory is used to store the user’s application program; IAP-
memory is used to store the non-volatile application data; and, ISP-memory is used to store the loader program
for In-System Programming.
The traditional parallel programming and ICP can program anywhere in the MCU, including the whole Flash and
MCU’s Hardware Option. The ISP and IAP can only program some specific area of the Flash; the ISP can
program both AP-memory and IAP-memory while the IAP can only program the IAP-memory. Table 20-1 shows
the comparison between the various programming methods listed above.
Table 20-1. Comparison between the Various Programming Methods
Parallel
Programming
Items
ISP
IAP
ICP
Erase/Program/Verify
Yes
Yes
Yes
Yes
Whole Flash &
MCU’s
Hardware Option
Whole Flash &
MCU’s
Hardware Option
Programming
Area
AP-memory &
IAP-memory
IAP-memory
Controlled by
Hardware or Software?
Hardware-
Controlled
Software-
Controlled
Software-
Controlled
Hardware-
Controlled
Serial Interface
Using
Dedicated
SDA & SCL
Serial Interface
Using
DTA (P3.1)
Programming
Interface
Parallel
Interface
None
Preparation
for the
Programming
Loader Program
Pre-programmed
& HWBS enabled
None
None
None
None
Universal Programmer
or “Megawin
“Megawin
ISP
Programmer”
“Megawin
ICP
Programmer”
Programming
Tool
8051 Writer”
Why ISP?
ISP makes it possible to update the user’s application program (in AP-memory) and non-volatile application data
(in IAP-memory) without removing the MCU chip from the actual end product. This useful capability makes a wide
range of field-update applications possible. (Note ISP needs the loader program pre-programmed in the ISP-
memory.)
Why IAP?
The IAP-memory provides a non-volatile storage for the applications which need to keep its application data not
lost after the system is powered off. So, there is no need of an extra serial EEPROM such as the 93C46 or
24C01 devices.
Why ICP?
ICP makes it possible to update anywhere in the MCU (including the whole Flash and MCU’s Hardware Option)
without removing the MCU chip from the actual end product. Like the ISP, it also makes a wide range of field-
update applications possible.
95
MPC82G516A Data Sheet
MEGAWIN