CMS32L051 User Manual |Chapter 4 Clock Generation Circuit
www.mcu.com.cn 65 / 703
4.3 Registers for controlling clock generation circuit
The clock generation circuit is controlled by the following registers.
•
Clock operation mode control register (CMC)
•
System clock control registers (CKC)
•
Clock operation status control register (CSC)
•
Status register of the oscillation stabilization time counter (OSTC)
•
Oscillation stabilization time selection register (OSTS)
•
Peripheral enable registers 0, 1 (PER 0, PER1)
•
Subsystem clock supply mode control register (OSMC)
•
High-speed internal oscillator frequency selection register (HOCODIV)
•
High-speed internal oscillator trim register (HIOTRM)
•
Subsystem clock selection register (SUBCKSEL)
Note: Assigned registers and bits vary from product to product. You must set an initial value for unassigned bits.
4.3.1 Clock operation mode control register (CMC).
This is the register that sets the operating mode of the X1/P 121, X2/EXCLK/P 122, XT1/P123,
XT2/EXCLKS/P1 24 pins and selects the oscillation circuit gain.
After the reset is released, the CMC register can only be written once via the 8-bit memory operation
command. This register can be read via 8-bit memory operation instructions.
After the reset signal is generated, the value of this register becomes 00H.