Mitsubishi Electric M32R Series User Manual page 158

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
Enter one of the following modes:
• Single-chip mode + flash E/W enable
• Boot mode + flash E/W enable mode
• Extended external mode + flash E/W
Note: For details about each command, refer to Section 6.5.3, "Programming Procedure to
Internal Flash Memory."
Figure 6.5.6 Procedure for Entering Flash E/W Enable Mode
START
mode
enable mode
MOD0, 1
FP pin levels
checked
OK
Transfer E/W program to internal RAM in
each mode
Set Flash Control Register in SFR area
(FCNT1, H'0080 07E2) flash entry
(FENTRY) bit to 0
Set Flash Control Register in SFR area
(FCNT1, H'0080 07E2) flash entry
(FENTRY) bit to 1
1 µs wait
(by hardware timer or software timer)
Execute flash E/W command and various
read commands (Note)
Jump to flash memory
or apply reset
END
6.5 Programming of the Internal Flash Memory
FMOD(H'0080 07E0)
FPMOD
P8DATA(H'0080 0708)
D0=MOD0DT
D1=MOD1DT
NO
END
6-24
INTERNAL MEMORY
Switched to flash E/W
program
Switched to normal mode
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents