EasyManua.ls Logo

Cmsemicon CMS32L051 - Time Required to Switch between CPU Clock and Main System Clock

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 99 / 703
4.6.6 Time required to switch between CPU clock and main system clock
CPU clock switching (master system clock) can be performed by setting bit6 and bit4 (C SS, MCM0)
of the system clock control register (CKC). Secondary system clock) and the switching of the main
system clock (high-speed internal oscillator clock high-speed system clock).
Instead of making the actual switch immediately after overwriting the CKC registers, several clocks
continue to run at the pre-switching clock after changing the CKC registers (refer to Table 4-5~Table
4-7).
It can be determined by bit7 (CLS) of the CKC register whether the CPU is running from the primary
system clock or the secondary system clock. The bit5 (MCS) of the CKC register can tell whether the
master system clock is running on a high-speed system clock or a high-speed internal oscillator clock.
If you switch the CPU clock, you switch the peripheral hardware clock at the same time.
Table 4-5 Time required to switch the master system clock
Clock A
Switch directions
Clock B
remark
f
IH
f
MX
Reference Table 4-6.
f
MAIN
f
SUB
Reference Table 4-7.
Table 4-6 f
IH
f
MX
maximum number of clocks required
The setting value before switching
The setting value after switching
MCM0
MCM0
0
(f
MAIN
=f
IH
)
1
(f
MAIN
=f
MX
)
0
(f
MAIN
=f
IH
)
f
MX

IH
2 clocks
f
MX
f
IH
2 f
IH
/f
MX
clock
1
(f
MAIN
=f
MX
)
f
MX

IH
2 f
MX
/f
IHclocks
f
MX
f
IH
2 clocks
Table 4-7 f
MAIN
f
SUB
maximum number of clocks required
The setting value before switching
The setting value after switching
CSS
CSS
0
(f
CLK
=f
MAIN
)
1
(f
CLK
=f
SUB
)
0
(f
CLK
=f
MAIN
)
1+2 f
MAIN
/f
SUB
clock
1
(f
CLK
=f
SUB
)
3 clocks
Note 1 The number of clocks in Table 4-6and Table 4-7is the number of CPU clocks before switchover.
2. The number of clocks in Table Table 4-6Table Table 4-7number of clocks rounded to the fractional part.
For example, the main system clock is switched from the high-speed system clock to the high-speed internal
oscillator clock (f-IH=8MHz and fMX=10MHz oscillation is selected).
2fMX/fIH = 2 (10/8) = 2.5 3 clocks

Table of Contents

Related product manuals