135
Clock Generator
Chapter 4
Preliminary User’s Manual U17566EE1V2UM00
4.1.5
Start-up guideline
After reset release, the internal firmware starts the main oscillator, but hands
over control to the user’s software without ensuring that the main oscillator has
stabilized.
After that, the user’s software will typically:
1. Ensure that the main oscillator has stabilized (check CGSTAT.OSCSTAT).
2. Switch the source of LCDCLK/WTCLK and WDTCLK to main oscillator (if
desired).
3. Start the PLL (set CKC.PLLEN) and wait until the PLL has stabilized (refer
to the Electrical Target Specification).
4. If the SSCG is going to be used:
Write SSCG registers to set up the SSCG. This is only possible when the
SSCG is switched off.
Start the SSCG (set CKC.SCEN) and wait until the SSCG has stabilized
(refer to the Electrical Target Specification).
Set up the SSCG post clock divider by SCPS.VBSPS[2:0].
5. Write the PCC register to specify the SSCG as the clock source for the
CPU.
6. Set up the clock sources for the peripherals according to application
requirements.
7. The default value of following registers must be changed after reset:
– WCC.bit1 = 1 (refer to
“Control registers for peripheral clocks” on
page 150
)
– ADA0M1.bit1 = 1 (refer to
“ADC Registers” on page 773
)
electronic components distributor