RX610 Group
8. Low Power Consumption
R01UH0032EJ0120 Rev.1.20
Page 200 of 1006
Feb 20, 2013
8.5.4.6
Flowchart to Use Deep Software Standby Mode
Figure 8.4 shows an example of flowchart to use deep software standby mode.
In this example, the DPSRSTF flag in RSTSR of the reset function is read after the reset exception handling to determine
whether a reset was generated by the RES# pin or by the cancellation of deep software standby mode.
In the case of a reset by the RES# pin, a transition to deep software standby mode is made after required register settings.
In the case of a reset by the cancellation of deep software standby mode, the IOKEEP bit in DPSBYCR is cleared to 0
after the I/O port settings.
No
Yes
Releasing a reset generated by the RES# pin
Reset exception handling
Program start
RSTSR.DPSRSTF = 0
Set DPSWCR.WTSTS5-0
Set oscillation settling ime
Read DPSIFR
Identify deep software standby
mode canceling source -- (1)
Set the following:
• SBYCR.SSBY = 1
• DPSBYCR.DPSBY = 1
• DPSBYCR.RAMCUT2-0
Select deep software
standby mode
Set Pn.DDR and Pn.DR
Set pin states after
clearing IOKEEP to 0
Set pin states during and
after cancellation of deep
software standby mode
Set DPSBYCR.IOKEEP = 0
Execute a program for he
canceling source identified in (1)
Release pin states that have
been retained since transition
to deep software standby mode
Execute WAIT instruc ion
Deep software standby mode
A deep software standby mode canceling interrupt is generated
Set deep software standby
mode canceling interrupt
Clear DPSIFR to 00h
Confirm the DPSIER setting
Set DPSIER
Set DPSIEGR
Set Pn.DDR and Pn.DR
Set SBYCR.OPE
Set DPSBYCR.IOKEEP = 1
Confirm he DPSIFR clearing
Figure 8.4 Example of Flowchart to Use Deep Software Standby Mode
Summary of Contents for RX600 Series
Page 1006: ...RX610 Group R01UH0032EJ0120 ...