• Line interface can handle both long and short haul
trunks
• 32–bit or 128–bit jitter attenuator
• Generates DSX–1 and CSU line build outs
• Frames to D4, ESF, and SLC–96
R
formats
• Dual onboard two–frame elastic store slip buffers that
connect to backplanes up to 8.192 MHz
• 8–bit parallel control port that can be used on either
multiplexed or non–multiplexed buses
• Extracts and inserts Robbed–Bit signaling
• Detects and generates yellow and blue alarms
• Programmable output clocks for Fractional T1
• Fully independent transmit and receive functionality
• Onboard FDL support circuitry
• Generates and detects CSU loop codes
• Contains ANSI one’s density monitor and enforcer
• Large path and line error counters including BPV , CV ,
CRC6, and framing bit errors
• Pin compatible with DS2153Q E1 Single–Chip Trans-
ceiver
• 5V supply; low power CMOS
• Industrial grade version (–40°C to +85°C) available
(DS2151QN)
DESCRIPTION
The DS2151Q T1 Single–Chip Transceiver (SCT) contains all of the necessary functions for connection to T1
lines whether they be DS–1 long haul or DSX–1 short
haul. The clock recovery circuitry automatically adjusts
PIN ASSIGNMENT
Functional Blocks
FRAMER
ELASTIC STORES
LINE INTERFACE
LONG & SHORT HAUL
PARALLEL CONTROL
PORT
DALLAS
DS2151Q
T1 SCT
ALE
WR
RLINK
RLCLK
DVSS
RCLK
RCHCLK
RSER
RSYNC
RLOS/LOTC
SYSCLK
to T1 lines from 0 feet to over 6000 feet in length. The
device can generate both DSX–1 line build outs as well
as CSU build outs of –7.5 dB, –15 dB, and –22.5 dB.
The onboard jitter attenuator (selectable to either 32 bits
Copyright 1995 by Dallas Semiconductor Corporation.
All Rights Reserved. For important information regarding
patents and other intellectual property rights, please refer to
Dallas Semiconductor data books.
022697 1/46
DS2151Q
or 128 bits) can be placed in either the transmit or
receive data paths. The framer locates the frame and
multiframe boundaries and monitors the data stream for
alarms. It is also used for extracting and inserting
Robbed–Bit signaling data and FDL data. The device
contains a set of 64 eight bit internal registers which the
user can access and control the operation of the unit.
Quick access via the parallel control port allows a single
micro to handle many T1 lines. The device fully meets
all of the latest T1 specifications including ANSI
T1.403–199X, A T&T TR 62411 (12–90), and ITU G.703,
G.704, G.706, G.823, and I.431.
TABLE OF CONTENTS
1.Introduction
2.Parallel Control Port
3.Control Registers
4.Status and Information Registers
5.Error Count Registers
6.FDL/Fs Extraction/Insertion
7.Signaling Operation
8.Transmit Transparency and Idle Registers
9.Clock Blocking Registers
10.Elastic Stores Operation
11.Receive Mark Registers
12.Line Interface Functions
13.Timing Diagrams and Transmit Flow Diagram
14.DC and AC Characteristics
1.0 INTRODUCTION
The analog AMI waveform off of the T1 line is transformer coupled into the RRING and RTIP pins of the
DS2151Q. The device recovers clock and data from the
analog signal and passes it through the jitter attenuation
mux to the receive side framer where the digital serial
stream is analyzed to locate the framing pattern. If
needed, the receive side elastic store can be enabled in
order to absorb the phase and frequency differences
between the recovered T1 data stream and an asynchronous backplane clock which is provided at the
SYSCLK input.
The transmit side of the DS2151Q is totally independent
from the receive side in both the clock requirements and
characteristics. Data can be either provided directly to
the transmit formatter or via an elastic store. The transmit formatter will provide the necessary data overhead
for T1 transmission. Once the data stream has been
prepared for transmission, it is sent via the jitter attenuation mux to the waveshaping and line driver functions.
The DS2151Q will drive the T1 line from the TTIP and
TRING pins via a coupling transformer.
022697 2/46
DS2151Q BLOCK DIAGRAM Figure 1–1
RLINK
RLCLK
RCHBLK
RCLK
RCHCLK
FDL
EXTRACTION
SIGNALING EXTRACTION
ONE’S DENSITY MONITOR
CRC/FRAME ERROR COUNT
FRAMER
RECEIVE SIDE
LOOP CODE DETECTOR
RLOS
RSER
SYSCLK
TIMING
CONTROL
CHANNEL MARKING
ALARM DETECTION
SYNCHRONIZER
BPV COUNTER
B8ZS DECODER
STORE
ELASTIC
RSYNC
PAYLOAD LOOPBACK
STORE
ELASTIC
IDLE CODE INSERTION
SIGNALING INSERTION
CLEAR CHANNEL
LOOP CODE GEN.
ONE’S DENSITY ENCODER
F–BIT INSERTION
CRC GEN.
FDL INSERTION
YELLOW ALARM GEN.
TRANSMIT SIDE FORMATTER
B8ZS ENCODE
AIS GEN.
TSER
DETECT
LOSS OF TCLK
MUX
TCLK
TCHBLK
TIMING
TSYNC
TCHCLK
CONTROL
TLINK
FDL
INSERT
DS2151Q
TLCLK
LOGIC
ACLKIXTAL1XTAL2
XTAL/VCO/PLL
24.7 MHz
FRAMER LOOPBACK
REMOTE LOOKPACK
JITTER ATTENUA TION MUX
(CAN BE PLACED IN EITHER THE TRANSMIT
RRING
DATA
CLOCK/
RECOVERY
PEAK
DETECT
FILTER
RTIP
OR RECEIVE PATHS)
LOCAL LOOPBACK
TRING
WAVE
SHAPING
CSU
FILTERS
LINE
DRIVERS
TTIP
(ROUTED TO ALL BLOCKS)
PARALLEL CONTROL PORT
BTSCSWR(R/W)RD(DS)ALE(AS)AD0–AD7INT1/INT2
022697 3/46
DS2151Q
PIN DESCRIPTION Table 1–1
PINSYMBOLTYPEDESCRIPTION
1
2
3
4
5RD(DS)IRead Input (Data Strobe).
6CSIChip Select. Must be low to read or write the port.
7ALE(AS)IAddress Latch Enable (Address Strobe). A positive going edge serves to
8WR(R/W)IWrite Input (Read/Write).
9RLINKOReceive Link Data. Updated with either FDL data (ESF) or Fs bits (D4) or
10RLCLKOReceive Link Clock. 4 KHz or 2 KHz (ZBTSI) demand clock for the RLINK
11DVSS–Digital Signal Ground. 0.0 volts. Should be tied to local ground plane.
12RCLKOReceive Clock. Recovered 1.544 MHz clock.
13RCHCLKOReceive Channel Clock. 192 KHz clock which pulses high during the LSB
14RSEROReceive Serial Data. Received NRZ serial data, updated on rising edges
15RSYNCI/OReceive Sync. An extracted pulse, one RCLK wide, is output at this pin which
16RLOS/LOTCOReceive Loss of Sync/Loss of Transmit Clock. A dual function output.
17SYSCLKISystem Clock. 1.544 MHz or 2.048 MHz clock. Only used when the elastic
18RCHBLKOReceive Channel Block. A user programmable output that can be forced
19ACLKIIAlternate Clock Input. Upon a receive carrier loss, the clock applied at this
AD4
AD5
AD6
AD7
I/OAddress/Data Bus. An 8–bit multiplexed address/data bus.
demultiplex the bus.
Z bits (ZBTSI) one RCLK before the start of a frame. See Section 13 for timing details.
output. See Section 13 for timing details.
of each channel. Useful for parallel to serial conversion of channel data,
locating Robbed–Bit signaling bits, and for blocking clocks in DDS applications. See Section 13 for timing details.
of RCLK or SYSCLK.
identifies either frame (RCR2.4=0) or multiframe boundaries (RCR2.4=1). If
set to output frame boundaries, then via RCR2.5, RSYNC can also be set to
output double–wide pulses on signaling frames. If the elastic store is enabled
via the CCR1.2, then this pin can be enabled to be an input via RCR2.3 at
which a frame boundary pulse is applied. See Section 13 for timing details.
If CCR3.5=0, will toggle high when the synchronizer is searching for the T1
frame and multiframe; if CCR3.5=1, will toggle high if the TCLK pin has not
toggled for 5us.
store functions are enabled via either CCR1.7 or CCR1.2. Should be tied low
in applications that do not use the elastic store. If tied high for more than
100us, will force all output pins (including the parallel port) to 3–state.
high or low during any of the 24 T1 channels. Useful for blocking clocks to
a serial UART or LAPD controller in applications where not all T1 channels
are used such as Fractional T1, 384K bps service, 768K bps, or ISDN–PRI.
Also useful for locating individual channels in drop–and–insert applications.
See Section 13 for timing details.
pin (normally 1.544 MHz) will be routed to the RCLK pin. If no clock is routed
to this pin, then it should be tied to DVSS.
022697 4/46
DS2151Q
PINDESCRIPTIONTYPESYMBOL
20BTSIBus Type Select. Strap high to select Motorola bus timing; strap low to
select Intel bus timing. This pin controls the function of the RD
ALE(AS), and WR
(R/W) pins. If BTS=1, then these pins assume the function
(DS),
listed in parenthesis ().
21
22
RTIP
RRING
–Receive Tip and Ring. Analog inputs for clock recovery circuitry; connects
to a 1:1 transformer (see Section 12 for details).
23RVDD–Receive Analog Positive Supply . 5.0 volts. Should be tied to DVDD and
TVDD pins.
24RVSS–Receive Signal Ground. 0.0 volts. Should be tied to local ground plane
25
26
XTAL1
XTAL2
–Crystal Connections. A pullable 6.176 MHz crystal must be applied to
these pins. See Section 12 for crystal specifications.
27INT1OReceive Alarm Interrupt 1. Flags host controller during alarm conditions
defined in Status Register 1. Active low, open drain output.
28INT2OReceive Alarm Interrupt 2. Flags host controller during conditions defined
in Status Register 2. Active low, open drain output.
29TTIP–Transmit Tip. Analog line driver output; connects to a step–up transformer
(see Section 12 for details).
30TVSS–Transmit Signal Ground. 0.0 volts. Should be tied to local ground plane.
31TVDD–Transmit Analog Positive Supply. 5.0 volts. Should be tied to DVDD and
RVDD pins.
32TRING–Transmit Ring. Analog line driver outputs; connects to a step–up trans-
former (see Section 12 for details).
33TCHBLKOTransmit Channel Block. A user programmable output that can be forced
high or low during any of the 24 T1 channels. Useful for blocking clocks to
a serial UART or LAPD controller in applications where not all T1 channels
are used such as Fractional T1, 384K bps service, 768K bps, or ISDN–PRI.
Also useful for locating individual channels in drop–and–insert applications.
See Section 13 for timing details.
34TLCLKOT ransmit Link Clock. 4 KHz or 2 KHz (ZBTSI) demand clock for the TLINK
input. See Section 13 for timing details.
35TLINKITransmit Link Data. If enabled via TCR1.2, this pin will be sampled during
the F–bit time on the falling edge of TCLK for data insertion into either the FDL
stream (ESF) or the Fs bit position (D4) or the Z–bit position (ZBTSI). See
Section 13 for timing details.
36TSYNCI/OTransmit Sync. A pulse at this pin will establish either frame or multiframe
boundaries for the DS2151Q. Via TCR2.2, the DS2151Q can be pro-
grammed to output either a frame or multiframe pulse at this pin. If this pin
is set to output pulses at frame boundaries, it can also be set via TCR2.4 to
output double–wide pulses at signaling frames. See Section 13 for timing
details.
37DVDD–Digital Positive Supply. 5.0 volts. Should be tied to RVDD and TVDD pins.
38TCLKITransmit Clock. 1.544 MHz primary clock.
39TSERITransmit Serial Data. T ransmit NRZ serial data, sampled on the falling edge
of TCLK.
022697 5/46
DS2151Q
PINDESCRIPTIONTYPESYMBOL
40TCHCLKOT ransmit Channel Clock. 192 KHz clock which pulses high during the LSB
of each channel. Useful for parallel to serial conversion of channel data,
locating Robbed–Bit signaling bits, and for blocking clocks in DDS applications. See Section 13 for timing details.
41
42
43
44
AD0
AD1
AD2
AD3
I/OAddress/Data Bus. A 8–bit multiplexed address/data bus.
DS2151Q REGISTER MAP
ADDRESS R/WREGISTER NAMEADDRESS R/WREGISTER NAME
20R/W Status Register 1.30R/W Common Control Register 3.
21R/W Status Register 2.31R/W Receive Information Register 2.
22R/W Receive Information Register 1.32R/W Transmit Channel Blocking Reg-
23RLine code Violation Count Regis-
33R/W Transmit Channel Blocking Reg-
ter 1.
24RLine code Violation Count Regis-
34R/W Transmit Channel Blocking Reg-
ter 2.
25RPath Code Violation Count Reg-
35R/W Transmit Control Register 1.
ister 1. (1)
26RPath Code Violation Count Reg-
36R/W Transmit Control Register 2.
ister 2.
27RMultiframe Out of Sync Count
37R/W Common Control Register 1.
Register 2.
28RReceive FDL Register38R/W Common Control Register 2.
29R/W Receive FDL Match Register 1.39R/W Transmit Transparency Register
2AR/W Receive FDL Match Register 2.3AR/W Transmit Transparency Register
2BR/W Receive Control Register 1.3BR/W Transmit Transparency Register
2CR/W Receive Control Register 2.3CR/W T ransmit Idle Register 1.
2DR/W Receive Mark Register 1.3DR/W Transmit Idle Register 2.
2ER/W Receive Mark Register 2.3ER/W Transmit Idle Register 3.
2FR/W Receive Mark Register 3.3FR/W Transmit Idle Definition Register.
1. Address 25 also contains Multiframe Out of Sync Count Register 1.
2. The T est Register is used only by the factory; this register must be cleared (set to all zeros) on power–up initialization to insure proper operation.
2.0 PARALLEL PORT
The DS2151Q is controlled via a multiplexed bidirectional address/data bus by an external microcontroller
or microprocessor. The DS2151Q can operate with
either Intel or Motorola bus timing configurations. If the
BTS pin is tied low, Intel timing will be selected; if tied
high, Motorola timing will be selected. All Motorola bus
signals are listed in parenthesis (). See the timing diagrams in the A.C. Electrical Characteristics for more
details. The multiplexed bus on the DS2151Q saves
pins because the address information and data information share the same signal paths. The addresses are
presented to the pins in the first portion of the bus cycle
and data will be transferred on the pins during second
portion of the bus cycle. Addresses must be valid prior
to the falling edge of ALE(AS), at which time the
DS2151Q latches the address from the AD0 to AD7
pins. Valid write data must be present and held stable
during the later portion of the DS or WR
cycle, the DS2151Q outputs a byte of data during the
latter portion of the DS or RD pulses. The read cycle is
pulses. In a read
terminated and the bus returns to a high impedance
state as RD
transitions high in Intel timing or as DS transitions low in Motorola timing. The DS2151Q can also
be easily connected to non–multiplexed buses. Please
see the separate Application Note for a detailed discussion of this topic.
3.0 CONTROL REGISTERS
The operation of the DS2151Q is configured via a set of
eight registers. Typically, the control registers are only
accessed when the system is first powered up. Once
the DS2151Q has been initialized, the control registers
will only need to be accessed when there is a change in
the system configuration. There are two Receive Control Registers (RCR1 and RCR2), two Transmit Control
Registers (TCR1 and TCR2), a Line Interface Control
Register (LICR), and three Common Control Registers
(CCR1, CCR2, and CCR3). Seven of the eight registers
are described below. The LICR is described in
Section 12.
022697 7/46
DS2151Q
RCR1: RECEIVE CONTROL REGISTER 1 (Address=2B Hex)
(MSB)(LSB)
LCVCRFARCOOF1OOF2SYNCCSYNCTSYNCERESYNC
SYMBOLPOSITIONNAME AND DESCRIPTION
LCVCRFRCR1.7Line Code Violation Count Register Function Select.
ARCRCR1.6Auto Resync Criteria.
OOF1RCR1.5Out Of Frame Select 1.
OOF2RCR1.4Out Of Frame Select 2.
SYNCCRCR1.3Sync Criteria.
SYNCTRCR1.2Sync Time.
SYNCERCR1.1Sync Enable.
RESYNCRCR1.0Resync. When toggled from low to high, a resynchronization of the receive
0=do not count excessive zeros
1=count excessive zeros
0=Resync on OOF or RCL event
1=Resync on OOF only
0=2/4 frame bits in error
1=2/5 frame bits in error
0=follow RCR1.5
1=2/6 frame bits in error
In D4 Framing Mode.
0=search for Ft pattern, then search for Fs pattern
1=cross couple Ft and Fs pattern
In ESF Framing Mode
0=search for FPS pattern only
1=search for FPS and verify with CRC6
0=qualify 10 bits
1=qualify 24 bits
0=auto resync enabled
1=auto resync disabled
side framer is initiated. Must be cleared and set again for a subsequent
resync.
0=do not pulse double–wide in signaling frames
1=do pulse double–wide in signaling frames (note: this bit must be set to
zero when RCR2.4=1 or when RCR2.3=1)
RSMRCR2.4RSYNC Mode Select.
0=frame mode (see the timing in Section 13)
1=multiframe mode (see the timing in Section 13)
RSIORCR2.3RSYNC I/O Select.
0=RSYNC is an output
1=RSYNC is an input (only valid if elastic store enabled) (note: this bit must
be set to zero when CCR1.2=0)
RD4YMRCR2.2Receive Side D4 Yellow Alarm Select.
0=zeros in bit 2 of all channels
1=a one in the S–bit position of frame 12
FSBERCR2.1PCVCR Fs Bit Error Report Enable.
0=do not report bit errors in Fs bit position; only Ft bit position
1=report bit errors in Fs bit position as well as Ft bit position
MOSCRFRCR2.0Multiframe Out of Sync Count Register Function Select.
0=count errors in the framing bit position
1=count the number of multiframes out of sync
TCR1: TRANSMIT CONTROL REGISTER 1 (Address=35 Hex)
(MSB)(LSB)
LOTCMCTFPTTCPTRBSEGB7STLINKTBLTYEL
SYMBOLPOSITIONNAME AND DESCRIPTION
LOTCMCTCR1.7Loss Of Transmit Clock Mux Control. Determines whether the transmit
side formatter should switch to the ever present RCLK if the TCLK input
should fail to transition (see Figure 1–1 for more details).
0=do not switch to RCLK if TCLK stops
1=switch to RCLK if TCLK stops
TFPTTCR1.6Transmit Framing Pass Through. (see note below)
0=Ft or FPS bits sourced internally
1=Ft or FPS bits sampled at TSER during F–bit time
TCPTTCR1.5Transmit CRC Pass Through. (see note below)
0=source CRC6 bits internally
1=CRC6 bits sampled at TSER during F–bit time
RBSETCR1.4Robbed–Bit Signaling Enable. (see note below)
0=no signaling is inserted in any channel
1=signaling is inserted in all channels (the TTR registers can be used to
block insertion on a channel by channel basis)
GB7STCR1.3Global Bit 7 Stuffing. (see note below)
0=allow the TTR registers to determine which channels containing all zeros
are to be Bit 7 stuffed
1=force Bit 7 stuffing in all zero byte channels regardless of how the TTR
registers are programmed
022697 9/46
DS2151Q
TLINKTCR1.2TLINK Select. (see note below)
0=source FDL or Fs bits from TFDL register
1=source FDL or Fs bits from the TLINK pin
TBLTCR1.1Transmit Blue Alarm. (see note below)
0=transmit data normally
1=transmit an unframed all one’s code at TPOS and TNEG
TYELTCR1.0Transmit Yellow Alarm. (see note below)
0=do not transmit yellow alarm
1=transmit yellow alarm
Note: for a detailed description of how the bits in TCR1 affect the transmit side formatter of the DS2151Q, please see
Figure 13–9.
TCR2: TRANSMIT CONTROL REGISTER 2 (Address=36 Hex)
(MSB)(LSB)
TEST1TEST0TZBTSITSDWTSMTSIOTD4YMB7ZS
SYMBOLPOSITIONNAME AND DESCRIPTION
TEST1TCR2.7Test Mode Bit 1 for Output Pins. See Table 3–1.
TEST0TCR2.6Test Mode Bit 0 for Output Pins. See Table 3–1.
TZBTSITCR2.5Transmit Side ZBTSI Enable.
TSDWTCR2.4TSYNC Double–Wide. (note: this bit must be set to zero when TCR2.3=1
TSMTCR2.3TSYNC Mode Select.
TSIOTCR2.2TSYNC I/O Select.
TD4YMTCR2.1Transmit Side D4 Yellow Alarm Select.
B7ZSTCR2.0Bit 7 Zero Suppression Enable.
0=ZBTSI disabled
1=ZBTSI enabled
or when TCR2.2=0)
0=do not pulse double–wide in signaling frames
1=do pulse double–wide in signaling frames
0=frame mode (see the timing in Section 13)
1=multiframe mode (see the timing in Section 13)
0=TSYNC is an input
1=TSYNC is an output
0=zeros in bit 2 of all channels
1=a one in the S–bit position of frame 12
0=no stuffing occurs
1=Bit 7 force to a one in channels with all zeros
OUTPUT PIN TEST MODES Table 3–1
TEST1TEST0EFFECT ON OUTPUT PINS
00operate normally
01force all output pins 3–state (including all I/O pins and parallel port pins)
10force all output pins low (including all I/O pins except parallel port pins)
11force all output pins high (including all I/O pins except parallel port pins)
022697 10/46
CCR1: COMMON CONTROL REGISTER 1 (Address=37 Hex)
(MSB)(LSB)
TESELLBRSAORLBSCLKMRESEPLBFLB
SYMBOLPOSITIONNAME AND DESCRIPTION
TESECCR1.7Transmit Elastic Store Enable.
LLBCCR1.6Local Loopback.
RSAOCCR1.5Receive Signaling All One’s.
RLBCCR1.4Remote Loopback.
SCLKMCCR1.3SYSCLK Mode Select.
RESECCR1.2Receive Elastic Store Enable.
PLBCCR1.1Payload Loopback.
FLBCCR1.0Framer Loopback.
LOCAL LOOPBACK
When CCR1.6 is set to a one, the DS2151Q will be
forced into Local LoopBack (LLB). In this loopback,
data will continue to be transmitted as normal through
the transmit side of the SCT. Data being received at
RTIP and RRING will be replaced with the data being
transmitted. Data in this loopback will pass through the
jitter attenuator and the jitter attenuator should be programmed to be in the transmit path. LLB is primarily
used in debug and test applications. Please see the
DS2151Q Block Diagram in Section 1 for more details.
REMOTE LOOPBACK
When CCR1.4 is set to a one, the DS2151Q will be
forced into Remote LoopBack (RLB). In this loopback,
data recovered off the T1 line from the RTIP and RRING
pins will be transmitted back onto the T1 line (with any
BPVs that might have occurred intact) via the TTIP and
0=elastic store is bypassed
1=elastic store is enabled
0=loopback disabled
1=loopback enabled
0=allow robbed signaling bits to appear at RSER
1=force all robbed signaling bits at RSER to one
0=loopback disabled
1=loopback enabled
0=if SYSCLK is 1.544 MHz
1=if SYSCLK is 2.048 MHz
0=elastic store is bypassed
1=elastic store is enabled
0=loopback disabled
1=loopback enabled
0=loopback disabled
1=loopback enabled
TRING pins. Data will continue to pass through the
receive side of the DS2151Q as it would normally and
the data at the TSER input will be ignored. Data in this
loopback will pass through the jitter attenuator. RLB is
used to place the DS2151Q into “line” loopback which is
a requirement of both ANSI T1.403 and AT&T TR6241 1.
Please see the DS2151Q Block Diagram in Section 1 for
more details.
PAYLOAD LOOPBACK
When CCR1.1 is set to a one, the DS2151Q will be
forced into Payload LoopBack (PLB). Normally, this
loopback is only enabled when ESF framing is being
performed. In a PLB situation, the DS2151Q will loop
the 192 bits of payload data (with BPVs corrected) from
the receive section back to the transmit section. The
FPS framing pattern, CRC6 calculation, and the FDL
bits are not looped back, they are reinserted by the
DS2151Q
022697 11/46
DS2151Q
DS2151Q. When PLB is enabled, the following will
occur:
in testing and debugging applications. In FLB, the
DS2151Q will loop data from the transmit side back to
the receive side. When FLB is enabled, the following
1. data will be transmitted from the TTIP and TRING
will occur:
pins synchronous with RCLK instead of TCLK
2. all of the receive side signals will continue to operate
normally
3. the TCHCLK and TCHBLK signals are forced low
4. data at the TSER pin is ignored
5. the TLCLK signal will become synchronous with
RCLK instead of TCLK.
1. unless the RLB is active, an unframed all one’s code
will be transmitted at TTIP and TRING
2. data off the T1 line at RTIP and RRING will be
ignored
3. the RCLK output will be replaced with the TCLK
input.
FRAMER LOOPBACK
When CCR1.0 is set to a one, the DS2151Q will enter a
Framer LoopBack (FLB) mode. This loopback is useful
CCR2: COMMON CONTROL REGISTER 2 (Address=38 Hex)
(MSB)(LSB)
TFM
SYMBOLPOSITIONNAME AND DESCRIPTION
TFMCCR2.7Transmit Frame Mode Select.
TB8ZSCCR2.6Transmit B8ZS Enable.
TSLC96CCR2.5Transmit SLC–96/Fs Bit Insertion Enable.
ESMDMCCR3.7Elastic Store Minimum Delay Mode. See Section 10.3 for details.
0=elastic stores operate at full two frame depth
1=elastic stores operate at 32–bit depth
ESRCCR3.6Elastic Store Reset. Setting this bit from a zero to a one will force the elas-
tic stores to a known depth. Should be toggled after SYSCLK has been
applied and is stable. Must be cleared and set again for a subsequent
reset.
P16FCCR3.5Function of Pin 16.
0=Receive Loss of Sync (RLOS).
1=Loss of Transmit Clock (LOTC).
RSMSCCR3.4RSYNC Multiframe Skip Control. Useful in framing format conversions
from D4 to ESF.
0=RSYNC will output a pulse at every multiframe
1=RSYNC will output a pulse at every other multiframe note: for this bit to
have any affect, the RSYNC must be set to output multiframe pulses
(RCR2.4=1 and RCR2.3=0).
PDECCR3.3Pulse Density Enforcer Enable.
0=disable transmit pulse density enforcer
1=enable transmit pulse density enforcer
TLDCCR3.2Transmit Loop Down Code (001).
0=transmit data normally
1=replace normal transmitted data with loop down code
TLUCCR3.1Transmit Loop Up Code (00001).
0=transmit data normally
1=replace normal transmitted data with loop up code
LIRSTCCR3.0Line Interface Reset. Setting this bit from a zero to a one will initiate an
internal reset that affects the slicer , AGC, clock recovery state machine and
jitter attenuator. Normally this bit is only toggled on power–up. Must be
cleared and set again for a subsequent reset.
DS2151Q
LOOP CODE GENERATION
When either the CCR3.1 or CCR3.2 bits are set to one,
the DS2151Q will replace the normal transmitted payload with either the Loop Up or Loop Down code respectively. The DS2151Q will overwrite the repeating loop
code pattern with the framing bits. The SCT will continue to transmit the loop codes as long as either bit is
set. It is an illegal state to have both CCR3.1 and
CCR3.2 set to one at the same time.
PULSE DENSITY ENFORCER
The SCT always examines both the transmit and
receive data streams for violations of the following rules
which are required by ANSI T1.403–199X:
– no more than 15 consecutive zeros
– at least N ones in each and every time window
of 8 x (N +1) bits where N=1 through 23.
Violations for the transmit and receive data streams are
reported in the RIR2.2 and RIR2.1 bits respectively .
022697 13/46
DS2151Q
When the CCR3.3 is set to one, the DS2151Q will force
the transmitted stream to meet this requirement no matter the content of the transmitted stream. When running
B8ZS, the CCR3.3 bit should be set to zero since B8ZS
encoded data streams cannot violate the pulse density
requirements.
POWER–UP SEQUENCE
On power–up, after the supplies are stable, the
DS2151Q should be configured for operation by writing
to all of the internal registers (this includes setting the
Test Register to 00Hex) since the contents of the internal registers cannot be predicted on power–up. Next,
the LIRST bit should be toggled from zero to one to reset
the line interface (it will take the DS2151Q about 40ms
to recover from the LIRST being toggled). Finally, after
the SYSCLK input is stable, the ESR bit should be
toggled from a zero to a one (this step can be skipped if
the elastic stores are disabled).
4.0 STATUS AND INFORMATION
REGISTERS
There is a set of four registers that contain information
on the current real time status of the DS2151Q, Status
Register 1 (SR1), Status Register 2 (SR2), Receive
Information Register 1 (RIR1), and Receive Information
Register 2 (RIR2). When a particular event has
occurred (or is occurring), the appropriate bit in one of
these four registers will be set to a one. All of the bits in
these registers operate in a latched fashion. This
means that if an event occurs and a bit is set to a one in
any of the registers, it will remain set until the user reads
that bit. The bit will be cleared when it is read and it will
not be set again until the event has occurred again or if
the alarm(s) is still present.
The user will always precede a read of these registers
with a write. The byte written to the register will inform
the DS2151Q which bits the user wishes to read and
have cleared. The user will write a byte to one of these
four registers, with a one in the bit positions he or she
wishes to read and a zero in the bit positions he or she
does not wish to obtain the latest information on. When
a one is written to a bit location, the read register will be
updated with current value and the previous value will
be cleared. When a zero is written to a bit position, the
read register will not be updated and the previous value
will be held. A write to the status and information registers will be immediately followed by a read of the same
register. The read result should be logically AND’ed
with the mask byte that was just written and this value
should be written back into the same register to insure
that the bit does indeed clear . This second write is necessary because the alarms and events in the status registers occur asynchronously in respect to their access
via the parallel port. The write–read–write scheme is
unique to the four status registers and it allows an external microcontroller or microprocessor to individually poll
certain bits without disturbing the other bits in the register. This operation is key in controlling the DS2151Q
with higher–order software languages.
The SR1 and SR2 registers have the unique ability to
initiate a hardware interrupt via the INT1
respectively. Each of the alarms and events in the SR1
and SR2 can be either masked or unmasked from the
interrupt pins via the Interrupt Mask Register 1 (IMR1)
and Interrupt Mask Register 2 (IMR2) respectively.
and INT2 pins
RIR1: RECEIVE INFORMATION REGISTER 1 (Address=22 Hex)
(MSB)(LSB)
COFA8ZD16ZDRESFRESESEFEB8ZSFBE
SYMBOLPOSITIONNAME AND DESCRIPTION
COFARIR1.7Change of Frame Alignment. Set when the last resync resulted in a
8ZDRIR1.6Eight Zero Detect. Set when a string of eight consecutive zeros have been
16ZDRIR1.5Sixteen Zero Detect. Set when a string of sixteen consecutive zeros have
RESFRIR1.4Receive Elastic Store Full. Set when the receive elastic store buffer fills
022697 14/46
change of frame or multiframe alignment.
received at RPOS and RNEG.
been received at RPOS and RNEG.
and a frame is deleted.
Loading...
+ 32 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.