FR60 MB91460E Series - Microcontrollers - Fujitsu
FR60 MB91460E Series - Microcontrollers - Fujitsu
FR60 MB91460E Series - Microcontrollers - Fujitsu
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.1.3. Shutdown with Real Time Clock running<br />
<strong>MB91460E</strong> <strong>Series</strong><br />
The following settings generate Shutdown with the RTC running on Main-Oscillation, Sub-Oscillation or RC<br />
clock, and with recovery by RTC enabled:<br />
• Set the RTC prescaler values depending on the clock speed (WTBR register)<br />
• If recovery by the RTC is needed:<br />
- Enable at least one of the the RTC interrupts (half-second, second, minute, hour or day) in WTCR and/or<br />
WTCE register<br />
- Enable RTC recovery: set SHDINT.RTCE=1<br />
• If RTC uses Main Oscillation:<br />
- Disable the RC oscillator in STOP mode (CSVCR.RCE=0)<br />
- Disable the Sub oscillator in STOP mode (STCR.OSCD2=1) and keep Main oscillator running (OSCD1=0)<br />
- The RTC is connected to Main oscillation by default.<br />
• If RTC uses Sub Oscillation:<br />
- Disable the RC oscillator in STOP mode (CSVCR.RCE=0)<br />
- Disable the Main oscillator in STOP mode (STCR.OSCD1=1) and keep Sub oscillator running (OSCD2=0)<br />
- Connect the RTC to Sub oscillator: set CSCFG.CSC[1:0]=01<br />
• If RTC uses RC clock:<br />
- Enable the RC oscillator in STOP mode (CSVCR.RCE=1, this is default setting)<br />
- Disable the Main and the Sub oscillators in STOP mode (STCR.OSCD1=1, STCR.OSCD2=1)<br />
- Connect the RTC to RC oscillator: set CSCFG.CSC[1:0]=10<br />
• Set the Shutdown Enable bit SHDE.SDENB=1 to enable shutdown mode<br />
• Go to STOP: set the STOP request STCR.STOP=1 and read back STCR two times.<br />
4.1.4. Hardware Watchdog in Shutdown<br />
The Hardware Watchdog can run in STOP mode, if the bit HWWDE.STP_RUN 1 is set.<br />
• Outside STOP mode, the Hardware Watchdog timeout will send an INIT signal to the CPU via the Shutdown<br />
control.<br />
• In STOP mode without Shutdown, the Hardware Watchdog timeout will send an INIT signal to the CPU via<br />
the (inactive) Shutdown control, which cancelles the STOP mode immediately.<br />
• In STOP mode with Shutdown enabled, the Hardware Watchdog timeout will set the SHDINT.HWWDF flag,<br />
causing a recovery from Shutdown.<br />
The Hardware Watchdog can be enabled in Shutdown state like follows:<br />
• Enable the Hardware Watchdog operation in STOP mode: set HWWDE.STP_RUN = 1<br />
In parallel, this enables the RC oscillator by hardware, and the Hardware Watchdog recovery Enable bit<br />
SHDINT.HWWDE is set by hardware too.<br />
• If RTC is needed, enable it like described in 4.1.3. Shutdown with Real Time Clock running above.<br />
• Specify the levels of external interrupt signals used for recovery in EXTLV1/2 registers<br />
• Enable the channels of external interrupt signals for recovery in EXTE register<br />
• Set the Shutdown Enable bit SHDE.SDENB=1 to enable shutdown mode<br />
• Clear/restart the Hardware Watchdog: write 0 to bit HWWD.CL<br />
• Go to STOP: set the STOP request STCR.STOP=1 and read back STCR two times.<br />
1. STP_RUN is bit [4] of HWWDE register. It enables running the Hardware Watchdog in STOP mode.<br />
STP_RUN can only be set by software, but not cleared. STP_RUN is cleared by INIT.<br />
DS705-00002-1v3-E 85