Data Sheet TSWC03622 SONET/SDH/PDH/ATM
August 20, 2003 Clock Synthesizer and Protection Switch
Agere Systems Inc. 45
If no reference is present and the ENSQLN signal is low, the device will select the reference desired as determined by the
SELCLK and SELBUN signals and will force the output clock and sync signals to a logic low level. Upon selecting a refer-
ence clock to initially lock to (defaults to reference A) and if the clock is present, the state machine initiates a time-out
period to allow the device to phase-lock to the selected reference clock. While waiting for the time-out period, the device
will activate the switch in progress interrupt, indicate if the selected reference agrees with the wanted reference on the con-
sistent interrupt, and output the selected reference on the SWSTATE signals.
After the initial start-up of the clock protection switch control circuit, the state machine will monitor the SELCLK and
SELBUN signals and the internal loss of clock flags. If the user initially wants a reference other than the one selected, the
state machine will check the status of the desired reference, and it will switch to the desired reference if it is present. This
will then initiate a new time-out period to allow the new reference to phase-lock. The circuit will prioritize clocks A and B
over clock BU such that if B is selected and disappears, A is checked first for switching before deciding to switch to clock
BU.
If the selected clock disappears, the state machine will autonomously switch to another reference that is present. If the
REVERTN signal is low, the state machine will automatically return to the originally selected reference after the time-out
period has expired. This could cause an oscillation between references, and to limit the length of this oscillation, the state
machine has a counter to count the number of transitions between references. If the ENLON signal is low, the state
machine will allow three transitions to occur before prohibiting further switching. To resume switching, the internal transition
counter is cleared by pulsing the LORSTN signal low. This allows external control of the time period monitored by the tran-
sition counter.
The nonautonomous mode is selected by forcing the AUTOSWN signal high or a no-connection on this signal. The start-up
condition causes the device to initially be selecting reference A. If A is absent, the device checks the reference desired (ref-
erence selected by SELCLK and SELBUN signals) for presence, and if it is present, the device immediately switches to this
reference. If the desired reference is absent, the device will look at the ENSQLN signal for direction. If ENSQLN is low, the
state machine will select the desired reference and squelch the output clock and sync signals, and if ENSQLN is high or not
connected, the state machine will remain in the state selecting reference A. If reference A is present, the state machine will
initiate the time-out period, and on the expiration of the time-out period, it will check for the presence of the desired clock. If
the desired clock is present, the device will switch to the desired clock and initiate another time-out period. If the desired
clock is absent, the state machine will remain in state A, and the state consistency interrupt will be active.
After the initial start-up of the device, the clock protection switch control circuit will monitor the SELCLK, SELBUN, and
ENSQLN signals and the loss of clock interrupts for changes. If the loss of clock interrupt on the currently selected refer-
ence goes active, the device will either do nothing or squelch the output clock and sync signals depending on the ENSQLN
condition. If ENSQLN is low, the device output clock and sync signals will be forced low. If the desired clock reference
changes and the time-out period has expired, the state machine will check the status of the desired reference loss of clock
interrupt. If the interrupt is low, the state machine will switch to the desired reference and initiate another time-out period.
Because there are times when a switch to a faulty (absent) reference is desired, the state machine has an override in the
form of the SWCONTN signal. Whenever the SWCONTN signal is low, all fault checking done prior to a switch is ignored;
i.e., the device will unconditionally switch to the reference desired on SELCLK and SELBUN. This override also allows the
user to squelch the output clock and sync signals manually by bringing the ENSQLN signal low.
There are three interrupts generated by the clock protection switch circuit: clock switch in progress, user-selected clock is
not consistent with the internal clock selection, and a lockout condition exists due to excessive number of switching events.
The clock switch in progress interrupt is active whenever a switching event occurs, and it will remain active until the time-
out period after the actual switch expires. The consistency interrupt is active whenever the internal clock selection dis-
agrees with the user desired selection. If a switch request comes from an external source through the SELCLK and SEL-
BUN signals before the internal time-out period has expired, then a consistency interrupt will be generated. This can be
prevented by monitoring the clock switch in progress interrupt. If the desired clock reference is absent, the consistency
interrupt will be generated, and if the state machine has locked out further switching events, the consistency interrupt will
be generated. The lock-out interrupt is generated whenever the number of switching events exceed three clock switches.
The time period for this count is controlled externally by the period between pulses on the LORSTN signal.