Cpu Clock And Peripheral Function Clock; Cpu Clock; Peripheral Function Clock (F 1Sio 2Sio 8Sio 32Sio Ad ); Clockoutput Function - Renesas M16C/26A Series Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1

7.5 CPU Clock and Peripheral Function Clock

The CPU clock is used to operate the CPU and peripheral function clocks are used to operate the periph-
eral functions.

7.5.1 CPU Clock

This is the operating clock for the CPU and watchdog timer.
The clock source for the CPU clock can be chosen to be the main clock, sub clock, on-chip oscillator clock
or the PLL clock.
If the main clock or on-chip oscillator clock is selected as the clock source for the CPU clock, the selected
clock source can be divided by 1 (undivided), 2, 4, 8 or 16 to produce the CPU clock. Use the CM06 bit in
CM0 register and the CM17 to CM16 bits in CM1 register to select the divide-by-n value.
When the PLL clock is selected as the clock source for the CPU clock, the CM06 bit should be set to "0"
and the CM17 and CM16 bits to "00
After reset, the on-chip oscillator clock divided by 16 provides the CPU clock.
Note that when entering stop mode from high or middle speed mode, on-chip oscillator mode or on-chip
oscillator low power dissipation mode, or when the CM05 bit in the CM0 register is set to "1" (main clock
turned off) in low-speed mode, the CM06 bit in the CM0 register is set to "1" (divide-by-8 mode).
7.5.2 Peripheral Function Clock (f
These are operating clocks for the peripheral functions.
Of these, fi (i = 1, 2, 8, 32) and fi
divided by i. The clock fi is used for Timer A and Timer B while fi
Additionally, the f1 and f2 clocks are also used for dead time timer.
The f
clock is produced from the main clock, PLL clock or on-chip oscillator clock, and is used for the A/
AD
D converter.
When the WAIT instruction is executed after setting the CM02 bit in the CM0 register to "1" (peripheral
function clock turned off during wait mode), or when the microcomputer is in low power dissipation mode,
the fi, fi
and f
SIO
AD
The f
clock is produced from the sub clock, and is used for timers A and B. This clock can only be used
C32
when the sub clock is on.

7.5.3 ClockOutput Function

The f
, f
, f
or f
1
8
32
C
CM01 to CM00 bits in the CM0 register to select. Table 7.5.3.1 shows the function of the CLK
Table 7.5.3.1 The function of the CLK
PC
LK5
CM01
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
6
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
" (undivided).
2
are derived from the main clock, PLL clock or on-chip oscillator clock
SIO
clocks are turned off.
clock can be output from the CLK
OUT
CM00
The function of the CLK
0
I/O port P9
1
f
C
0
f
8
1
f
32
0
f
1
1
Do not set
0
Do not set
1
Do not set
page 49
f o
3
2
9
6
C
2 /
6
) T
, f
, f
, f
, f
, f
1
2
8
32
1SIO
pin. Use the PCLK5 bit in the PCLKR register and
OUT
pin
OUT
0
7. Clock Generation Circuit
, f
, f
, f
2SIO
8SIO
32SIO
is used for UART0 to UART2.
SIO
pin
, f
)
AD
C32
pin.
OUT

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents