TMP91C824
91C824-18
3.3.3
System clock controller
The system clock controller generates the system clock signal (f
SYS
) for the CPU core and internal I/O.
It contains two oscillation circuits and a clock gear circuit for high-frequency (fc) operation. The register
SYSCR1<SYSCK> changes the system clock to either fc or fs, SYSCR0<XEN> and SYSCR0<XTEN>
control enabling and disabling of each oscillator, and SYSCR1<GEAR0 to GEAR2> sets the
high-frequency clock gear to either 1, 2, 4, 8 or 16 (fc, fc/2, fc/4, fc/8 or fc/16). These functions can
reduce the power consumption of the equipment in which the device is installed.
The combination of settings <XEN> = 1, <XTEN> = 0, <SYSCK> = 0 and <GEAR0~GEAR2> = 100
will cause the system clock (f
SYS
) to be set to fc/32 (fc/16
×
1/2) after a Reset.
For example, f
SYS
is set to 0.5 MHz when the 16-MHz oscillator is connected to the X1 and X2 pins.
(1) Switching from Normal Mode to Slow Mode
When the resonator is connected to the X1 and X2 pins, or to the XT1 and XT2 pins, the warm-up
timer can be used to change the operation frequency after stable oscillation has been attained.
The warm-up time can be selected using SYSCR2<WUPTM0,WUPTM1>.
This warm-up timer can be programmed to start and stop as shown in the following examples 1
and 2.
Table 3.3.1 shows the warm-up time.
Note 1: When using an oscillator (other than a resonator) with stable oscillation, a warm-up timer is
not needed.
Note 2: The warm-up timer is operated by an oscillation clock. Hence, there may be some variation
in warm-up time.
Table 3.3.1 Warming-up times
Warming-up Time
SYSCR2
<WUPTM1,WUPTM0>
Change to
Normal Mode
Change to
Slow Mode
01 (2
8
/ frequency)
16 (
µ
s)
7.8 (ms)
10 (2
14
/ frequency)
1.024 (ms)
500 (ms)
11 (2
16
/ frequency)
4.096 (ms)
2000 (ms)
at f
OSCH
= 16 MHz,
fs
= 32.768 kHz