R01UH0092EJ0110 Rev.1.10
Page 306 of 807
Jul 31, 2012
M16C/64C Group
18. Timer B
18.2.3
Peripheral Clock Stop Register 1 (PCLKSTP1)
Set the PRC0 bit in the PRCR register to 1 (write enabled) before rewriting this register
PCKSTP11 (Timer peripheral clock stop bit) (b1)
When using f1 or the main clock for the timer A and timer B count source, set the PCKSTP11 bit to 0 (f1
provide enabled).
To change the PCKSTP11 bit from 1 (f1 provide disabled) to 0, use following procedure:
(1) Stop timer A and timer B.
(2) Set the PCKSTP11 bit to 0.
(3) Set the registers for timer A and timer B again.
PCKSTP17 (Timer clock source select bit) (b7)
Change the PCKSTP17 bit when all of the following conditions are met:
•
Both f1 and the main clock are stably supplied.
•
Both timer A and timer B are stopped.
The PCKSTP17 bit is used for supplying the main clock to timer A and timer B.
When in PLL operating mode, high-speed mode, medium-speed mode, or wait mode, the main clock
can be used for the timer A and timer B count source.
Do not use the main clock for the timer A and timer B count source in other normal operating modes
(refer to 9.3 “Clock”).
b7 b6 b5 b4 b3 b2 b1 b0
Peripheral Clock Stop Register 1
Symbol
PCLKSTP1
Address
0016h
Reset Value
0XXX XX00b
Bit Symbol
Bit Name
Function
RW
PCKSTP17
Timer clock source select bit
(timer A, timer B)
—
(b6-b2)
No register bit. If necessary, set to 0. The read value is undefined.
—
Peripheral clock stop bit
(other than timer A, timer B)
PCKSTP1A
PCKSTP11
Timer peripheral clock stop bit
(timer A, timer B)
0: f1 provide enabled
1: f1 provide disabled
0: f1 provide enabled
1: f1 provide disabled
0: f1
1: Main clock
RW
RW
RW
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...