
Functional Des cription 25 April 24, 2015
3.8 SELECTED INPUT CLOCK SWITCH
If the input clock is selected by External Fast selection or by Forced
selection, it can be switched by setting the related registers (refer to
Chapter 3.6.1 External Fast Selection & Chapter 3.6.2 Forced Selection)
any time. In this case, whether the input clock is qualified for DPLL lock-
ing does not affect the clock switch.
When the input clock is selected by Automatic selection, the input
clock switch depends on its validity and priority. If the current selected
input clock is disqualified, a new qualified input clock may be switched
to.
3.8.1 INPUT CLOCK VALIDITY
For the input clocks, the validity depends on the results of input clock
quality monitoring (refer to Chapter 3.5 Input Clock Quality Monitoring).
When all of the following conditions are satisfied, the input clock is valid;
otherwise, it is invalid.
•No no-activity alarm (the INn_CMOS_NO_ACTIVITY_ALARM
bit is ‘0’);
•No frequency hard alarm (the INn_CMOS_FREQ_HARD_
ALARM bit is ‘0’);
•If the IN_NOISE_WINDOW bit is ‘1’, all the edges of the input
clock of 2 kHz, 4 kHz or 8 kHz drift inside ±5%; if the
IN_NOISE_WINDOW bit is ‘0’, this condition is ignored.
•No phase lock alarm, i.e., the INn_CMOS_PH_LOCK_ALARM
bit is ‘0’;
•If the ULTR_FAST_SW bit is ‘1’, the T0 selected input clock
misses less than (<) 2 consecutive clock cycles; if the ULTR_-
FAST_SW bit is ‘0’, this condition is ignored.
The validities of the input clocks are indicated by the INn_CMOS 1 bit
(n = 1 or 2). When the input clock validity changes (from ‘valid’ to ‘invalid’
or from ‘invalid’ to ‘valid’), the INn_CMOS 2 bit will be set. If the INn_C-
MOS 3 bit is ‘1’, an interrupt will be generated.
When the T0 selected input clock has failed, i.e., the validity of the T0
selected input clock changes from ‘valid’ to ‘invalid’, the T0_-
MAIN_REF_FAILED 1 bit w ill be set. If the T0_MAIN_REF _FAILED 2 bit
is ‘1’, an interrupt will be generated. This interrupt can also be indicated
by hardware - the TDO pin, as determined by the LOS_FLAG_TO_TDO
bit. When the TDO pin is used to indicate this interrupt, it will be set high
when this interrupt is generated and will remain high until this interrupt is
cleared.
3.8.2 SELECTED INPUT CLOCK SWITCH
Revertive and Non-Revertive switches are supported, as selected by
the REVERTIVE_MODE bit.
The difference between Revertive and Non-Revertive switches is
that whether the selected input clock is switched when another qualified
input clock with a higher priority than the current selected input clock is
available for selection. In Non-Revertive switch, input clock switch is
minimized.
Conditions of the qualified input clocks available for T0 selection are
as the following:
•Valid, i.e., the INn_CMOS 1 bit is ‘1’;
•Priority enabled, i.e., the corresponding INn_CMOS_SEL _PRI-
ORITY[3:0] bits are not ‘0000’.
The input clock is disqualified if any of the above conditions is not
satisfied.
In summary, the selected input clock can be switched by:
•External Fast selection;
•Forced selection;
•Revertive switch;
•Non-Revertive switch.
3.8.2.1 Revertive Switch
In Revertive switch, the selected input clock is switched when
another qualified input clock with a higher priority than the current
selected input clock is available.
The selected input clock is switched if any of the following is satis-
fied: •The selected input clock is disqualified;
•Another qualified input clock with a higher priority than the
selected input clock is available.
A qualified input clock with the higher priority is selected by revertive
switch. If more than one qualified input clock is available and has the
same priority, the input clock with the smaller ‘n’ is selected. See Table 8
for the ‘n’ assigned to each input clock.
3.8.2.2 Non-Revertive Switch
In Non-Revertive switch, the T0 selected input clock is not switched
when another qualified input clock with a higher priority than the current
selected input clock is available. In this case, the selected input clock is
switched and a qualified input clock with the higher priority is selected
only when the T0 selected input clock is disqualified. If more than one
qualified input clock is available and has the same priority, the input
clock with the smaller ‘n’ is selected. See Table 8 for the ‘n’ assigned to
each input clock.
3.8.3 SELECTED / QUALIFIED INPUT CLOCKS INDICATION
The selected input clock is indicated by the CURRENTLY_SELECT-
ED_INPUT[3:0] bits.
The qualified input clocks with the two highest priorities are indicated
by the HIGHEST_PRIORITY_VALIDATED[3:0] bits and the SEC-
OND_HIGHEST_PRIORITY_VALIDATED[3:0] bits respectively. If more
than one input clock has the same priority, the input clock with the
smaller ‘n’ is indicated by the HIGHEST_PRIORITY_VALIDATED[3:0]
bits. See Table 8 for the ‘n’ assigned to the input clock.
When the device is configured in Automatic selection and Revertive
switch is enabled, the input clock indicated by the CURRENTLY_SE-
LECTED_INPUT[3:0] bits is the same as the one indicated by the HIGH-
EST_PRIORITY_VALIDATED[3:0] bits; otherwise, they are not the
same.