ST10C167
43/65
XX.4.3 - Prescaler operation
When pins P0.15-13 (P0H.7-5) equal ’001’ during
reset the CPU clock is derived from the internal
oscillator (input clock signal) by a 2:1 prescaler.
The frequency of f
CPU
is half the frequency of
f
XTAL
and the high and low time of f
CPU
(i.e. the
duration of an individual TCL) is defined by the
period of the input clock f
XTAL
.
The timings listed in the AC Characteristics that
refer to TCLs, therefore, can be calculated using
the period of f
XTAL
for any TCL.
Note that if the bit OWDDIS in SYSCON register
is cleared, the PLL is running on its free-running
frequency and delivers the clock signal for the
Oscillator Watchdog. If bit OWDDIS is set, then
the PLL is switched off.
XX.4.4 - Direct drive
When pins P0.15-13 (P0H.7-5) equal ’011’ during
reset the on-chip phase lockedloop is disabledand
the CPU clock is directly driven from the internal
oscillatorwith the inputclocksignal.
The frequency of f
CPU
directly follows the
frequency of f
XTAL
so the high and low time of
f
CPU
(i.e. the duration of an individual TCL) is
defined by the duty cycle of the input clock f
XTAL
.
The timings listed below that refer to TCL
therefore must be calculated using the minimum
TCL that is possible under the respective
circumstances. This minimum value can be
calculated by the following formula:
For two consecutive TCLs the deviation caused
by the duty cycle of f
XTAL
is compensated so the
duration of 2TCL is always 1/f
XTAL
. The minimum
value TCL
min
therefore has to be used only once
for timings that require an odd number of TCLs
(1,3,...). Timings that require an even number of
TCLs (2,4,...) may use the formula:
Note The address float timings in Multiplexed
bus mode (t11and t45) use the maximum
duration ofTCL (TCL
max
=1/f
XTAL
xDC
max
)
instead ofTCL
min
.
Note that if the bit OWDDIS in SYSCON register
is cleared, the PLL is running on its free-running
frequency and delivers the clock signal for the
Oscillator Watchdog. If bit OWDDIS is set, then
the PLL is switched off.
XX.4.5 - Oscillator watchdog (OWD)
When the clock option selected is direct drive or
direct drive with prescaler, in order to provide afail
safe mechanism in case of a loss of the external
clock, an oscillator watchdog is implemented as
an additionalfunctionality ofthe PLLcircuitry. This
oscillator watchdog operatesas follows :
After a reset, the Oscillator Watchdog is enabled
by default. To disable the OWD, the bit OWDDIS
(bit 4 of SYSCON register) must be set.
When the OWD is enabled, the PLL is running on
its free-running frequency, and increment the
Oscillator Watchdog counter. On each transition
of XTAL1 pin, the Oscillator Watchdog is cleared.
If an external clock failure occurs, then the
Oscillator Watchdog counter overflows (after 16
PLL clock cycles).
The CPU clock signal will be switched to the PLL
free-running clock signal, and the Oscillator
Watchdog Interrupt Request (XP3INT) is flagged.
The CPUclock will not switch back to the external
clock even if a valid external clock exits on XTAL1
pin. Only a hardware reset can switch the CPU
clock source backto direct clock input.
When the OWD is disabled, the CPU clock is
always fed from the oscillator input and the PLL is
switched off to decrease power supplycurrent.
XX.4.6 - Phase locked loop
For all other combinations of pins P0.15-13
(P0H.7-5) during reset the on-chip phase locked
loop is enabled and provides the CPU clock (see
table above). The PLL multiplies the input
frequency by the factor F which isselected via the
combination of pins P0.15-13 (i.e. f
CPU=fXTAL
*
F). With every F’th transition of f
XTAL
the PLL
circuit synchronizes the CPU clock to the input
clock. This synchronization is done smoothly, i.e.
the CPU clock frequency does not change
abruptly.
Due to this adaptation to the input clock the
frequency of f
CPU
is constantly adjusted so it is
locked to f
XTAL
. The slight variation causes a jitter
of f
CPU
which also effects the duration of
individual TCLs.
The timings listed in the AC Characteristics that
refer to TCL therefore must be calculated using
the minimum TCL that is possible under the
respective circumstances.
TCL
min
1f⁄
XTAL
*DC
min
=
DC duty cycle=
2TCL 1 f
XTAL
⁄=
XX - ELECTRICAL CHARACTERISTICS(continued)