
REJ05B1160-0101 Rev.1.01 February 2010 Page 36 of 43
M16C/62P Group, R32C/111 Group
Differences between M16C/62P and R32C/111 (100 pin ver.)
4.19 Flash Memory
4.19.1 Flash Memory
Table 4.49 to Table 4.51 respectively list the changes on flash memory, software commands, and
associated registers.
WA: Even address to be written
WD: 16-bit write data
BA: Even address in specified block
PBA: Address of the protect bit
x: Any even address in the user ROM area
xx: Upper byte of command code (ignored)
N/A: Not applicable
Notes:
1. This command cannot be executed in EW1 mode.
2. In the M16C/62P, a set of command consists of two words from the first command to the second. The
program is performed in 16-bit (1-word) unit.
3. In the R32C/111, a set of command consists of five words from the first command to the fifth. The
program is performed in 64-bit (4-word) unit. The higher 29 bits of the address WA should be fixed
and the lower three bits of respective command from the second to fifth should be set to 000b, 010b,
100b, and 110b for the addresses 0h, 2h, 4h, and 6h, or 8h, Ah, Ch, and Eh.
4. This command should be executed in RAM.
Table 4.49 Comparison Chart: Flash Memory
Item M16C/62P R32C/111
Unit to be programmed 2 bytes 8 bytes
Erase and program
endurance
100 times (all areas) or
1,000 times (user ROM area except
blocks A and 1) and 10,000 times
(blocks A and 1)
1, 000 times (program area) and
10,000 times (data area)
Software commands 8 9
Table 4.50 Comparison Chart: Software Commands
Item
M16C/62P R32C/111
First command Second command First command Second command
Address Data Address Data Address Data Address Data
Read array mode shift x xxFFh N/A N/A FFFFF800h 00FFh N/A N/A
Read status register mode shift
(1)
x xx70h N/A N/A FFFFF800h 0070h N/A N/A
Clear status register x xx50h N/A N/A FFFFF800h 0050h N/A N/A
Program
(2, 3)
WA xx40h WA WD FFFFF800h 0043h WA WD
Erase all unlocked block x xxA7h x xxD0h N/A N/A N/A N/A
Block erase x xx20h BA xxD0h FFFFF800h 0020h BA 00D0h
Lock bit program BA xx77h BA xxD0h FFFFF800h 0077h BA 00D0h
Read lock bit status x xx71h BA xxD0h FFFFF800h 0071h BA 00D0h
Read lock bit status mode shift
(4)
N/A N/A N/A N/A FFFFF800h 0071h N/A N/A
Protect bit program N/A N/A N/A N/A FFFFF800h 0067h PBA 00D0h
Read protect bit status mode shift
(4)
N/A N/A N/A N/A FFFFF800h 0061h N/A N/A
Komentarze do niniejszej Instrukcji