Download Print this page

Renesas 7542 Manual page 76

Single-chip 8-bit cmos microcomputer
Hide thumbs Also See for 7542:

Advertisement

7542 Group
Figure 98 shows a flowchart for setting/releasing CPU rewrite mode.
Notes
Fig. 98 CPU rewrite mode set/release flowchart
Notes on CPU Rewrite Mode
Take the notes described below when rewriting the flash memory
in CPU rewrite mode.
Operation speed
During CPU rewrite mode, set the system clock φ to 4.0 MHz or
less using the clock division ratio selection bits (bits 6 and 7 of ad-
dress 003B
).
16
Instructions inhibited against use
The instructions which refer to the internal data of the flash
memory cannot be used during CPU rewrite mode.
Rev.3.02
Oct 31, 2006
REJ03B0006-0302
Single-chip mode or Boot mode
Set CPU mode register (Note 1)
Transfer CPU rewrite mode control program to
internal RAM
Jump to control program transferred to internal RAM
(Subsequent operations are executed by control
program in this RAM)
Set CPU rewrite mode select bit to "1"
(by writing "0" and then "1" in succession)
Set all user block E/W enable bit
Set 8KB user block E/W mode enable bit
(for setting to "1", by writing "0" and then "1"
in succession)
(Note 3)
Using software command executes erase,
program, or other operation
Execute read array command or reset flash
memory by setting flash memory reset bit (by
writing "1" and then "0" in succession) (Note 2)
Set all user block E/W enable bit to "0"
Set 8KB user block E/W mode enable bit to "0"
Write "0" to CPU rewrite mode select bit
1: Set the main clock as follows depending on the clock division ratio selection bits of
CPU mode register (bits 6, 7 of address 003B
2: Before exiting the CPU rewrite mode after completing erase or program operation,
always be sure to execute the read array command or reset the flash memory.
3: As for setting of these bits, refer to Table 8.
Page 76 of 134
Start
End
).
16
Interrupts inhibited against use
The interrupts cannot be used during CPU rewrite mode because
they refer to the internal data of the flash memory.
Watchdog timer
If the watchdog timer has been already activated, internal reset
due to an underflow will not occur because the watchdog timer is
surely cleared during program or erase.
Reset
Reset is always valid. The MCU is activated using the boot mode
at release of reset in the condition of CNVss = "H", so that the pro-
gram will begin at the address which is stored in addresses
FFFC
and FFFD
16
16
of the boot ROM area.

Advertisement

loading