20.1 Embedded Flash
20.1.1 Flash Features
The Flash can only perform ‘page’ erasing, not byte erasing. And, the erased page data will become all 0xFF.
Only the byte with value of 0xFF can programmed into a non-0xFF byte. Any non-0xFF byte can not be
reversely programmed into a 0xFF byte unless using the page erasing.
Each page has 512 bytes, and the page address is always located at 0x0200*N, where N (=0,1,2,3,..) means
the Nth page.
Endurance: 20,000 Erase/Write Cycles.
20.1.2 Flash Configuration
Figure 20-1 shows the Flash configuration of MPC82G516A. The Flash an 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 total Flash size is 64K bytes, where the space of IAP-memory and ISP-memory can be
configured by a Universal Programmer, the “Megawin 8051 Writer” or the “Megawin 8051 ICP Programmer” (see
Section 20.4.1).
Figure 20-1. Flash Configuration
0000h
Application
AP-memory
code
Total Flash
64KB
IAP_lower_boundary
(! Configured by a universal
Programmer)
Non-volatile
IAP-memory
data
ISP_start_address
0xF000 for ISP=4KB
0xF800 for ISP=2KB
ISP code
0xFC00 for ISP=1KB
(! Configured by a universal
Programmer)
ISP-memory
FFFFh
MEGAWIN
MPC82G516A Data Sheet
96