Chapter 3 Modes of Operation
MC9S08QE128 MCU Series Reference Manual, Rev. 2
44
Freescale Semiconductor
3.6.1.4
RTC Considerations for Stop2
In addition, the real-time counter (RTC) can wake the MCU from stop2, if enabled.
Upon wake-up from stop2 mode, the MCU starts up as from a power-on reset (POR):
•
All module control and status registers are reset, except for SPMSC1–SPMSC3, DBG trace buffer,
and RTC registers
•
The CPU takes the reset vector
3.6.1.5
I/O Considerations for Stop2
In addition to the above, upon waking up from stop2, the PPDF bit in SPMSC2 is set. This flag is used to
direct user code to go to a stop2 recovery routine. PPDF remains set and the I/O pin states remain latched
until a 1 is written to PPDACK in SPMSC2.
GPIO — To maintain I/O states for pins that were configured as general-purpose I/O, the user must:
1. Before entering stop2, save the contents of the I/O registers into RAM before entering stop2.
2. Restore the contents of the I/O port registers, which have been saved in RAM, to the port registers
before writing to the PPDACK bit.
If the port registers are not restored from RAM before writing to PPDACK, then the pins will
switch to their reset states when PPDACK is written.
Peripheral I/O —For pins that were configured as peripheral I/O, the user must reconfigure the peripheral
module that interfaces to the pin before writing to the PPDACK bit.
If the peripheral module is not enabled before writing to PPDACK, the pins will be controlled by their
associated port control registers when the I/O latches are opened.
NOTE
The RSTPE bit will be cleared by the stop2 recovery and should not be set
before writing to the PPDACK bit. Doing so will cause a second reset event
and the PPDF bit will be cleared at the end of the second reset.
3.6.1.6
Low-Power Oscillator Considerations for Stop2
If using the low power oscillator during stop2, the user must reconfigure the ICSC2 register which contains
oscillator control bits before PPDACK is written.
The low power (HGO=0), low range (RANGE=0) oscillator can operate in stop2 to be the clock source for
the RTC module. If the low power low range oscillator is active upon entering stop2, it will remain active
in stop2 regardless of the value of EREFSTEN. To disable the oscillator in stop2, the ICS must be switched
into FBI or FEI mode before executing the STOP instruction.
3.6.2
Stop3 Mode
Stop3 mode is entered by executing a STOP instruction under the conditions as shown in
states of all of the internal registers and logic, RAM contents, and I/O pin states are maintained.
Содержание MC9S08QE128
Страница 2: ......
Страница 4: ......
Страница 49: ...Chapter 3 Modes of Operation MC9S08QE128 MCU Series Reference Manual Rev 2 50 Freescale Semiconductor ...
Страница 138: ...Chapter 6 Parallel Input Output Control MC9S08QE128 MCU Series Reference Manual Rev 2 138 Freescale Semiconductor ...
Страница 144: ...Chapter 7 Keyboard Interrupt S08KBIV2 MC9S08QE128 MCU Series Reference Manual Rev 2 144 Freescale Semiconductor ...
Страница 166: ...Chapter 8 Central Processor Unit S08CPUV4 MC9S08QE128 MCU Series Reference Manual Rev 2 166 Freescale Semiconductor ...
Страница 174: ...MC9S08QE128 MCU Series Reference Manual Rev 2 174 Freescale Semiconductor Analog Comparator S08ACMPV3 ...
Страница 202: ...12 bit Analog to Digital Converter S08ADCV1 MC9S08QE128 MCU Series Reference Manual Rev 2 202 Freescale Semiconductor ...
Страница 282: ...Serial Peripheral Interface S08SPIV3 MC9S08QE128 MCU Series Reference Manual Rev 2 282 Freescale Semiconductor ...
Страница 306: ...Timer PWM Module S08TPMV3 MC9S08QE128 MCU Series Reference Manual Rev 2 306 Freescale Semiconductor ...
Страница 320: ...Development Support MC9S08QE128 MCU Series Reference Manual Rev 2 320 Freescale Semiconductor ...