EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 66

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 4 Clock Generation Circuit
www.mcu.com.cn 66 / 703
Figure 4-2 Format of clock operating mode control register (CMC)
Address: 40020400H After reset: 00H R/W
Symbol
7 6 5 4 3 2 1 0
Cmc
EXCLK
OSCSEL
High speed system clock
pin operation mode
X1/P121 pins
X2/EXCLK/P122 pins
0
0
Port mode
Input/output ports
0
1
X1 oscillation mode
Connect a crystal or ceramic resonator.
1
0
Port mode
Input/output ports
1
1
External clock input mode
Input/output ports
External clock input
EXCLKS
OSCSELS
Subsystem clock pin
operating mode
XT1/P123 pins
XT2/EXCLKS/P124
Pins
0
0
Port mode
Input/output ports
0
1
XT1 oscillation mode
Connect a crystal resonator.
1
0
Port mode
Input/output ports
1
1
External clock input mode
Input/output ports
External clock input
AMPHS1
AMPHS0
Oscillation mode selection for XT1 oscillation circuitry
0
0
Low power oscillation (default)
0
1
Usual oscillations
1
0
Ultra-low power oscillation
1
1
Disable the setting.
AMPH
Control of the oscillation frequency of the X1 clock
0

X

1
10MHzf
X

Note: The EXCLKS bit, OSCSELS bit, AMPHS 1 bit, and AMPHS0 bits are only initialized on power-on reset and remain
unchanged on other resets.
Note 1. After the reset is released, the CMC register can only be written once via the 8-bit memory operation command.
When using the CMC register at the initial value (00H), in order to prevent malfunction when the program is out of
control (it cannot be recovered if a value other than 00H is miswritten), the CMC register must be set after the
reset is released 00H.
2. The CMC register must be set after the reset is released and before the X1 or XT1 oscillation is started by setting
the clock operating state control register (CSC).
3. When the X1 clock oscillation frequency exceeds 10MHz, the AMPH position must be 1.
4. The AMPH bit, the AMPHS1 bit and the AMPHS0 bit must be set after the reset has been released and with fIH
selected as the state of f
CLK
(before switching f
CLK
to f
MX
or f
SUB
).
5. The oscillation settling time of f
XT
must be counted by software.
6. The upper frequency limit of the system clock is 64 MHz, but the upper frequency limit of the X1 oscillation circuit
is 20 MHz.
Note f
X
: X1 clock oscillation frequency
EXCLK
OSCSEL
EXCLKS Note
OSCSELS Note
0
AMPHS1 Note
AMPHS0 Note
AMPH

Table of Contents

Related product manuals