Renesas M32R/ECU Series User Manual page 148

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

Advertisement

6
Set the Flash Control Register in SFR area
Set the Flash Control Register in SFR area
Note 1: For details about each command, see Section 6.5.4, "Procedure for Programming/Erasing
the Internal Flash Memory."
Figure 6.5.6 Procedure for Entering Flash E/W Enable Mode
START
Enter one of the following modes:
• Single-chip mode
• Boot mode
• External extension mode
Check
MOD0/1 and FP pin
levels
OK
Transfer the flash write/erase program
into the internal RAM
(FCNT1, H'0080 01E2) FENTRY bit to 0
(FCNT1, H'0080 01E2) FENTRY bit to 1
Wait for 1 µs
(using a hardware or software timer)
Execute flash write/erase command and
various read commands (Note 1)
Jump to the flash memory or apply reset
END
6.5 Programming the Internal Flash Memory
FMOD(H'0080 01E0)
FPMOD
P8DATA(H'0080 0708)
D0 = MOD0DT
D1 = MOD1DT
NO
END
Switched to the flash write/erase
program
→ Go to flash E/W enable mode
Switched to normal mode
6-19
INTERNAL MEMORY
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents