Register Map: Section 6.2
ZL30252, ZL30253
3-Input, 3-Output Any-to-Any Clock
Multiplier and Jitter Attenuator ICs
Data Sheet
January 2018
Ordering Information
Features
• Input Clocks
ZL30252LDG1
ZL30252LDF1
ZL30253LDG1
ZL30253LDF1
• Three inputs: two differential/CMOS, one CMOS
• Any input frequency from 1kHz to 1250MHz
(1kHz to 300MHz for CMOS)
Package size: 5 x 5 mm
-40C to +85C
• Automatic or manual reference switching
• Low-Bandwidth DPLL
• Per-output supply pin with CMOS output
voltages from 1.5V to 3.3V
• Programmable bandwidth, 14Hz to 500Hz
• Precise output alignment circuitry and peroutput phase adjustment
• Attenuates jitter up to several UI
• Freerun or digital hold on loss of all inputs
• Per-output enable/disable and glitchless
start/stop (stop high or low)
• Digitally controlled phase adjustment
• Low-Jitter Fractional-N APLL and 3 Outputs
• General Features
• Any output frequency from 2.5V, connect the signal directly to
ICxP pin. For input signal amplitude ≤2.5V, AC-coupling the signal to ICxP
is recommended. Connect the N pin to a capacitor (0.1F or 0.01F) to
VSS. As shown in Figure 22, the ICxP and ICxN pins are internally biased to
approximately 1.3V. Treat the ICxN pin as a sensitive node; minimize stubs;
do not connect to anything else including other ICxN pins.
Unused: Set ICEN.ICxEN=0. The ICxP and ICxN pins can be left floating.
Note that the IC3N pin is not bonded out. A differential signal can be
connected to IC3P by AC-coupling the POS trace to IC3P and terminating the
signal on the driver side of the coupling cap. If not needed as an input clock
pin, IC3P can behave as general-purpose I/O pin GPIO3, which is configured
by GPIOCR2. Its state is indicated in GPIOSR.
Crystal or Master Clock Pins
10
11
XA
XB
24
23
20
21
15
14
OC1P
OC1N
OC2P
OC2N
OC3P
OC3N
30
RSTN
A/I
O
IPU
Crystal: MCR1.XAB=01. An on-chip crystal driver circuit is designed to work
with an external crystal connected to the XA and XB pins. See section 5.4.2
for crystal characteristics and recommended external components.
Master Clock: MCR1.XAB=10. An external local oscillator or clock signal (95125MHz) can be connected to the XA pin. The XB pin must be left
unconnected.
Output Clock Pins
CML, HSTL or 1 or 2 CMOS. Programmable frequency and drive strength.
See Table 11 and Figure 24 for electrical specifications and recommended
external circuitry for interfacing to LVDS, LVPECL or CML input pins on
neighboring devices.
See Table 12 for electrical specifications for interfacing to CMOS and HSTL
inputs on neighboring devices.
See Figure 25 for recommended external circuitry for interfacing to HCSL inputs
on neighboring devices.
Reset (Active Low). When this global asynchronous reset is pulled low, all
internal circuitry is reset to default values. The device is held in reset as long
as RSTN is low. See section 5.12.
9
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
Table 1 - Pin Descriptions (continued)
Pin #
Name
Type
Description
Auto-Configure [1:0] / General Purpose I/O 0 and 1
28
27
AC0/GPIO0
AC1/GPIO1
I/O
Auto Configure: On the rising edge of RSTN these pins behave as AC[1:0] and
specify one of the configurations stored in EEPROM. See section 5.3.
General-Purpose I/O: After reset these pins are GPIO0 and GPIO1. GPIOCR1
configures the pins. Their states are indicated in GPIOSR.
Factory Test / General Purpose I/O 2
26
TEST/GPIO2
I/O
Factory Test: On the rising edge of RSTN the pin behaves as TEST. Factory
test mode is enabled when TEST is high. For normal operation TEST must be
low on the rising edge of RSTN.
General-Purpose I/O: After reset this pin is GPIO2. GPIOCR2 configures the
pin. It state is indicated in GPIOSR.
Interface Mode 0 / SPI Chip Select (Active Low)
Interface Mode: On the rising edge of RSTN the pin behaves as IF0 and,
together with IF1, specifies the interface mode for the device. See section 5.3.
32
IF0/CSN
I/O
SPI Chip Select: After reset this pin is CSN. When the device is configured as
a SPI slave, an external SPI master must assert (low) CSN to access device
registers. When the device is configured as a SPI master (ZL30252 only), the
device asserts CSN to access an external SPI EEPROM during autoconfiguration.
I2C Clock / SPI Clock
I2C Clock: When the device is configured as an I2C slave, an external I2C
master must provide the I2C clock signal on the SCL pin. Note that I2C requires
an external pullup resistor on this signal. See the I2C specification for details.
31
SCL/SCLK
I/O
SPI Clock: When the device is configured as a SPI slave, an external SPI
master must provide the SPI clock signal on SCLK. When the device is
configured as a SPI master (ZL30252 only), the device drives SCLK as an
output to clock accesses to an external SPI EEPROM during autoconfiguration.
Interface Mode 1 / SPI Master-In-Slave-Out
Interface Mode: On the rising edge of RSTN the pin behaves as IF1 and,
together with IF0, specifies the interface mode for the device. See section 5.3.
1
IF1/MISO
I/O
SPI MISO: After reset this pin is MISO. When the device is configured as a SPI
slave, the device outputs data to an external SPI master on MISO during SPI
read transactions. When the device is configured as a SPI master (ZL30252
only), the device receives data on MISO from an external SPI EEPROM during
auto-configuration.
Note: On rev A parts, in I2C interface mode this pin toggles between driving low and highimpedance during register accesses. Therefore in I2C mode this pin must not be wired directly to
VDD. To implement a static high value on IF1/MISO, wire it to VDD through a resistor
(approximately 10k recommended).
I2C Data / SPI Master-Out-Slave-In
2
SDA/MOSI
I/O
I2C Data: When the device is configured as an I2C slave, SDA is the
bidirectional data line between the device and an external I2C master. Note
that I2C requires an external pullup resistor on this signal. See the I2C
10
Microsemi Confidential
ZL30252, ZL30253
Pin #
Name
Type
Data Sheet
Description
specification for details.
SPI MOSI: When the device is configured as a SPI slave, an external SPI
master sends commands, addresses and data to the device on MOSI. When
the device is configured as a SPI master (ZL30252 only), the device sends
commands, addresses and data on MOSI to an external SPI EEPROM during
auto-configuration.
Table 1 - Pin Descriptions (continued)
12
13
AVDD18
P
Analog Power Supply. 1.8V 5%.
17
18
22
AVDD33
P
Analog Power Supply. 3.3V 5%.
29
DVDD18
P
Digital Power Supply. 1.8V 5%.
3
DVDD33
P
Digital Power Supply. 3.3V 5%.
25
VDDO1
P
Output OC1 Power Supply. 1.5V to 3.3V ±5%.
19
VDDO2
P
Output OC2 Power Supply. 1.5V to 3.3V ±5%.
16
VDDO3
P
Output OC3 Power Supply. 1.5V to 3.3V ±5%.
9
VDDXO33
P
Analog Power Supply for Crystal Driver Circuitry. 3.3V 5%.
E-pad
VSS
P
Ground. 0 Volts.
5. Functional Description
5.1
Device Identification
The 12-bit read-only ID field and the 4-bit revision field are found in the ID1 and ID2 registers. Contact the factory
to interpret the revision value and determine the latest revision.
5.2
Top-Level Configuration
The device has two fundamental modes of operation: APLL-only and DPLL+APLL.
5.2.1
APLL-Only Mode
In APLL-only mode, the input block and the DPLL are powered down (PLLEN.DPLLEN=0), and the device
operates as a high-resolution fractional-N APLL. This reduces chip power consumption as shown in Table 7.
The bandwidth of the APLL is approximately 600kHz and therefore in APLL-only mode the device does not behave
as a jitter filter. This means that, in applications where output signals must have sub-ps jitter, the APLL input signal
must have sub-ps jitter. In addition, features of the input block and the DPLL including activity monitoring,
frequency monitoring and jitter filtering are not available. APLL-only mode is enabled when the APLL input mux is
set to select an input other than the DPLL output (i.e. APLLCR3.APLLMUX=0xx).
APLL-only mode has two usage cases. First, the APLL can be locked to an external crystal as shown in Figure 6
for frequency synthesis applications. Second, the APLL can be locked to any of the four input clock signals, as
shown in Figure 7 for frequency conversion applications.
11
Microsemi Confidential
ZL30252, ZL30253
Input Block
IC1P, IC1N
IC2P, IC2N
IC3P/GPIO3
Divider,
Monitor,
Selector
DPLL
Jitter Filtering,
Digital Hold
APLL
Data Sheet
HSDIV1
DIV1
~3.7 to 4.2GHz,
Fractional-N
DIV2
HSDIV2
Microprocessor Port
SCL/SCLK
SDA/MOSI
IF0/CSN
IF1/MISO
IC3P/GPIO3
TEST/GPIO2
×2
AC0/GPIO0
(SPI or I2C Serial)
and HW Control and Status Pins
AC1/GPIO1
xtal
driver
RSTN
XA
XB
DIV3
OC1P, OC1N
VDDO1
OC2P, OC2N
VDDO2
OC3P, OC3N
VDDO3
Figure 6 - APLL-Only Mode: Clock Synthesis from a Crystal
Input Block
IC1P, IC1N
IC2P, IC2N
IC3P/GPIO3
Divider,
Monitor,
Selector
DPLL
Jitter Filtering,
Digital Hold
APLL
HSDIV1
DIV1
~3.7 to 4.2GHz,
Fractional-N
DIV2
HSDIV2
DIV3
OC1P, OC1N
VDDO1
OC2P, OC2N
VDDO2
OC3P, OC3N
VDDO3
Microprocessor Port
SCL/SCLK
SDA/MOSI
IF0/CSN
IF1/MISO
IC3P/GPIO3
TEST/GPIO2
×2
AC0/GPIO0
(SPI or I2C Serial)
and HW Control and Status Pins
AC1/GPIO1
xtal
driver
RSTN
XA
XB
Figure 7 - APLL-Only Mode: Frequency Conversion from One of Four Input Clocks
5.2.2
DPLL+APLL Mode
In DPLL+APLL mode, the input block and DPLL are enabled and used. In this mode all input block features are
available including activity monitoring, frequency monitoring and automatic reference switching. In addition, all
DPLL features are available as well, including bandwidths low enough to filter jitter on the input clock signals.
Device power consumption is slightly higher than APLL-only mode.
DPLL+APLL mode is enabled when the APLL input mux is set to select the DPLL output (i.e.
APLLCR3.APLLMUX=11x) and the input block and DPLL are enabled (PLLEN.DPLLEN=1).
DPLL+APLL mode includes the following three operating modes:
•
Jitter Attenuation mode: The DPLL locks to a jittery input clock signal on IC1, IC2 or IC3 and attenuates
(filters) the jitter. The device outputs low-jitter clocks on its OCx outputs.
•
Numerically Controlled Oscillator (NCO) mode: The input block and most of the DPLL are shut down, and
system software controls the DPLL’s output frequency through register writes.
•
Spread-Spectrum mode: The input block and most of the DPLL are shut down, and a spread-spectrum
hardware block modulates the DPLL’s output frequency at a specified modulation rate over a specified
frequency range. This is typically used for as an EMI reduction strategy.
In DPLL+APLL mode the input block and the DPLL must operate from a master clock signal that is approximately
100MHz, 114.285MHz or 125MHz (see MCR2.MCLK for exact frequency ranges). DPLL+APLL mode has two
usage cases. First, the master clock can be a clock signal on the XA pin, optionally doubled by the clock doubler,
as shown in Option 1 in Figure 8. Second, the master clock can come from an external crystal, the internal crystal
12
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
driver circuit, and the clock doubler as shown in Option 2 in Figure 8. This second use case requires a crystal
frequency between 46.5MHz and 60MHz and the clock doubler in order to get a valid master clock frequency.
Note that the clock doubler can be used with an external XO in NCO and spread-spectrum modes, but the clock
doubler generally should not be used with an external XO in jitter attenuation mode. See section 5.4.3 for more
details.
Input Block
IC1P, IC1N
IC2P, IC2N
IC3P/GPIO3
Divider,
Monitor,
Selector
DPLL
, Jitter Filtering,
Digital Hold
APLL
HSDIV1
DIV1
~3.7 to 4.2GHz,
Fractional-N
DIV2
HSDIV2
Microprocessor Port
SCL/SCLK
SDA/MOSI
×2
IF0/CSN
-OR-
IF1/MISO
xtal
driver
×2
IC3P/GPIO3
XA
XB
-OROption 2:
crystal
doubled
(SPI or I2C Serial)
and HW Control and Status Pins
TEST/GPIO2
XB
xtal
driver
AC0/GPIO0
XA
AC1/GPIO1
XO or
TCXO
RSTN
Option 1:
XO
DIV3
OC1P, OC1N
VDDO1
OC2P, OC2N
VDDO2
OC3P, OC3N
VDDO3
Figure 8 - DPLL+APLL Mode: Locked to One of Three Inputs, Master Clock from XO or Crystal
5.2.3
Evaluation Software for Device Configuration
Microsemi provides evaluation software that gives the user a simple, intuitive graphical user interface in which to
generate complete device configurations. Often customers can generate base device configurations with the
evaluation software without learning the device register set in detail. This saves time and money during system
development. When the device is used in APLL-only mode, the use of the evaluation software is optional, but
recommended to minimize engineering effort. When the device is used in DPLL+APLL mode, the use of the
evaluation software is required as explained in sections 5.7.1 and 5.6.2.3.
5.3
Pin-Controlled Automatic Configuration at Reset
The device configuration is determined at reset (i.e. on the rising edge of RSTN) by the signal levels on five device
pins: TEST/GPIO2, AC1/GPIO1, AC0/GPIO0, IF1/MISO and IF0/CSN. For each of these pins, the first name
(TEST, AC1, AC0, IF1, IF0) indicates their function when they are sampled by the rising edge of the RSTN pin. The
second name refers to their function after reset. The values of these pins are latched into the CFGSR register when
RSTN goes high. To ensure the device properly samples the reset values of these pins, the following guidelines
should be followed:
1. Any pullup or pulldown resistors used to set the value of these pins at reset should be 1k.
2. RSTN must be asserted at least as long as specified in section 5.12.
The hardware configuration pins are grouped into three sets:
1. TEST - Manufacturing test mode
2. IF[1:0] – Microprocessor interface mode and I2C address
3. AC[1:0] – Auto-configuration from EEPROM
The TEST pin selects manufacturing test modes when TEST=1 (the AC[1:0] pins specify the test mode). For
ZL30253, TEST=1 and AC[1:0]=00 configures the part so that production SPI EEPROM programmers can program
the internal EEPROM (see section 5.14.2). For more information about auto-configuration from EEPROM see
section 5.14.1.
5.3.1
ZL30252—External EEPROM or No EEPROM
For the ZL30252 the IF[1:0] pins specify the processor interface mode and the I2C slave address. When IF[1:0]=11
(SPI) two options are available:
13
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
If AC[1:0]=00 the device sets up its processor interface as SPI slave through which it can be
configured by software running on the SPI master. In this option the device cannot auto-configure
from an external EEPROM.
If AC[1:0]=01, 10, or 11 the device first sets up its processor interface as a SPI master. It then
auto-configures itself by reading the configuration number specified by AC[1:0] from an external
SPI EEPROM connected to its SPI pins. After auto-configuration is complete, the device
reconfigures its processor interface to be SPI slave.
These options are summarized in the following table:
IF1
0
0
1
1
1
1
1
IF0
0
1
0
1
1
1
1
AC1
0
0
0
0
0
1
1
AC0
0
0
0
0
1
0
1
Processor Interface
I2C, slave address 11011 00
I2C, slave address 11011 01
I2C, slave address 11011 10
SPI Slave
SPI Master to external EEPROM for
auto-configuration then SPI Slave
External EEPROM
No
No
No
No
Yes
Yes
Yes
Auto Configuration
n/a
n/a
n/a
n/a
Configuration 1
Configuration 2
Configuration 3
Notes about the device auto-configuring from external EEPROM:
1. The device’s CSN pin must have a pull-up resistor to VDD to ensure its processor interface is inactive after
auto-configuration is complete. The SCLK, MISO and MOSI pins should also have pull-up resistors to VDD
to keep them from floating.
2. If a processor or similar device will access device registers after the device has auto-configured from
external EEPROM, the SPI SCLK, MOSI and MISO wires can be connected directly to the processor, the
device and the external EEPROM. The processor and device CSN pins can be wired together also. The
EEPROM CSN signal must be controlled by the device’s CSN pin during device auto-configuration and
then held inactive when the processor accesses device registers.
5.3.2
ZL30253—Internal EEPROM
For the ZL30253 the IF[1:0] pins specify the processor interface mode and the I2C slave address.
IF1
0
0
1
1
IF0
0
1
0
1
Processor Interface
I2C, slave address 11011 00
I2C, slave address 11011 01
I2C, slave address 11011 10
SPI Slave
The AC[1:0] pins specify which of four device configurations in the EEPROM to execute after reset.
AC1
0
0
1
1
5.4
AC0
0
1
0
1
Auto Configuration
Configuration 0
Configuration 1
Configuration 2
Configuration 3
Local Oscillator or Crystal
Section 5.2 describes several device configurations that make use of either an external local oscillator (XO or
TCXO) or an external crystal. Section 5.4.1 describes how to connect an external oscillator and the required
characteristics of the oscillator. Section 5.4.2 describes how to connect an external crystal to the on-chip crystal
driver circuit and the required characteristics of the crystal.
14
Microsemi Confidential
ZL30252, ZL30253
5.4.1
Data Sheet
External Oscillator
A signal from an external oscillator can be connected to the XA pin (XB must be left unconnected). Table 9
specifies the range of possible frequencies for the XA input. Several vendors including Vectron, Rakon and TXC
offer low-cost, low-jitter XOs with output frequencies in this range. In DPLL+APLL jitter attenuation mode the
frequency of the external oscillator must be specified in the MCR2.MCLK field. To minimize jitter, the signal must
be properly terminated and must have very short trace length. A poorly terminated single-ended signal can greatly
increase output jitter, and long single-ended trace lengths are more susceptible to noise. When MCR1.XAB=10, XA
is enabled as a single-ended input.
In DPLL+APLL mode, the stability of the DPLL in freerun or digital hold is equivalent to the stability of the external
oscillator. While many applications can make use of a simple XO component, some applications may require the
stability of a TCXO. Contact Microsemi timing products technical support for recommended oscillator components.
While the stability of the external oscillator can be important, its absolute frequency accuracy is less important
because any known frequency inaccuracy of the oscillator can be compensated. When the device is configured for
DPLL+APLL mode, the DPLL's DFREQZ parameter can be used to compensate for oscillator frequency error.
When the device is configured for APLL-only mode, the APLL's fractional feedback divider value (AFBDIV) can be
adjusted by ppb or ppm to compensate for oscillator frequency error.
The jitter on output clock signals depends on the phase noise and frequency of the external oscillator. For the
device to operate with the lowest possible output jitter, the external oscillator should have the following
characteristics:
•
Phase Jitter: less than 0.1ps RMS over the 12kHz to 5MHz integration band
•
Frequency: The higher the better, all else being equal
5.4.2
External Crystal and On-Chip Driver Circuit
The on-chip crystal driver circuit is designed to work with a fundamental mode, AT-cut crystal resonator. See Table
2 for recommended crystal specifications. To enable the crystal driver, set MCR1.XAB=01.
See Figure 9 for the crystal equivalent circuit and the recommended external capacitor connections. To achieve a
crystal load (CL) of 10pF, an external 16pF is placed in parallel with the 4pF internal capacitance of the XA pin, and
an external 16pF is placed in parallel with the 4pF internal capacitance of the XB pin. The crystal then sees a load
of 20pF in series with 20pF, which is 10pF total load. Note that the 16pF capacitance values in Figure 9 include all
capacitance on those nodes. If, for example, PCB trace capacitance between crystal pin and IC pin is 2pF then
14pF capacitors should be used to make 16pF total.
The crystal, traces, and two external capacitors should be placed on the board as close as possible to the XA and
XB pins to reduce crosstalk of active signals into the oscillator. Also no active signals should be routed under the
crystal circuitry.
Note: Crystals have temperature sensitivies that can cause frequency changes in response to ambient temperature
changes. In applications where significant temperature changes are expected near the crystal, it is recommended
that the crystal be covered with a thermal cap, or an external XO or TCXO should be used instead.
15
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
XTAL
4pF
C1
XA
CO
Crystal
(CL = 10pF)
R1
1M
XB
RS
LS
CS
C2
R2
4pF
The optimal values of C1, C2 and R2 depend on PCB capacitance and crystal
frequency and power rating. See application note ZLAN-494 for calculations.
Figure 9 - Crystal Equivalent Circuit / Recommended Crystal Circuit
Table 2 - Crystal Selection Parameters
Parameter
Crystal oscillation frequency1
Shunt capacitance
Load capacitance
Equivalent series resistance
fOSC < 40MHz
(ESR)2
fOSC > 40MHz
Maximum crystal drive level
Note 1:
Note 2:
Symbol
fOSC
CO
CL
RS
RS
Min.
25
Typ.
2
10
Max.
60
5
60
50
100
Units
MHz
pF
pF
W
Higher frequencies give lower output jitter, all else being equal.
These ESR limits are chosen to constrain crystal drive level to less than 100W. If the crystal can tolerate a drive level greater than
100W then proportionally higher ESR is acceptable.
Parameter
Symbol
Crystal Frequency Stability vs. Power Supply
fFVD
Min.
Typ.
0.2
Max.
Units
0.5
ppm per 10%
in VDD
Any known frequency inaccuracy of the crystal can be compensated in the DPLL or in the APLL. When the device
is configured for DPLL+APLL mode, the DPLL's DFREQZ field can be used to compensate for crystal frequency
error. When the device is configured for APLL-only mode, the APLL's fractional feedback divider value (AFBDIV)
can be adjusted by ppb or ppm to compensate for crystal frequency error.
5.4.3
Clock Doubler
Figure 1 shows an optional clock doubler (“x2” block) following the crystal driver block. The doubler, which is
enabled by setting MCR1.DBL=1, can be used to double the frequency of the internal crystal driver circuit or a
clock signal on the XA pin. The following table shows scenarios when the clock doubler can be used.
Device Mode
APLL-Only, Integer Multiply
APLL-Only, Fractional Multiply
DPLL+APLL Jitter Attenuation
DPLL+APLL NCO
DPLL+APLL Spread-Spectrum
With Crystal
Maybe1
Yes
Yes
Yes
Yes
With XO or Clock Signal
Maybe1
Yes
Not Recommended
Yes
Yes
Note 1: For APLL integer multiplication, use of the doubler is application-dependent. On the positive side, use of the
doubler reduces random jitter. On the negative side, the doubler causes a large spur at the XA frequency (but this spur
may be outside the band of interest for the application).
5.4.4
Ring Oscillator (for System Start-Up)
To ensure that registers can be written immediately after system start-up, in its power-on reset state the device
operates its registers and processor interface from an internal ring oscillator.
16
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
When operating the device in DPLL+APLL mode, as soon as the external oscillator connected to the XA pin has
stabilized and is ready to use, the MCR1.MCSEL bit must be set to source the DPLL master clock from XA. If the
ring oscillator causes undesirable spurs it can be disabled (powered down) by setting MCR1.ROSCD=1.
When operating the part in APLL-only mode, a master clock signal on the XA pin is not required, and the ring
oscillator is left enabled to provide a clock for the processor interface logic and registers.
5.5
Input Signal Format Configuration
Input clocks IC1, IC2 and IC3 are enabled by setting the enable bits in the ICEN register. The power consumed by
a differential receiver is shown in Table 7. The electrical specifications for these inputs are listed in Table 10. Each
input clock can be configured to accept nearly any differential signal format by using the proper set of external
components (see Figure 22). To configure these differential inputs to accept single-ended CMOS signals, connect
the single-ended signal to the ICxP pin, and connect the ICxN pin to a capacitor (0.1F or 0.01F) to VSS. Each
ICxP and ICxN pin is internally biased to approximately 1.3V. If an input is not used, both ICxP and ICxN pins can
be left floating. Note that the IC3N pin is not present. A differential signal can be connected to IC3P by AC-coupling
the POS trace to IC3P and terminating the signal on the driver side of the coupling cap. If not needed as an input
clock pin, IC3P can behave as general-purpose I/O pin GPIO3.
5.6
Input Block: Input Divider, Monitor and Selector
The input block performs the following functions:
•
•
•
•
Frequency division to a frequency suitable for DPLL locking
Activity monitoring
Frequency monitoring
DPLL input clock selection (automatic or manual)
Figure 10 is a block diagram of the input block. This block requires a master clock as described in section 5.2.2.
ICxP/N
Optional
Inverter
Input Block
HSDIV
to DPLL input mux
≤250MHz
to DPLL feedback mux
ICCR1.POL ICCR1.HSDIV
to APLL input muxes
Input
Monitors
Input
Selector
to DPLL input mux
(control)
to status registers
Figure 10 - Input Block Diagram
5.6.1
Input Clock Inversion and High-Speed Dividers
The input block tolerates a wide range of duty cycles out to a minimum high time or minimum low time of 3ns or
30% of the clock period, whichever is smaller.
Any frequency in the 1kHz to 250MHz range can be accepted by the input block. Important notes about the input
block:
•
ICxCR1.POL specifies the edge to which the DPLL will lock (by default, the rising edge).
•
ICxCR1.HSDIV must be set correctly to reduce the clock frequency below 250MHz.
•
In DPLL+APLL mode, the frequencies of all enabled ICx input clocks must divide by integers to a
common DPLL phase-frequency detector (PFD) frequency 1kHz. In addition, the common PFD
frequency must be 20 times the DPLL bandwidth.
17
Microsemi Confidential
ZL30252, ZL30253
5.6.2
Data Sheet
Input Clock Monitoring
Each ICx input clock is continuously monitored for activity and frequency accuracy.
The activity monitor counts the number of input clock cycles that occur during a configurable interval. This provides
the fastest detection when the input clock is stopped or far off frequency. Register bit ICxSR.ACVAL indicates the
real-time status of this monitor. The ACVAL bit stays low when the input clock is not toggling or its frequency is
grossly too high; ACVAL flickers (i.e. rapidly changes states) when the input clock is toggling but its frequency is
grossly too low.
Frequency monitoring is handled by a percent frequency monitor (1% to 20% in 1% steps). Register bit
ICxSR.PCVAL indicates the real-time status of the percent monitor.
Any input clock that fails activity monitoring or frequency monitoring is declared invalid. The valid/invalid state of
each input clock is reported in the corresponding real-time status bit in the VALSR registers. When the valid/invalid
state of a clock changes, the corresponding latched status bit is set in the VALSR registers. Input clocks manually
marked invalid in the DPLL’s VALCR1 register cannot be automatically selected as the reference for the DPLL.
The activity monitor and frequency monitor can be enabled and disabled using the ACEN and PCEN bits,
respectively in the MONxCR2 register.
In addition to the monitors in the input block, the DPLL can also invalidate an input. If the input is the DPLL’s
selected reference and the DPLL cannot lock within the time specified by the PHLKTO register, the DPLL
invalidates the input by setting the ICxSR.LKTO bit.
Note 1: For rev A parts only, when ACEN=PCEN=PPEN=0 for an input (which is the power-on default state of the
device), that input is declared valid by the input monitoring logic, even when the input receiver is disabled by setting
ICEN.ICxEN=0. To avoid this, set at least one of the ACEN and PCEN bits to 1.
Note 2: The percent monitor cannot be used with a 1kHz input clock and has a narrower range of settings for input
frequencies below 2kHz. See the evaluation software for the exact range of settings available for a particular
device configuration.
5.6.2.1 External Monitoring
Some clock signals come from external components that can monitor the quality of a clock signal or the quality of a
signal from which the clock signal is derived. One example is a BITS receiver in telecom equipment. This
component receives a DS1, E1 or 2048kHz synchronization signal and recovers a clock from that signal. The BITS
receiver monitors the incoming signal and can declare loss of signal (LOS), loss of frame alignment (LOF) and
other defects in the incoming signal. Another example is a Synchronous Ethernet PHY, which receives an Ethernet
signal and recovers a clock from that signal. This PHY can declare loss of lock, loss of codeword alignment and
other defects.
When a neighboring component can detect that the incoming signal or the clock recovered from the signal is
somehow out of specification, a loss-of-signal indication from that component can be connected to a GPIO pin on
the device to instantly invalidate the input clock. Any GPIO pin can be used as a loss-of-signal indicator for any of
the IC1, IC2 or IC3 input clocks. ICxSR.LOS indicates the real-time LOS status from the GPIO pin.
Example: Configure GPIO1 to be the active-low LOS signal for IC1:
GPIOCR1.GPIO1C=0001
MON1CR2.LOSSS=010
(Configure GPIO1 to be an input with inversion)
(Configure the IC1 monitor’s LOS source to be GPIO1)
5.6.2.2 Monitor Priority and Validation Timer
All enabled input monitors must declare an input valid for a configurable duration (which can be zero) before the
input clock is validated and considered eligible for selection as the DPLL’s selected reference. The monitors have a
priority hierarchy in which an invalid declaration by a higher-priority monitor forces an invalid declaration in all
18
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
lower-priority monitors. When a valid higher-priority monitor declares the input valid, the next lower priority monitor
can then initiate its validation process. The monitor hierarchy is as follows:
•
•
Input LOS from a GPIO pin forces all other monitors (activity and frequency) to declare the input invalid.
When the activity monitor declares invalid, it forces the frequency monitor to declare invalid.
When a monitor is not enabled, it continually declares the input clock valid.
After all monitors declare an input clock valid (ICxSR.VAL=1) the validation timer requires all the monitors to
continue to indicate the clock is valid for a configurable validation time before the input is declared valid for use as
a DPLL input (ICxSR.VALT=1).
5.6.2.3 Input Monitor Configuration
The device’s input monitors are very sophisticated, but the configuration registers for these monitors are, generally
speaking, low-level coefficients rather than user concepts such as percentage frequency error. As a result most
input monitor registers are not documented in this data sheet. Instead, Microsemi provides evaluation software that
gives the user a simple, intuitive graphical user interface in which to generate complete device configurations,
including all aspects of input monitor behavior. Configuration files from the evaluation software can be stored in
device EEPROM to allow the device to self-configure at reset. Alternately, system software can perform the register
writes listed in the configuration files as needed to configure/reconfigure the device.
5.6.3
Input Clock Priority, Selection and Switching for the DPLL
5.6.3.1 Priority Configuration
During normal operation, the selected reference for the DPLL is chosen automatically based on the priority
rankings assigned to the input clocks in the input priority registers (IPR1 and IPR2). The default input clock
priorities are shown in Table 3.
Any unused input clock should be given the priority value 0, which disables the clock and marks it as unavailable
for selection. Priority 1 is highest.
Table 3 - Default Input Clock Priorities
DPLL
INPUT CLOCK
DEFAULT
PRIORITY
IC1
1
IC2
2
IC3
3
5.6.3.2 Automatic Selection
When ICSCR1.EXTSW=0, automatic input clock reference selection is used for the DPLL. The input reference
selection algorithm chooses the highest-priority valid input clock to be the selected reference. The real-time
valid/invalid state of each input clock is maintained in the VALSR registers (see section 5.6.2). The priority of each
input clock is set as described in section 5.6.3.1. To select the DPLL input clock based on these criteria, the
selection algorithm maintains a priority table of valid inputs. The top entry in this priority table and the selected
reference are indicated in the PTAB1 register. The second- and third-priority inputs are indicated in the PTAB2
register.
If two or more input clocks are given the same priority number then those inputs are prioritized among themselves
using a fixed circular list. If one equal-priority clock is the selected reference but becomes invalid then the next
equal-priority clock in the list becomes the selected reference. If an equal-priority clock that is not the selected
reference becomes invalid, it is simply skipped over in the circular list. The selection among equal-priority inputs is
inherently nonrevertive, and revertive switching mode (see next paragraph) has no effect in the case where
multiple equal-priority inputs have the highest priority.
19
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
An important input to the selection algorithm is the REVERT bit in the ICSCR1 register. In revertive mode
(REVERT=1), if an input clock with a higher priority than the selected reference becomes valid, the higher priority
reference immediately becomes the selected reference. In nonrevertive mode (REVERT=0), the higher priority
reference does not immediately become the selected reference but does become the highest priority reference in
the priority table (PTAB1.REF1). (The selection algorithm always switches to the highest-priority valid input when
the selected reference goes invalid, regardless of the state of the REVERT bit.) For many applications,
nonrevertive mode is preferred because it minimizes disturbances on the output clocks due to reference switching.
In nonrevertive mode, planned switchover to a newly-valid higher priority input clock can be done manually under
software control. The validation of the new higher priority clock sets the corresponding latched status bit in the
VALSR registers, which can drive an interrupt request if needed. System software can then respond to this change
of state by briefly enabling revertive mode (toggling REVERT high then back low) to force the switchover to the
higher priority clock.
5.6.3.3 Manual Selection
The bits of the VALCR1 register can be used to perform manual selection of an input clock. When all input clocks
have non-zero priorities in the IPR registers, an input clock can be manually selected by setting the VALCR1 bit for
that input clock to 1 and the VALCR1 bits for the other input clocks to 0.
5.6.3.4 External Reference Switching Mode
In this mode a GPIO pin controls reference switching between two input clocks. This mode is enabled by setting
the ICSCR1.EXTSW=1. In this mode, if the GPIO pin is high, the DPLL is forced to lock to input IC1 (if the priority
of IC1 is nonzero in IPR1) or IC3 (if the priority of IC1 is zero) whether or not the selected input has a valid
reference signal. If the GPIO pin is low the DPLL is forced to lock to input IC2 whether or not IC2 has a valid
reference signal. The GPIO pin is selected by MCR2.EXTSS.
In external reference switching mode the input selector logic behaves as a simple 2:1 mux, and the DPLL is forced
to try to lock to the selected reference whether it is valid or not. This mode controls the PTAB1.SELREF field
directly and, therefore, is not affected by the state of the ICSCR1.REVERT bit. During external reference switching
mode, only PTAB1.SELREF is affected; the PTAB1.REF1 field continues to indicate the highest-priority valid input
chosen by the automatic selection logic. The priorities of IC1, IC2 and IC3 in the IPR registers must be non-zero for
proper behavior in external reference switching mode.
5.7
DPLL Architecture and Configuration
DPLL
from IC1 HSDIV
from IC2 HSDIV
from IC3 HSDIV
status from input monitors
ICSCR1.ICSEL, EXTSW
Input
Divider
Phase/Freq
Detector
DSP
DCO
Clock Out
to APLL
Input
Selector
External
Feedback
Divider
Internal
Feedback
Divider
Figure 11 - DPLL Block Diagram
Digital PLLs have two key benefits: (1) stable, repeatable performance that is insensitive to process variations,
temperature, and voltage; and (2) flexible behavior that is easily configured and reprogrammed. DPLLs use a
digitally controlled oscillator (DCO) to generate the DPLL output clock. The DPLL output clock is then provided to
an APLL for clock multiplication/frequency conversion.
20
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
The DPLL in the device is configurable for many PLL parameters including bandwidth, input frequency, pull-in/holdin range, input-to-output phase offset, and more. No knowledge of loop equations or gain parameters is required to
configure and operate the device. No external components are required for the DPLL except a local oscillator
connected to the XA pin to provide the DPLL’s master clock (see section 5.2.2).
5.7.1
DPLL Configuration
The device’s DPLL is very sophisticated, but the configuration registers for the DPLL are, generally speaking, very
low-level coefficients rather than user concepts such as bandwidth and pull-in range. As a result most DPLL
registers are not documented in this data sheet. Instead, Microsemi provides evaluation software that gives the
user a simple, intuitive graphical user interface in which to generate complete device configurations, including all
aspects of DPLL behavior. Configuration files from the evaluation software can be stored in device EEPROM to
allow the device to self-configure at reset. Alternately, system software can perform the register writes listed in the
configuration files as needed to configure/reconfigure the device. The most frequently used DPLL status register
fields and real-time control register fields are documented in section 6.3.6 and discussed in the DPLL sections
below.
5.7.2
DPLL States
Tracking (Locked and Unlocked). When a valid input clock is available, the DPLL is in the tracking state
(DSRR1.TRK=1) and is either locked to an input clock (DSRR1.LOL=0) or unlocked (DSRR1.LOL=1).
Freerun/Digital-Hold. When all input clocks become invalid, the DPLL enters the freerun/digital-hold state
(DSRR1. TRK=0) in which it operates open-loop. In this mode the DPLL can be in freeun (DSRR1.HO=0) in which
its output frequency has the same fractional frequency offset as the master clock signal. Or the DPLL can be in
digital hold (DSRR1.HO=1) in which the output frequency has the same fractional frequency offset it had previously
when the DPLL was locked to an input clock. The DPLL can automatically transition from the freerun/digital-hold
state to the tracking state when an input clock is declared valid. The DPLLCR1.HOMODE field controls DPLL
freerun/digital-hold behavior.
System software can manually force the DPLL into the freerun/digital-hold state as needed using the
DPLLCR1.MODE field.
5.7.3
DPLL Capabilities
Bandwidth. The DPLL can be configured for any bandwidth from 14Hz to 500Hz..
Pull-In/Hold-In Range. The DPLL tracking range is configurable from ±1ppm to ±1000ppm. The DPLL reports
when it has reached the limit of the range in the DSRR2.FLIM register bit. The DPLL’s hold-in range is the same as
its tracking range. The DPLL’s pull-in range should be considered to be half the size of the tracking range for
reasonable pull-in time. For example, when tracking range is ±1000ppm, pull-in range should be considered to be
±500ppm.
Programmable Lock Criteria. The DPLL has configurable criteria for defining when it declares lock. In addition to
phase, the DPLL can also be configured to declare loss of lock when its fractional frequency offset exceeds the
pull-in/hold-in limit.
Programmable Phase Lock Timeout. When the DPLL fails to lock to the selected input clock within the timeout
duration specified by the PHLKTO register, the input is declared invalid by the input block, which sets the
ICxSR.LKTO bit.
Frequency and Phase Reporting. The DPLL reports in real-time its frequency (i.e. fractional frequency offet in
ppb/ppm vs. its nominal frequency) and its phase vs. the input clock signal. DPLL frequency resolution is better
than 0.005ppb. DPLL frequency offset is reported in the DFREQ registers. DPLL phase is reported in the DPHASE
registers.
21
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
Numerically Controlled Oscillator (NCO) Mode. In this mode most of the DPLL is shut down and system
software controls the DPLL’s output frequency using the 40-bit FREQZ field in the the DFREQZ registers. The
resolution of frequency control is better than 0.01ppb. See section 5.7.7 for more details.
Spread-Spectrum Modulation Mode. For EMI-sensitive applications such as PCI Express, the device can
perform spread spectrum modulation (SSM). In SSM the frequency of the output clock is continually varied over a
narrow frequency range to spread the energy of the signal and thereby reduce EMI. See section 5.7.8 for more
details.
5.7.4
Input Wander and Jitter Tolerance
Wander is tolerated up to the point where wander causes an apparent long-term frequency offset larger than the
frequency threshold set in the input monitor. In such a situation the input clock would be declared invalid. Jitter can
be tolerated up to the point of eye closure. The high-jitter input clock signal should be divided down to a lower
frequency by the DPLL’s input divider for high jitter tolerance.
5.7.5
Jitter and Wander Transfer
The transfer of jitter and wander from the selected reference to the output clocks has a programmable transfer
function that is determined by the DPLL bandwidth. The 3dB corner frequency of the jitter transfer function can be
set to any value from 14Hz to 500Hz.
During locked mode, the transfer of wander from the local oscillator clock (connected to the XA pin) to the output
clocks is not significant as long as the DPLL bandwidth is set high enough to allow the DPLL to quickly compensate
for oscillator frequency changes. During freerun/digital-hold, local oscillator wander has a much more significant
effect. See section 5.4.1.
5.7.6
Output Jitter and Wander
Several factors contribute to jitter and wander on the output clocks, including:
•
•
•
Jitter and wander amplitude on the selected reference (while in the locked state)
The jitter/wander transfer characteristic of the device (while in the locked state)
The jitter and wander on the local oscillator clock signal (especially wander while in the
freerun/digital-hold state)
The DPLL has programmable bandwidth (see Section 5.7.3). With respect to jitter and wander, the DPLL behaves
as a low-pass filter with a programmable pole. The bandwidth of the DPLL is normally set low enough to strongly
attenuate jitter. The wander and jitter attenuation depends on the DPLL bandwidth chosen.
5.7.7
Numerically Controlled Oscillator (NCO) Mode
In this mode of operation most of the DPLL is shut down, and system software controls the DPLL’s output
frequency using the 40-bit FREQZ field in the the DFREQZ registers. The resolution of frequency control is better
than 0.01ppb.
The nominal FREQZ value, hereafter referred to as FREQZ0, is computed by the evaluation software for the
desired device configuration When the FREQZ field is set to the FREQZ0 value, the device’s output clock
frequencies have a fractional frequency offset of zero with respect to the NCO master clock signal applied to the
XA pin.
(Fractional frequency offset (FFO) is defined as (actual_frequency – nominal_frequency) / nominal_frequency. FFO
is a unitless number but is typically expressed in parts per billion (ppb), parts per million (ppm) or percent.)
To control the NCO, system software first reads the FREQZ0 value from the device. FREQZ0 is a 40-bit unsigned
integer.
22
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
To change the NCO frequency to a specific FFO (in ppm), system software calculates newFREQZ (a 40-bit
unsigned integer) as follows:
newFREQZ = round(FREQZ0 * (1 + FFO/1e6))
System software then writes the newFREQZ value directly to the FREQZ field in the DFREQZ registers.
Note that any subsequent frequency changes are calculated using the same equation from the original FREQZ0
value and are not a function of the previous newFREQZ value. The value of newFREQZ should be kept within
±1000ppm of FREQZ0 and within ±500ppm of the previous newFREQZ value to avoid causing the APLL to lose
lock. If spread spectrum modulation is also in use, the total frequency change caused by spread spectrum
modulation and NCO control should be kept within ±5000ppm of FREQZ0 to avoid causing the APLL to lose lock.
5.7.8
Spread-Spectrum Modulation Mode
For EMI-sensitive applications such as PCI Express, the device can perform spread spectrum modulation (SSM).
In SSM the frequency of the output clock is continually varied over a narrow frequency range to spread the energy
of the signal and thereby reduce EMI.
This mode is a special case of NCO mode. Most of the DPLL is shut down, and spread-spectrum control circuitry
modulates the DPLL’s output frequency around the center frequency to perform SSM. The SS circuitry performs
triangle-wave center-spread of up to ±0.5% deviation from the center frequency with modulation rate configurable
from 25kHz to 55kHz.
Down-spread applications can be supported by converting them into center-spread. This is done by setting the
DPLL’s center frequency to be the center of the modulation range rather than the high end of range. For example,
100MHz with -1% downspread can be converted into ±0.5% center spread with center frequency of
100MHz/1.005=99.502488MHz.
In PCI Express applications the device can be used as a “point of load” spread-spectrum generator. In such an
application, the 100MHz PCI Express clock signal without SSM can be generated centrally and distributed to
various points in the system. A device positioned at one of those points can accept the 100MHz signal on its XA pin
and generate multiple 100MHz signals on its outputs. System software can then choose to enable or disable SSM
in the device as needed to suit the needs of the application.
5.8
5.8.1
APLL Configuration
APLL Input Selection and Frequency
5.8.1.1 APLL-Only Mode
In APLL-Only mode (APLLCR3.APLLMUX=0xx) the APLL can lock to any of inputs IC1 through IC3, a clock signal
on XA or the crystal driver circuit (optionally clock-doubled) when a crystal is connected to XA and XB. See section
5.2.1 for details and diagrams.
The input to the APLL can be controlled by a GPIO pin or by the APLLCR3.APLLMUX register field. When
APLLCR3.EXTSW=0, the APLLCR3.APLLMUX register field controls the APLL input mux.
When APLLCR3.EXTSW=1, a GPIO pin controls the APLL input mux. When the GPIO pin is low, the mux selects
the input specified by APLLCR3.APLLMUX. When the GPIO pin is high, the mux selects the input specified by
APLLCR3.ALTMUX. MCR2.EXTSS specifies which GPIO pin controls this behavior.
In APLL-only mode, the frequencies of all enabled input clocks (ICx and XA) must divide to a common APLL
phase-frequency detector (PFD) frequency from 9.72MHz to 156.25MHz. In this mode the input high-speed
dividers (ICxCR1.HSDIV) can be used to divide the ICx frequencies by 1, 2, 4 or 8. The XA pin does not have an
internal divider, and, therefore, if XA is an enabled input clock then the XA frequency sets the APLL common PFD
frequency. The polarity of an ICx input signal can be inverted by setting ICxCR1.POL.
23
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
5.8.1.2 DPLL+APLL Mode
In DPLL+APLL mode (APLLCR3.APLLMUX=11x) the APLL locks to the DPLL output clock signal. Fractional
multiplication in the APLL is used to generate the proper output clock frequency.
5.8.2
APLL Output Frequency
APLL
APLLCR2.HSDIV1[3:0]
Clock from APLL
Input Muxes
Phase/
Freq
Detector
VCO
Loop
Filter
3.715- 4.18
GHz
High-Speed
Divider 1
Clock to
Output
Dividers
(whole ÷ 4-15,
half ÷ 4.5-7.5)
Feedback
Divider
(fractional)
Input Frequency Range:
9.72MHz to 156.25MHz
High-Speed
Divider 2
AFBDIV[74:0], AFBREM,
AFBDEN, AFBBP
Clock to
Output
Dividers
APLLCR2.HSDIV2[3:0]
Figure 12 - APLL Block Diagram
The APLL is enabled when PLLEN.APLLEN=1. The APLL has a fractional-N architecture and therefore can
produce output frequencies that are either integer or non-integer multiples of the input clock frequency. Figure 12
shows a block diagram of the APLL, which is built around an ultra-low-jitter multi-GHz VCO. Register fields
AFBDIV, AFBREM, AFBDEN and AFBBP configure the frequency multiplication ratio of the APLL. The
APLLCR2.HSDIV1 and HSDIV2 fields specify how the VCO frequency is divided down by the high-speed dividers.
Dividing by six is the typical setting to produce 622.08MHz for SDH/SONET or 625MHz for Ethernet applications.
Internally, the exact APLL feedback divider value is expressed in the form AFBDIV + AFBREM / AFBDEN *
2-(33-AFBBP). This feedback divider value must be chosen such that APLL_input_frequency * feedback_divider_value
is in the operating range of the VCO (as specified in Table 13). The AFBDIV term is a fixed-point number with 9
integer bits in APLL-only mode (7 integer bits in DPLL+APLL mode) and a configurable number of fractional bits
(up to 33, as specified by AFBBP). Typically AFBBP is set to 9 to specify that AFBDIV has 33 – 9 = 24 fractional
bits. Using more than 24 fractional bits does not yield a detectable benefit. Using less than 12 fractional bits is not
recommended.
The following equations show how to calculate the feedback divider values for the situation where the APLL should
multiply the APLL input frequency by integer M and also fractionally scale by the ratio of integers N / D. In other
words, VCO_frequency = input_frequency * M * N / D. An example of this is multiplying 77.76MHz from the DPLL
by M=48 and scaling by N / D = 255 / 237 for forward error correction applications.
AFBDIV = trunc(M * N / D * 224)
(1)
lsb_fraction = M * N / D * 224 – AFBDIV
(2)
AFBDEN = D
(3)
AFBREM = round(lsb_fraction * AFBDEN)
(4)
AFBBP = 33 – 24 = 9
(5)
The trunc() function returns only the integer portion of the number. The round() function rounds the number to the
nearest integer. In Equation (1), AFBDIV is set to the full-precision feedback divider value, M * N / D, truncated
after the 24th fractional bit. In Equation (2) the temporary variable 'lsb_fraction' is the fraction that was truncated in
24
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
Equation (1) and therefore is not represented in the AFBDIV value. In Equation (3), AFBDEN is set to the
denominator of the original M * N / D ratio. In Equation (4), AFBREM is calculated as the integer numerator of a
fraction (with denominator AFBDEN) that equals the 'lsb_fraction' temporary variable. Finally, in Equation (5)
AFBBP is set to 33 – 24 = 9 to correspond with AFBDIV having 24 fractional bits.
When a fractional scaling scenario involves multiplying an integer M times multiple scaling ratios N 1 / D1 through
Nn / Dn, the equations above can still be used if the numerators are multiplied together to get N = N1 x N2 x … x Nn
and the denominators are multiplied together to get D = D1 x D2 x … x Dn.
The easiest way to calculate the exact values to write to the APLL registers is to use the ZL3025x evaluation
software, available on the Microsemi website. This software can be used even when no evaluation board is
attached to the computer.
Note: After the APLL's feedback divider settings are configured in register fields AFBDIV, AFBREM, AFBDEN and
AFBBP, the APLL enable bit PLLEN.APLLEN should be changed from 0 to 1 to cause the APLL to reacquire lock
with the new settings. The real-time lock/unlock status of the APLL is indicated by APLLSR.ALK and ALK2.
5.8.3
APLL Phase Adjustment
The phase of the APLL’s output clock can be incremented or decremented by 1/8th of a VCO cycle. This phase
step size is 30ps at maximum VCO frequency of 4180MHz and 33.7ps at minimum VCO frequency of 3715MHz.
The APLLCR4.PDSS field specifies the phase decrement control signal, which can be the APLLCR4.DECPH bit or
any of the four GPIOs. The APLLCR4.PISS field specifies the phase increment control signal, which can be the
APLLCR4.INCPH bit or any of the four GPIOs. Phase is adjusted on every rising edge and every falling edge of the
control signal. This phase adjustment affects the output of both high-speed dividers.
5.9
Output Clock Configuration
The device has three output clock signal pairs. Each output has individual divider, enable and signal format
controls. In CMOS mode each signal pair can become two CMOS outputs, allowing the device to have up to six
output clock signals. Also in CMOS mode, the OCxN pin can have an additional divider allowing the OCxN
frequency to be an integer divisor of the OCxP frequency (example: OC3P 125MHz and OC3N 25MHz). The
outputs can be aligned relative to each other and relative to an input signal, and the phases of output signals can
be adjusted dynamically with high resolution and infinite range.
5.9.1
Output Enable, Signal Format, Voltage and Interfacing
To use an output, the output driver must be enabled by setting OCxCR2.OCSF0, and the per-output dividers must
be enabled by setting the appropriate bit in the OCEN register. The per-output dividers include the medium-speed
divider, the low-speed divider and the associated phase adjustment/alignment circuitry and start/stop logic.
Using the OCxCR2.OCSF register field, each output pair can be disabled or configured as a CML output, an HSTL
output, or one or two CMOS outputs. When an output is disabled it is high impedance, and the output driver is in a
low-power state. In CMOS mode, the OCxN pin can be disabled, in phase or inverted vs. the OCxP pin. In CML
mode the normal 800mV VOD differential voltage is available as well as a half-swing 400mV VOD. All of these
options are specified by OCxCR2.OCSF. The clock to the output driver can inverted by setting OCxCR2.POL=1.
The CMOS/HSTL output driver can be set to any of four drive strengths using OCxCR2.DRIVE.
Each output has its own power supply pin to allow CMOS or HSTL signal swing from 1.5V to 3.3V for glueless
interfacing to neighboring components. If OCSF is set to HSTL mode then a 1.5V power supply voltage should be
used to get a standards-compliant HSTL output. Note that differential (CML) outputs must have a power supply of
3.3V.
The differential outputs can be easily interfaced to LVDS, LVPECL, CML, HCSL, HSTL and other differential inputs
on neighboring ICs using a few external passive components. See Figure 24 for examples.
25
Microsemi Confidential
ZL30252, ZL30253
5.9.2
Data Sheet
Output Frequency Configuration
The frequency of each output is determined by the configuration of the APLL, the high-speed dividers and the peroutput dividers. Each output can be connected to either high-speed divider 1 (HSDIV1) or 2 (HSDIV2) using the
OCxCR3.DIVSEL field.
Each output has two output dividers, a 7-bit medium-speed divider (OCxCR1.MSDIV) and a 25-bit low-speed
output divider (LSDIV field in the OCxDIV registers). These dividers are in series, medium-speed divider first then
output divider. These dividers produce signals with 50% duty cycle for all divider values including odd numbers.
The low-speed divider can only be used if the medium-speed divider is used (i.e. OCxCR1.MSDIV>0). The
maximum input frequency to the medium-speed divider is 850MHz. The maximum input frequency to the low-speed
divider is 425MHz.
Since each output has its own independent dividers, the device can output families of related frequencies that have
an APLL HSDIV output frequency as a common multiple. For example, for Ethernet clocks, a 625MHz HSDIV
output clock can be divided by four for one output to get 156.25MHz, divided by five for another output to get
125MHz, and divided by 25 for another output to get 25MHz. Similarly, for SDH/SONET clocks, a 622.08MHz
HSDIV output clock can be divided by 4 to get 155.52MHz, by 8 to get 77.76MHz, by 16 to get 38.88MHz or by 32
to get 19.44MHz.
Two Different Frequencies in 2xCMOS Mode
When an output is in 2xCMOS mode it can be configured to have the frequency of the OCxN clock be an integer
divisor of the frequency of the OCxP clock. Examples of where this can be useful:
•
125MHz on OCxP and 25MHz on OCxN for Ethernet applications
•
77.76MHz on OCxP and 19.44MHz on OCxN for SONET/SDH applications
•
25MHz on OCxP and 1Hz (i.e. 1PPS) on OCxN for telecom applications with Synchronous Ethernet and
IEEE1588 timing
An output can be configured to operate like this by setting the LSDIV value in the OCxDIV registers to OCxP_freq /
OCxN_freq - 1 and setting OCxCR3.LSSEL=0 and OCxCR3.NEGLSD=1. Here are some notest about this dualfrequency configuration option:
•
In this mode only the medium speed divider is used to create the OCxP frequency. The lowspeed divider is then used to divide the OCxP frequency down to the OCxN frequency. This
means that the lowest OCxP frequency is the high-speed divider output frequency divided by 128.
•
An additional constraint is that the medium-speed divider must be configured to divide by 6 or
more (i.e. must have OCxCR1.MSDIV5).
5.9.3
Output Duty Cycle Adjustment
For output frequencies less than or equal to 141.666MHz, the duty cycle of the output clock can be modified using
the OCxDC.OCDC register field. This behavior is only available when MSDIV>0 and LSDIV > 1. When OCDC = 0
the output clock is 50%. Otherwise the clock signal is a pulse with a width of OCDC number of MSDIV output clock
periods. The range of OCDC can create pulse widths of 1 to 255 MSDIV output clock periods. When
OCxCR2.POL=0, the pulse is high and the signal is low the remainder of the cycle. When POL=1, the pulse is low
and the signal is high the remainder of the cycle.
Note that duty cycle adjustment is done in the low-speed divider. Therefore when OCxCR3.LSSEL=0 the duty
cycle of the output is not affected. Also, when a CMOS output is configured with OCxCR3.LSSEL=0 and
OCxCR3.NEGLSD=1, the OCxN pin has duty cycle adjustment but the OCxP pin does not. This allows a higherspeed 50% duty cycle clock signal to be output on the OCxP pin and a lower-speed frame/phase/time pulse (e.g.
2kHz, 8kHz or 1PPS) to be output on the OCxN pin at the same time.
26
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
An output configured for CMOS or HSTL signal format should not be configured to have a duty cycle with high time
shorter than 2ns or low time shorter than 2ns.
5.9.4
Output Phase Adjustment and Phase Alignment
The device has flexible, high-resolution tools for managing the phases of the output clocks relative to one another.
The key register fields for this are found in the PACR1 and PACR2 global configuration registers and the per-output
OCxPH register.
Phase alignment and phase adjustment are done in the medium-speed dividers. Resoution is 0.5 periods (also
known as unit intervals or UI) of the high-speed divider (HSDIV) output clock. For example, for an HSDIV output
frequency of 800MHz, resolution is 625ps.
5.9.4.1 Phase Adjustment
A phase adjustment is a phase change for an output relative to that output’s most recent phase. To cause the
device to perform phase adjustment of an output clock, set PACR1.MODE=1, set OCxCR1.PHEN=1 to enable the
output for phase adjustment, and write the phase adjustment amount to the output’s OCxPH register. Then an
arm/trigger methodology is used to cause the phase adjustment to happen.
The arm step tells the device that it is enabled to perform the phase adjustment when it sees the trigger stimulus.
The source of the arm signal is specified by PACR2.ARMSRC. Options include the 0-to-1 transition of the
PACR1.ARM bit, APLL transition from unlocked to locked, DPLL transition from unlocked to locked, or a transition
on one of the GPIO pins.
The source of the trigger signal is specified by PACR2.TRGSRC. Options include 0-to-1 transition of the
PACR1.TRIG bit, APLL transition from unlocked to locked, DPLL transition from unlocked to locked, a rising edge
of the DPLL input clock, or a transition on one of the GPIO pins. The trigger signal can be inverted by setting
PACR1.TINV. With TINV=1, the same GPIO signal can arm on one edge and trigger on the opposite edge.
Any combination of outputs can be phase adjusted by the same trigger, and each output can be adjusted by a
different amount. Only outputs with OCxCR1.PHEN=1 and OCxPH.PHADJ0 have their phases adjusted.
There are a few constraints on the range of possible phase adjustments. These have to do with the output’s
medium-speed divider value.
1) Phase adjustment is not available unless OCxCR1.MSDIV>0.
2) The largest negative phase adjustment magnitude in HSDIV periods is:
If OCxCR1.MSDIV is odd: (OCxCR1.MSDIV – 1) / 2
If OCxCR1.MSDIV is even: (OCxCR1.MSDIV – 2) / 2
3) The largest positive phase adjustment in HSDIV periods is:
If OCxCR1.MSDIV is odd: (127 – OCxCR1.MSDIV) / 2
If OCxCR1.MSDIV is even: (128 – OCxCR1.MSDIV) / 2
The implications of constraints 2) and 3) are shown in this table:
27
Microsemi Confidential
ZL30252, ZL30253
OCxCR1.MSDIV
1 or 2
3 or 4
5 or 6
…
123 or 124
125 or 126
127
Largest Negative
Phase Adjust,
HSDIV periods
0
1
2
…
61
62
63
Largest Positive
Phase Adjust,
HSDIV periods
63
62
61
…
2
1
0
Data Sheet
Notes
no negative adjustment
no positive adjustment
During a phase adjustment the MSDIV output period is changed for one period. The MSDIV output signal during
that period will have longer high time (unless inverted) during a positive phase adjustment and shorter high time
(unless inverted) during a negative phase adjustment. With negative phase adjustments care must be taken to not
shorten the high time of the output clock signal to be too short for the components that receive the clock. There are
several possible ways to avoid this issue including: (1) using small negative adjustments such as -0.5UI repeatedly
instead of one larger negative adjustment, (2) using positive adjustments to “wrap around” to the desired negative
adjustment, or (3) holding the components that receive the clock in reset during the phase adjustment.
An armed phase adjustment can be canceled before the trigger occurs by setting the PACR1.RST bit.
The PASR register has real-time status bits indicating whether a phase adjustment is armed and waiting for a
trigger (ARMED bit) or in progress (BUSY bit). It also has a latched status bit (ADJL bit) to indicate the adjustment
has completed.
Example: +1.0 HSDIV period phase adjustment for output OC1 using ARM and TRIG register bits:
OC1CR1.PHEN=1
(Enable phase adjust on OC1)
OC1PH.PHADJ=00000010 (Specify +1.0 HSDIV period phase adjustment)
PACR1.MODE=1
(Phase adjustment mode)
PACR2.ARMSRC=0001
(arm signal is PACR1.ARM bit)
PACR2.TRGSRC=0000
(trigger signal is PACR1.TRIG bit)
PACR1.RST=1
(reset phase adjust/align state machine after changing ARMSRC)
PACR1.ARM=1
(arm for phase adjust)
PACR1.TRIG=1
(do the phase adjust: add +1.0 UI to output phase)
repeat the next two writes as needed:
PACR1.ARM=1 .TRIG=0
(arm again; clearing the TRIG bit is required when MSDIV period < master
clock period because TRIG is not self-clearing in this situation)
PACR1.TRIG=1
(add +1.0 UI to output phase again)
5.9.4.2 Phase Alignment, Output-to-Output
A phase alignment is a special case of phase adjustment where the MSDIV and LSDIV dividers for all participating
outputs are reset just before the phase adjustment occurs. For output-to-output alignment the trigger can be the
PACR1.TRIG bit or the APLL or DPLL lock signals.
To avoid glitches (i.e. “runt pulses”) on the output clock it is possible to manually stop the output(s), before
triggering the phase alignment, and then restart the output(s) after the alignment (See section 5.9.5).
When aligning outputs, it is important to note that, by default, the phase of outputs configured as HSTL format or
“two CMOS, OCxP inverted vs. OCxN” format is opposite that of CML outputs. For example, consider the case
where OC1 is 100MHz CML format and OC2 is 100MHz HSTL format. When OC1 and OC2 are aligned then
OC2N is high when OC1P is high. The polarity bit OCxCR2.POL can be used to change this as needed.
There are several rules when alignment is enabled for multiple outputs:
•
All participating outputs must come from the same high-speed divider
28
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
•
All outputs that use both medium-speed and low-speed divider must have the same MSDIV value, the
same LSDIV value and PHADJ=0. Subsequent phase adjustment(s) can be used to move the output(s) to
other phase(s).
•
All outputs that only use medium-speed divider can have PHADJ values smaller than the period of the
highest output frequency among them.
•
When some outputs use only medium-speed divider and other outputs use both medium-speed and lowspeed divider, all MSDIV values must be the same, and those output using low-speed divider must have
PHADJ=0.
Contact Microsemi Timing Applications Support for help with alignment scenarios that don’t meet the rules listed
above.
Example: OC1-to-OC2 alignment (+3.5 HSDIV UI offset) after the APLL locks:
OC1CR1.PHEN=1
(Enable phase adjust on OC1)
OC2CR1.PHEN=1
(Enable phase adjust on OC2)
OC1PH.PHADJ=00000000 (0.0UI)
OC2PH.PHADJ=00000111 (+3.5UI)
PACR1.MODE=0
(Phase alignment mode)
PACR2.ARMSRC=0001
(arm signal is PACR1.ARM bit)
PACR2.TRGSRC=0001
(trigger signal is APLL transition from unlocked to locked)
PACR1.RST=1
(reset phase adjust/align state machine after changing ARMSRC, TRGSRC)
PACR1.ARM=1
(arm for phase alignment)
(Aligns/realigns outputs when the APLL locks or relocks)
5.9.4.3 Phase Alignment, Input-to-Output
The phase alignment tool described in section 5.9.4.2 can use a GPIO pin as the alignment trigger. However there
is some uncertainty associated with sampling the GPIO signal. Therefore the phase alignment tool by itself is is not
sufficient to achieve input-to-output phase alignment.
5.9.4.3.1 Automatic with External Feedback
To align output signals to an input signal, the best approach is to use external feedback in which an OCx output is
externally connected to an ICx input. To enable external feedback, set ICSCR1.FBSEL to specify the ICx input to
use for external feedback. In this configuration the DPLL, in a closed-loop manner, automatically phase-aligns OCx
outputs to the DPLL’s selected reference. Any small error in this alignment due to wire delays can be compensated
in the DPLL’s DPHOFF registers. Also, phase adjustment as described in section 5.9.4.1 can be used to change
the phases of output clocks vs. the input clock phase as needed.
5.9.4.3.2 Manual with Phase Alignment, Phase Measurment and Phase Adjustment
If for some reason external feedback cannot be used, open-loop input-to-output phase alignment can be
accomplished under software control. The procedure is to first do a phase alignment as described in section 5.9.4.2
but with a GPIO input as the trigger. Then the phase measurement tool described in section 5.9.6 can be used to
determine the phase difference between an output signal and the input signal. Then phase adjustment as
described in section 5.9.4.1 can be used to change the phase of one or more output signals to align with input
signal phase.
It is important to note that, by default, outputs that only use the medium-speed divider have their rising edge
aligned with the rising edge of the trigger signal. Meanwhile,outputs that use both the medium-speed and lowspeed dividers have their rising edge aligned with the falling edge of the trigger signal. Per-output polarity bits
(OCxCR2.POL) can be used to invert the polarity of output signals as needed so that all are rising-edge aligned or
falling-edge aligned or any combination as needed.
29
Microsemi Confidential
ZL30252, ZL30253
5.9.5
Data Sheet
Output Clock Start and Stop
Output clocks can be stopped high or low. One use for this behavior is to ensure “glitchless” output clock operation
while the output is reconfigured or phase aligned with some other signal.
Each output has an OCxSTOP register with fields to control this behavior. The OCxSTOP.MODE field specifies
whether the output clock signal stops high, stops low, or or does not stop. The OCxSTOP.SRC field specifies the
source of the stop signal. Options include the OCxSTOP.STOP bit, assertion of one of the GPIO pins, and the
arming of a phase adjustment (which is indicated by PASR.ARMED).
When the stop mode is Stop High (OCxSTOP.MODE=01) and the stop signal is asserted, the output clock is
stopped after the next rising edge of the output clock. When the stop mode is Stop Low (OCxSTOP.MODE=10)
and the stop signal is asserted, the output clock is stopped after the next falling edge of the output clock. Internally
the clock signal continues to toggle while the output is stopped. When the stop signal is deasserted, the output
clock resumes on the opposite edge that it stopped on. Low-speed output clocks can take long intervals before
being stopped after the stop signal goes active. For example, a 1 Hz output could take up to 1 second to stop.
OCxCR1.MSDIV must be > 0 for this function to operate since MSDIV=0 bypasses the start-stop circuits. Note that
when OCxCR3.NEGLSD=1 the start-stop logic is bypassed for the OCxN pin, and OCxN may not start/stop without
glitches.
When OCxCR2.POL=1 the output stops on the opposite polarity that is specified by the OCxSTOP.MODE field.
When OCxCR2.STOPDIS=1 the output driver is disabled (high impedance) while the output clock is stopped.
Each output has a status register (OCxSR) with several stop/start status bits. The STOPD bit is a real-time status
bit indicating stopped or not stopped. The STOPL bit is a latched status bit that is set when the output clock has
stopped. The STARTL bit is a latched status bit that is set when the output clock has started.
5.9.6
A-to-B Phase Offset Measurement
The phase or time offset between two signals (A and B) can be measured in units of a timebase clock. This
capability can be used to for several purposes, including:
•
Keeping output clocks and low-speed output phase/time signals—such as frame sync, multiframe sync, or
1 pulse per second (1PPS) signals—aligned with input phase/time signals. The A-to-B measurement
circuitry can detect phase changes in the input signal. Then the DPLL’s phase adjustment capability and/or
the output phase adjustment circuitry described in section 5.9.4 can be used to move phase(s) of output(s)
to follow the input phase change.
•
Keeping output clock signals and/or low-speed output phase/time signals aligned with one another. The Ato-B measurement circuitry can detect relative phase changes, and the phase adjustment circuitry
described in section 5.9.4 can be used to move phase(s) of output(s) as needed.
The A and B signals can be any ICx input, any OCx output, or any GPIO, as specified by MABCR2.ASRC and
MABCR3.BSRC. The timebase signal can be the external oscillator signal (or the output of the crystal driver circuit,
optionally doubled by the clock doubler) or the output clock of any of the three medium-speed dividers (MSDIV1,
MSDIV2, MSDIV3). The timebase signal is specified by MABCR1.TBSRC.
A new measurement is started by writing MABCR1.START=1. Any previously started measurement must be
completed before a new measurement is started. If a measurement has not finished it can be aborted by writing
MABCR1.RST=1 before starting a new measurement. The measurement is complete when MABSR1.RDYL is set.
Example: consider an SDH/SONET application where OC1 is a 19.44MHz output clock and OC2 is an 8kHz frame
sync signal. The goal is to measure the phase offset of OC1 vs. OC2. If they are found to have a phase offset then
the phase adjustment circuitry in section 5.9.4 can be used to slowly change the phase of OC1 to match the phase
of OC2.
30
Microsemi Confidential
ZL30252, ZL30253
MABCR1.TBSRC=001
MABCR2.ASRC=10001
MABCR3.BSRC=10000
MABCR1.START=1
Wait for MABSR1.RDYL=1
Read MABSR1.OVFL
MABSR1.RDYL=1, MABSR1.OVFL=1
Read MEAS bits from MABSR1
and MABSR2
Data Sheet
(MSDIV1 output clock is 311.04MHz = 3.2 ns period)
(OC2 8kHz sync signal)
(OC1 19.44MHz clock)
(Start measurement)
(Measurement ready)
(to see if the measurement is valid)
(clear latched status bits)
If, for example, MEAS = 111 1111 1001 (-8) then the rising edge of OC1 (the ‘B’ signal) precedes the rising edge of
OC2 (the ‘A’ signal) by 8 MSDIV1 output clock periods (25.7ns).
An A-to-B measurement is performed by sampling the A and B signals with the selected timebase clock and
detecting the rising or falling edges to measure. The number of timebase clocks between the A and B edges is
counted. If the counter doesn’t overflow then the phase difference is reported in the MEAS field in MABSR1 and
MABSR2. If the counter does overflow then MABSR1.OVFL is set and the value of MEAS is invalid.
While the measurement is in progress the MABSR1.BUSY bit is set to 1. When the measurement is complete
MABSR1.BUSY is set to 0 and MABSR1.RDYL is set to 1. Since the A and B signals are sampled by the timebase
signal, this measurement tool is only useful when the timebase signal is much higher frequency than the A and B
signals (at least 8-10x). Also, when possible, the timebase signal frequency should be less than or equal to 1000
times faster than the the frequencies of the A and B frequencies to avoid measurement counter overflow.
Constraints on A-to-B measurement:
•
fB = fA x N
where fA is the frequency of signal A, fB is the frequency of signal B and
N is a positive integer
When measuring from an ICx input or a GPIO (signal A) to an ICx or a GPIO (signal B) and when measuring from
an OCx output to an OCx output, the measured value is MEAS * timebase_period. This measurement has a
variability of 0 to +1 timebase clock period.
When measuring from an ICx input or a GPIO (signal A) to an OCx output (signal B), the measurement in time
units is MEAS * timebase_period + 6 * HSCLK_period, where HSCLK_period is the period of the output of the highspeed divider from which OCx signal is derived. This measurement has a variability of 0 to +1 timebase clock
period plus 0 to +1 HSCLK periods.
When measuring from an OCx output (signal A) to an ICx input or a GPIO (signal B), the the measurement in time
units is MEAS * timebase_period – 6 * HSCLK_period, where HSCLK_period is the period of the output of the highspeed divider from which OCx signal is derived. This measurement has a variability of 0 to +1 timebase clock
period plus 0 to +1 HSCLK periods.
Guidance for Use
When the A and B signals are aligned to within one timebase clock cycle, the measurement hardware does not
report 0. Instead it reports a measurement value that is equivalent to +1 cycle of signal B.
If the timebase clock is 1023 times faster than signal B (so that the MEAS field cannot overflow, unless signal B
is grossly too slow or not toggling at all) then system software should check the measured phase value. If the
measured value is equal to the period of signal B then the A and B signals are aligned.
If the timebase clock is 1024 to 2047 times faster than signal B (and therefore the measurement counter can
overflow) then the measurement hardware reports overflow when the A and B signals are aligned to within one
timebase clock cycle. This report of overflow can be distinguished from other overflow cases by setting
MABCR3.BINV=1 and then remeasuring from signal A to the opposite edge of signal B. If the new measured value
is equal to half the period of signal B then the A and B signals are aligned.
31
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
If the timebase clock is > 2047 times faster than signal B then the measurement hardware reports overflow when
the A and B signals are aligned to within one timebase clock cycle. This report of overflow is not distinguishable
from other overflow cases. One way system software could work around this to determine that A and B are aligned
is to use phase adjustment to move one of the signals by 2 or more timebase clocks then remeasure. If the new
measured value matches the phase adjustment then the signals were aligned before the phase adjustment.
Software can then adjust the phase of the signal back to its original position. Not all applications can tolerate such
phase adjustments; for those applications it is recommended that the timebase clock be 2047 times faster than
signal B.
32
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
5.10 Microprocessor Interface
The device can communicate over a SPI interface or an I2C interface.
In SPI mode the ZL30252 can be configured at reset to be a SPI slave to a processor master or a SPI master to an
external EEPROM slave. The ZL30253 can only be configured as a SPI slave to a processor master. Both devices
are always slaves on the I2C bus.
Section 5.3 describes reset pin settings required to configure the device for these interfaces.
5.10.1 SPI Slave
The device can present a SPI slave port on the CSN, SCLK, MOSI, and MISO pins. SPI is a widely used
master/slave bus protocol that allows a master and one or more slaves to communicate over a serial bus. SPI
masters are typically microprocessors, ASICs or FPGAs. Data transfers are always initiated by the master, which
also generates the SCLK signal. The device receives serial data on the MOSI (Master Out Slave In) pin and
transmits serial data on the MISO (Master In Slave Out) pin. MISO is high impedance except when the device is
transmitting data to the bus master.
Bit Order. The register address and all data bytes are transmitted most significant bit first on both MOSI and
MISO.
Clock Polarity and Phase. The device latches data on MOSI on the rising edge of SCLK and updates data on
MISO on the falling edge of SCLK. SCLK does not have to toggle between accesses, i.e., when CSN is high.
Device Selection. Each SPI device has its own chip-select line. To select the device, the bus master drives its
CSN pin low.
Command and Address. After driving CSN low, the bus master transmits an 8-bit command followed by a 16-bit
register address. The available commands are shown below.
Table 4 – SPI Commands
Command
Hex
Write Enable
0x06
Write
0x02
Read
0x03
Read Status
0x05
Bit Order, Left to Right
0000 0110
0000 0010
0000 0011
0000 0101
Read Transactions. The device registers are accessible when EESEL=0. On a ZL30253 the internal EEPROM
memory is accessible when EESEL=1. On a ZL30252 EESEL must be set to 0. After driving CSN low, the bus
master transmits the read command followed by the 16-bit address. The device then responds with the requested
data byte on MISO, increments its address counter, and prefetches the next data byte. If the bus master continues
to demand data, the device continues to provide the data on MISO, increment its address counter, and prefetch the
following byte. The read transaction is completed when the bus master drives CSN high. See Figure 13.
Register Write Transactions. The device registers are accessible when EESEL=0. After driving CSN low, the bus
master transmits the write command followed by the 16-bit register address followed by the first data byte to be
written. The device receives the first data byte on MOSI, writes it to the specified register, increments its internal
address register, and prepares to receive the next data byte. If the master continues to transmit, the device
continues to write the data received and increment its address counter. The write transaction is completed when
the bus master drives CSN high. See Figure 15.
EEPROM Writes (ZL30253 Only). The internal EEPROM memory is accessible when EESEL=1. After driving
CSN low, the bus master transmits the write enable command and then drives CSN high to set the internal write
enable latch. The bus master then drives CSN low again and transmits the write command followed by the 16-bit
address followed by the first data byte to be written. The device first copies the page to be written from EEPROM to
33
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
its page buffer. The device then receives the first data byte on MOSI, writes it to its page buffer, increments its
internal address register, and prepares to receive the next data byte. If the master continues to transmit, the device
continues to write the data received to its page buffer and continues to increment its address counter. The address
counter rolls over at the 32-byte page boundary (i.e. when the five least-significant address bits are 11111). When
the bus master drives CSN high, the device transfers the data in the page buffer to the appropriate page in the
EEPROM memory. See Figure 14 and Figure 15.
EEPROM Read Status (ZL30253 Only). After the bus master drives CSN high to end an EEPROM write
command, the EEPROM memory is not accessible for up to 5ms while the data is transferred from the page buffer.
To determine when this transfer is complete, the bus master can use the Read Status command. After driving CSN
low, the bus master transmits the Read Status command. The device then responds with the status byte on MISO.
In this byte, the least significant bit is set to 1 if the transfer is still in progress and 0 if the transfer has completed.
Early Termination of Bus Transactions. The bus master can terminate SPI bus transactions at any time by
pulling CSN high. In response to early terminations, the device resets its SPI interface logic and waits for the start
of the next transaction. If a register write transaction is terminated prior to the SCLK edge that latches the least
significant bit of a data byte, the data byte is not written. On ZL30253, if an EEPROM write transaction is
terminated prior to the SCLK edge that latches the least significant bit of a data byte, none of the bytes in that write
transaction are written.
Design Option: Wiring MOSI and MISO Together. Because communication between the bus master and the
device is half-duplex, the MOSI and MISO pins can be wired together externally to reduce wire count. To support
this option, the bus master must not drive the MOSI/MISO line when the device is transmitting.
AC Timing. See Table 19 and Figure 26 for AC timing specifications for the SPI interface.
CS
0
1
2
3
4
5
6
7
8
9 10
22 23 24 25 26 27 28 29 30 31
SCLK
Command
MOSI
MISO
0
0
0
0
0
16- bit Address
0
1
1 15 14 13
1
0
Data Byte 1
High Impedance
7
6
5
4
3
2
Data Byte n
1
0
7
6
5
4
3
Figure 13 - SPI Read Transaction Functional Timing
CS
0
1
2
0
0
0
3
4
5
6
7
1
1
0
SCLK
Command
MOSI
0
0
Figure 14 - SPI Write Enable Transaction Functional Timing (ZL30253 Only)
34
Microsemi Confidential
2
1
0
ZL30252, ZL30253
Data Sheet
CS
0
1
2
0
0
0
3
4
5
6
7
8
9 10
0
1
0 15 14 13
22 23 24 25 26 27 28 29 30 31
SCLK
Command
MOSI
0
0
16- bit Address
1
Data Byte 1
0
7
6
5
4
3
2
Data Byte n
1
0
7
6
5
4
3
2
1
0
Figure 15 - SPI Write Transaction Functional Timing
5.10.2 SPI Master (ZL30252 Only)
After reset the ZL30252 can present a SPI master port on the CSN, SCLK, MOSI, and MISO pins for autoconfiguration using data read from an external SPI EEPROM. During auto-configuration the device is always the
SPI master and generates the CSN and SCLK signals. The device transmits serial data on the the MOSI (Master
Out Slave In) pin and receives serial data on the MISO (Master In Slave Out) pin.
Bit Order. The register address and all data bytes are transmitted most significant bit first on both MOSI and
MISO.
Clock Polarity and Phase. The device latches data on MISO on the rising edge of SCLK and updates data on
MOSI on the falling edge of SCLK.
Device Selection. Each SPI device has its own chip-select line. To select the external EEPROM, the device drives
the CSN signal low.
Command and Address. After driving CSN low, the device transmits an 8-bit read command followed by a 16-bit
register address. The read command is shown below.
Command
Read
Hex
0x03
Bit Order, Left to Right
0000 0011
Read Transactions. After driving CSN low, the device transmits the read command followed by the 16-bit register
address. The external EEPROM then responds with the requested data byte on MISO, increments its address
counter, and prefetches the next data byte. If the device continues to demand data, the EEPROM continues to
provide the data on MISO, increment its address counter, and prefetch the following byte. The read transaction is
completed when the device drives CSN high. See Figure 13.
Writing the External EEPROM. Due to the small package size and low pin count of the device, there is no way to
use the ZL30252 to write the external EEPROM. The auto-configuration data used by the ZL30252 must be preprogrammed into the EEPROM by some other method, such as:
1. The EEPROM manufacturer can write the data to the EEPROM during production testing.
This is a service they routinely provide.
2. A contract manufacturer or distributor can write the data to the EEPROM using a production
EEPROM programmer before the EEPROM is mounted to the board.
5.10.3 I2C Slave
The device can present a fast-mode (400kbit/s) I2C slave port on the SCL and SDA pins. I2C is a widely used
master/slave bus protocol that allows one or more masters and one or more slaves to communicate over a twowire serial bus. I2C masters are typically microprocessors, ASICs or FPGAs. Data transfers are always initiated by
the master, which also generates the SCL signal. The device is compliant with version 2.1 of the I2C specification.
35
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
The I2C interface on the device is a protocol translator from external I 2C transactions to internal SPI transactions.
This explains the slightly increased protocol complexity described in the paragraphs that follow.
Read Transactions. The device registers are accessible when EESEL=0. On a ZL30253 the internal EEPROM
memory is accessible when EESEL=1. On ZL30252 EESEL must be set to 0. The bus master first does an I2C
write to the device. In this transaction three bytes are written: the SPI Read command (see Table 4), the upper byte
of the register address, and the lower byte of the register address. The bus master then does an I2C read. During
each acknowledge (A) bit the device fetches data from the read address and then increments the read address.
The device then transmits the data to the bus master during the next 8 SCL cycles. The bus master terminates the
read with a not-acknowledge (NA) followed by a STOP condition (P). See Figure 16. Note: If the I2C write is
separated in time from the I2C read by other I2C transactions then the device only outputs the data value from the
first address and repeats that same data value after each acknowledge (A) generated by the bus master.
Register Write Transactions. The device registers are accessible when EESEL=0. The bus master does an I2C
write to the device. The first three bytes of this transaction are the SPI Write command (see Table 4), the upper
byte of the register address, and the lower byte of the register address. Subsequent bytes are data bytes to be
written. After each data byte is received, the device writes the byte to the write address and then increments the
write address. The bus master terminates the write with a STOP condition (P). See Figure 17.
EEPROM Writes (ZL30253 Only). The EEPROM memory is accessible when EESEL=1. The bus master first
does an I2C write to transmit the SPI Write Enable command (see Table 4) to the device. The bus master then
does an I2C write to transmit data to the device as described in the Register Write Transactions paragraph above.
See Figure 18.
EEPROM Read Status (ZL30253 Only). The bus master first does an I2C write to transmit the SPI Read Status
command (see Table 4) to the device. The bus master then does an I2C read to get the status byte. In this byte, the
least significant bit is set to 1 if the transfer is still in progress and 0 if the transfer has completed. See Figure 19.
I2C Features Not Supported by the Device. The I2C specification has several optional features that are not
supported by the device. These are: 3.4Mbit/s high-speed mode (Hs-mode), 10-bit device addressing, general call
address, software reset, and device ID. The device does not hold SCL low to force the master to wait.
I2C Slave Address. The device’s 7-bit slave address can be pin-configured for any of three values. These values
are show in the table in section 5.3.
Bit Order. The I2C specification requires device address, register address and all data bytes to be transmitted most
significant bit first on the SDA signal.
Note: as required by the I2C specification, when power is removed from the device, the SDA and SCL pins are left
floating so they don’t obstruct the bus lines.
S
slave device
R/W A
address
read
command
A
reg. address
reg. address
A
A P
upper byte
lower byte
data byte1
A
data byteN NA P
7 bits
0 (write)
S
slave device
R/W A
address
S = START condition
P = STOP condition
A = acknowledge (SDA low)
NA = not acknowledge (SDA high)
7 bits
1 (read)
Figure 16 – I2C Read Transaction Functional Timing
36
Microsemi Confidential
ZL30252, ZL30253
S
slave device
R/W A
address
write
command
A
reg. address
reg. address
A
A
upper byte
lower byte
7 bits
Data Sheet
data byte1
A
data byteN
A P
S = START condition
P = STOP condition
A = acknowledge (SDA low)
NA = not acknowledge (SDA high)
0 (write)
Figure 17 – I2C Register Write Transaction Functional Timing
S
S = START condition
P = STOP condition
A = acknowledge (SDA low)
NA = not acknowledge (SDA high)
slave device
write enable
R/W A
A P
address
command
7 bits
0 (write)
S
slave device
R/W A
address
write
command
A
reg. address
reg. address
A
A
upper byte
lower byte
data byte1
A
data byteN
A P
7 bits
0 (write)
Figure 18 – I2C EEPROM Write Transaction Functional Timing (ZL30253 Only)
S
S = START condition
P = STOP condition
A = acknowledge (SDA low)
NA = not acknowledge (SDA high)
slave device
read status
R/W A
A P
address
command
7 bits
0 (write)
S
slave device
R/W A
address
status byte
NA P
7 bits
1 (read)
Figure 19 – I2C EEPROM Read Status Transaction Functional Timing (ZL30253 Only)
Note: In Figure 16 through Figure 19, a STOP condition (P) immediately followed by a START condition (S) can be
replaced by a repeated START condition (Sr) as described in the I 2C specification.
37
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
5.11 Interrupt Logic
Any of the GPIO pins can be configured as an interrupt-request output by setting the appropriate GPIOxC field in
the GPIOCR registers to one of the status output options (01xx) and configuring the appropriate GPIOxSS register
to follow the INTSR.INT bit. If system software is written to poll rather than receive interrupt requests, then software
can read the INTSR.INT bit first to determine if any interrupt requests are active in the device.
Many of the latched status bits in the device can be the source of an interrupt request if their corresponding
interrupt enable bits are set. The device’s interrupt logic is shown in Figure 20. See the register map (Table 5) and
the status register descriptions in section 6.3.2 for descriptions of the register bits shown in the figure.
MABSR1.RDYL
GLOBISR.MAB
MABSR1.RDYIE
INTSR.GLOB
PASR.ADJL
GLOBISR.PA
PASR.ADJIE
OC1SR.STOPL
OC1SR.STOPIE
OC1SR.STARTL
OCISR.OC1
OC1SR.STARTIE
OC1SR.LSCLKL
OC1SR.LSCLKIE
OC2SR.STOPL
OC2SR.STOPIE
OC2SR.STARTL
INTSR.OC
OCISR.OC2
OC2SR.STARTIE
OC2SR.LSCLKL
OC2SR.LSCLKIE
OC3SR.STOPL
OC3SR.STOPIE
OC3SR.STARTL
GPIOn
INTSR.INT
OCISR.OC3
OC3SR.STARTIE
INTSR.INTIE
OC3SR.LSCLKL
GPIOnSS
GPIOCRx.GPIOnC
OC3SR.LSCLKIE
VALSR1.IC1L
ICISR.IC1
VALSR1.IC1IE
VALSR1.IC2L
ICISR.IC2
INTSR.IC
VALSR1.IC2IE
VALSR2.IC3L
ICISR.IC3
VALSR2.IC3IE
APLLSR.ALKL
APLLISR.APLL
INTSR.APLL
APLLSR.ALKIE
DPLL interrupt sources
gated by interrupt enables
DPLLISR.DPLL
INTSR.DPLL
Figure 20 – Interrupt Structure
38
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
5.12 Reset Logic
The device has two reset controls: the RSTN pin and the RST bit in MCR1. The RSTN pin asynchronously resets
the entire device. When the RSTN pin is low all internal registers are reset to their default values. The RSTN pin
must have one rising edge after power-up. At initial power-up reset should be asserted for at least 1µs. During
operation, the RSTN assertion time can be as short as 1µs with one important exception:
Consider each of these four pins: AC0/GPIO0, AC1/GPIO1, TEST/GPIO2 and IF1/MISO. If (1) the
pin could be an output driving high when RSTN is asserted, and (2) an external pulldown resistor is
used to set the at-reset value of the pin, then RSTN should be asserted for 100 milliseconds.
The MCR1.RST bit resets the entire device (except for the microprocessor interface and the RST bit itself), but
when the RST bit is active, the register fields with pin-programmed defaults do not latch their values from, or based
on, the corresponding input pins. Instead these fields are reset to the default values that were latched when the
RSTN pin was last active.
Microsemi recommends holding RSTN low while the internal ring oscillator starts up and stabilizes. An incorrect
reset condition could result if RSTN is released before the oscillator has started up completely. After the external
oscillator or internal crystal driver circuit has been enabled and stabilized, the master clock can be switched from
the ring oscillator to the external oscillator using the MCR1.MCSEL bit.
Important: System software must wait at least
GLOBISR.BCDONE=1 before configuring the device.
100µs
after
RSTN
is
deasserted
and
wait
for
5.13 Power-Supply Considerations
Due to the multi-power-supply nature of the device, some I/Os have parasitic diodes between a 250MHz
tH, tL
Input resistance, single-ended to VDD18, ICxP or ICxN
Input resistance, single-ended to VSS, ICxP or ICxN
Note 1:
Note 2:
Data Sheet
Typ.
Typ.
Notes
Max.
Units
VDD33
1.4
V
V
V
0.001
1250
MHz
Differential
0.001
300
MHz
Single-ended
9.72
1250
MHz
Differential
9.72
300
MHz
Single-ended
0
0.1
1.3
smaller of
3ns or 0.3 x 1
/ fIN
0.4
Notes
Note 1
Note 2
ns
Note 5
ns
Note 6
RINVDD18
50
k
RINVSS
80
k
The device can tolerate voltages as specified in VTOL w.r.t. VSS on its ICxP and ICxN pins without being damaged.
For differential input signals, proper operation of the input circuitry is only guaranteed when the other specifications in this table,
including |VID|, are met.
For inputs IC1P/N and IC2P/N VID=VICxP – VICxN. For input IC3P, VID=VIC3P – VCMI. The max VID spec only applies when a
differential signal is applied on ICxP/N; it does not apply when a single-ended signal is applied on ICxP.
Note 3:
Differential signals. The differential inputs can easily be interfaced to neighboring ICs driving LVDS, LVPECL, CML, HCSL,
HSTL or other differential signal formats using a few external passive components. In general, Microsemi recommends terminating
the signal with the termination/load recommended in the neighboring component’s data sheet and then AC-coupling the signal into
the ICxP/ICxN pins. See Figure 22 for details. To connect a differential signal to IC3, AC-couple one side of the signal to IC3P and
AC-couple the other side to VSS. For DC-coupling, treat the input as 1.8V CML.
Note 4:
Single-ended signals can be connected to ICxP pins. Signals with amplitude greater than 2.5V must be DC-coupled. For signals
with amplitudes less than 2.5V Microsemi recommends AC-coupling but DC-coupling can also be used. When a single-ended
signal is connected to ICxP, ICxN should be connected to a capacitor (0.1F or 0.01F) to VSS.
Note 5:
If MCR1.MCSEL1=1 then IC1 is the DPLL’s master clock source and therefore the duty cycle spec in Table 9 applies to IC1 rather
than the tH, tL spec in this table.
The input high-speed divider must be used to divide the frequency by 2 or more.
Note 6:
VDD33
VICxP
1/fIN
tH, tL
|VID|
VICxN
VTOL
VCMI
VSS
Figure 21 - Electrical Characteristics: Clock Inputs
91
Microsemi Confidential
ZL30252, ZL30253
Data Sheet
Example termination networks:
VDD_driver
LVDS
Microsemi
Signal
Driver
LVPECL
CML
VDD_driver
VDD_driver
HCSL
50
50
Driverspecified
termination
network
+
DC
bias
Receiver
R1
R1
R2
R2
50
50
100
50
50
VDD_driver=3.3V: R1=127, R2=82
VDD_driver=2.5V: R1=250, R2=62.5
VDD_driver
Microsemi
Signal
Driver
50
50
Driverspecified
DC
network
Consult the signal driver’s data sheet for any required
DC network for this arrangement where the termination
resistor is on the receiver side of the AC coupling caps.
+
100
DC
bias
Place the 100 termination resistor as close as possible
to the device pins.
Receiver
-
LVPECL drivers often need resistors (typically