Functional Description and Application Information
S12S Clocks and Reset Generator (S12SCRGV1)
MM912F634
Freescale Semiconductor
247
4.32.3.2.1
9S12I32PIMV1 Control Register 0 (CRGCTL0)
Read: Anytime
Write: See individual bit descriptions.
Writing the CRGCTL0 register clears the LOCKST bit, but does not set the LOCKIF bit in the CRGFLG register.
Table 320. 9S12I32PIMV1 Control Register 0 (CRGCTL0)
0x0034
7
6
5
432
10
R
OSCEN
RDIV[2:0]
BCLKS
REFS
OSC4MHZ
0
W
Reset
0
000
00
0
Table 321. CRGCTL0 Field Descriptions
Field
Description
7
OSCEN
Oscillator Enable Bit
0 Oscillator Clock and Oscillator Monitor are disabled.
1 Oscillator Clock and Oscillator Monitor are enabled.
6, 5, 4
RDIV[2:0]
Reference Divider Bits
These bits divide the Oscillator Clock down in frequency.
Divided down frequency must be in the allowed range for fFLLREF. See device electrical characteristics for details.
000 divide by 128
001 divide by 160
010 divide by 192
011 divide by 256
100 divide by 320
101 divide by 384
110 divide by 512
111 Reserved
3
BCLKS
Bus Clock Source Select Bit
Writing BCLKS = 1 is only possible if oscillator startup flag is set (UPOSC = 1).
BCLKS is cleared with disabling the Oscillator, that is either OSCEN = 0 or entering Stop Mode.
0 DCO Clock is selected as basis for the Bus Clock.
1 Oscillator Clock is selected as basis for the Bus Clock. DCO is disabled.
2
REFS
Reference Select Bit
Writing REFS = 1 is only possible if oscillator startup flag is set (UPOSC = 1).
REFS is cleared with disabling the Oscillator, that is either OSCEN = 0 or entering Stop Mode.
0 Internal Reference Clock is selected as FLL Reference Clock.
1 Divided down Oscillator Clock is selected as FLL Reference Clock.
1
OSC4MHZ
4.0 MHz Oscillator low pass filter select Bit
The Oscillator contains a noise filter in its signal path from EXTAL/XTAL to chip internal Oscillator Clock. This is to improve high
frequency noise immunity. Writing OSC4MHZ is only possible if OSCEN was zero before.
0 Oscillator uses noise filter with high bandwidth. To be used with crystals/resonators > 4.0 Mhz.
1 Oscillator uses noise filter with low bandwidth. To be used with crystals/resonators = 4.0 Mhz. Choosing a low bandwidth in
case of a 4.0 MHz crystal/resonator further improves noise immunity at lower frequencies.