Exiting Ram Backup Mode (Wakeup) - Renesas M32R/ECU Series User Manual

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

Advertisement

17

17.4 Exiting RAM Backup Mode (Wakeup)

The processing to place the M32R/ECU out of RAM backup mode and return it to normal operation mode is
referred to as "wakeup" processing. Figure 17.4.1 shows an example of wakeup processing.
Wakeup processing is initiated by applying a reset. The following shows how to execute wakeup processing.
(1) Reset the microcomputer ((a) in Figure 17.4.1).
(2) Set port X for output mode and output a high from the port ((b) in Figure 17.4.1) (Note 1)
(3) Compare the RAM content against the RAM check data created before entering RAM backup mode ((c) in
Figure 17.4.1).
(4) If the comparison in (3) did not match, initialize the RAM ((d) in Figure 17.4.1).
If the comparison in (3) matched, use the retained data in the program.
(5) Initialize each internal circuit ((e) in Figure 17.4.1) before returning to the main routine ((f) in Figure 17.4.1).
Note 1: For wakeup from power outage RAM backup mode, port X settings are unnecessary.
Note 1: For wakeup from power outage RAM backup mode, port X settings are unnecessary.
Figure 17.4.1 Wakeup Processing
Example of wakeup processing
(a)
Reset
(b)
Set the transistor's base
connecting pin (port X)
for high-level output mode
(Note 1)
Compare RAM content
(c)
against backup RAM
check data
Error
(d)
Initialize the RAM
(e)
Initialize each circuit
To the main routine
(f)
17-8
RAM BACKUP MODE
17.4 Exiting RAM Backup Mode (Wakeup)
OK
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents