
3. Clock System
A31G22x Clock Setting Guide
8
3.2.
Clock Sources for Peripherals
Figure 2 shows how to set the peripheral clock. Selecting a peripheral clock is a typical method of
MCCRn and PCLK. Exceptionally WT, WDT, LCD use other clocks besides MCCRn and PCLK. (n = 1,
2, 3, 4, 5, 6 and 7).
Enable Clock for MCCRn
&
Enable Clock for PCLK
END
Peripheral clock : MCCRn ?
Select clock for Peripheral
In SCU_PPCLKSR
Select MCCRn for the
Peripheral to use
Y
Peripheral clock : PCLK
(Exception : WT, WDT, LCD)
N
* WT : LSE, WDTRC
* WDT : WDTRC
* LCD : LSE, WDTRC
* SCU_PPCLKSR : PCLK, MCCRn
(Exception : WT, WDT, LCD)
NOTES:
1.
The WDTRC clock outputs 31.250KHz frequency generated by dividing the Typ. 500kHz (
±
20%) LSI
clock by 16 in the internal logic.
2.
This WDTRC clock can be the source clock of the WDT, WT, LCD and TIMER20 capture signals.
Figure 2. Peripheral Clock Selection (n = 1, 2, 3, 4, 5, 6 and 7)