/* the following code segment demonstrates initializing external oscillator */
/* supposing external 32768Hz crystal is installed in low power mode */
ICS_OSCSC = 0xA0; /* low-range, low-power, oscillator required, ERCLK enabled in stop mode */
while (ICS_OSCSC_OSCINIT == 0); /* waiting until oscillator is ready */
8.4 1 kHz low-power oscillator (LPO)
The 1 kHz low-power oscillator acts as a standalone low-frequency clock source in all
run, wait, and stop3 modes.
8.5 Peripheral clock gating
This device includes a clock gating system to manage the bus clock sources to the
individual peripherals. Using this system, the user can enable or disable the bus clock to
each of the peripherals at the clock source, eliminating unnecessary clocks to peripherals
that are not in use, thereby reducing the overall run and wait mode currents.
Out of reset, all peripheral clocks will be enabled. For lowest possible run wait currents,
user software should disable the clock source to any peripheral not in use. The actual
clock will be enabled or disabled immediately following the write to the Clock Gating
Control registers (SCG_Cx). Any peripheral with a gated clock cannot be used unless its
clock is enabled. Writing to the registers of a peripheral with a disabled clock has no
effect.
Note
User software should disable the peripheral before disabling the
clocks to the peripheral. When clocks are re-enabled to a
peripheral, the peripheral registers need to be re-initialized by
user software.
In stop modes, the bus clock is disabled for all gated peripherals, regardless of the setting
in SCG_Cx registers.
8.6 ICS control registers
1 kHz low-power oscillator (LPO)
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
166
NXP Semiconductors
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...