• Onboard, dual two–frame elastic store slip buffers
• Extracts and inserts robbed–bit signaling
• Programmable output clocks
• Onboard FDL support circuitry
• 5V supply; low–power CMOS
• Available in 40–pin DIP and 44–pin PLCC (DS2141Q)
• Compatible with DS2186 Transmit Line Interface,
DS2187 Receive Line Interface, DS2188 Jitter Attenuator, DS2290 T1 Isolation Stik, and DS2291 T1 Long
Loop Stik.
DESCRIPTION
The DS2141A is a comprehensive, software–driven T1
framer. It is meant to act as a slave or coprocessor to a
microcontroller or microprocessor. Quick access via
the parallel control port allows a single micro to handle
many T1 lines. The DS2141A is very flexible and can be
configured into numerous orientations via software.
The software orientation of the device allows the user to
modify their design to conform to future T1 specification
changes. The controller contains a set of 62 8–bit internal registers which the user can access. These internal
registers are used to configure the device and obtain information from the T1 link. The device fully meets all of
the latest T1 specifications including ANSI
T1.403–1989, AT&T TR 62411 (12–90), and CCITT
G.704 and G.706.
PIN ASSIGNMENT
1
TCLK
2
TSER
AD0
AD1
AD2
AD3
AD4
AD5
AD6
AD7
BTS
RD (DS)
NC
TCHCLK
RD
ALE(AS)
WR
3
TPOS
4
5
TNEG
6
AD0
7
AD1
8
AD2
9
AD3
10
AD4
11
AD5
12
AD6
13
AD7
14
BTS
15
(DS)
16
CS
17
18
(R/W)
19
RLINK
2021
VSS
40–PIN DIP (600 MIL)
TNEG
TPOS
TCHCLK
7
8
9
10
11
12
44–PIN PLCC
13
14
15
16
17
1819 202122 2324
CS
NC
ALE(AS)
TSER
TCLK
VDD
12345644 43 42 41 40
VSS
RLINK
WR(R/W)
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
TSYNC
TLINK
TLCLK
25 262728
RCLK
RLCLK
RCHCLK
VDD
TSYNC
TLINK
TLCLK
INT1
INT2
RLOS/LOTC
TCHBLK
RCHBLK
LI_CS
LI_CLK
LI_SDI
SYSCLK
RNEG
RPOS
RSYNC
RSER
RCHCLK
RCLK
RLCLK
INT1
INT2
RLOS/LOTC
39
TCHBLK
38
RCHBLK
37
LI_CS
36
LI_CLK
35
LI_SDI
34
NC
33
NC
32
SYSCLK
31
RNEG
30
RPOS
29
RSER
RSYNC
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.
021997 1/35
DS2141A
1.0 INTRODUCTION
The DS2141A T1 Controller has four main sections: the
receive side, the transmit side, the line interface controller, and the parallel control port. See the block diagram
below. On the receive side, the device will clock in the
serial T1 stream via the RPOS and RNEG pins. The
synchronizer will locate the frame and multiframe patterns and establish their respective positions. This information will be used by the rest of the receive side circuitry.
The DS2141A is an “off–line” framer , which means that
all of the T1 serial stream that goes into the device will
DS2141A BLOCK DIAGRAM
RLOS
RECEIVE SIDE
FRAMER
RPOS
RCLK
RNEG
BPV COUNTER
B8ZS DECODER
SYNCHRONIZER
ALARM DETECTION
LOOP CODE DETECTOR
SIGNALING EXTRACTION
ONE’S DENSITY MONITOR
CRC/FRAME ERROR COUNT
come out of it unchanged. Once the T1 data has been
framed to, the robbed–bit signaling data and FDL can be
extracted. The 2–frame elastic stores can either be enabled or bypassed.
The transmit side clocks in the unframed T1 stream at
TSER and adds in the framing pattern, the robbed–bit
signaling, and the FDL. The line interface control port
will update line interface devices that contain a serial
port. The parallel control port contains a multiplexed address and data structure which can be connected to either a microcontroller or microprocessor.
TIMING CONTROL/
FDL EXTRACTION
ELASTIC
STORE
CHANNEL MARKING
RLINK
RLCLK
RCHBLK
RCHCLK
RSER
SYSCLK
RSYNC
TPOS
TNEG
LI_SDI
LI_SCLK
LI_CS
021997 2/35
TRANSMIT SIDE FORMATTER
LOCAL LOOPBACK
PAYLOAD LOOPBACK
AIS GEN.
B8ZS ENCODE
LINE INTERFACE
CONTROL PORT
BTSCSWR(R/W)RD(DS)ALE(AS)INT1/INT2AD0–AD7
YELLOW ALARM GEN.
CRC GEN.
FDL INSERTION
F–BIT INSERTION
LOOP CODE GEN.
ONE’S DENSITY ENCODER
PARALLEL CONTROL PORT
(ROUTED TO ALL BLOCKS)
CLEAR CHANNEL
IDLE CODE INSERTION
SIGNALING INSERTION
ELASTIC
STORE
TIMING
CONTROL/
FDL
INSERT
TSER
TCLK
TCHBLK
TLINK
TLCLK
TSYNC
TCHCLK
DS2141A
DS2141A FEATURES
• parallel control port
• large error counters
• onboard dual 2–frame elastic store
• FDL support circuitry
• robbed–bit signaling extraction and insertion
• programmable output clocks
• fully independent transmit and receive sections
• error–tolerant yellow and blue alarm detection
• output pin test mode
• payload loopback capability
• SLC–96 support
• remote loop up/down code detection
• loss of transmit clock detection
• loss of receive clock detection
• 1’s density violation detection
• frame sync generation
PIN DESCRIPTION Table 1
PINSYMBOLTYPEDESCRIPTION
1TCLKITransmit Clock. 1.544 MHz primary clock.
2TSERITransmit Serial Data. Transmit NRZ serial data, sampled on the
3TCHCLKOTransmit Channel Clock. 192 KHz clock which pulses high during
4
5
6–13AD0–AD7I/OAddress/Data Bus. An 8–bit multiplexed address/data bus.
14BTSIBus Type Select. Strap high to select Motorola bus timing; strap low
15RD(DS)IRead Input (Data Strobe).
16CSIChip Select. Must be low to read or write the port.
17ALE(AS)IAddress Latch Enable (Address Strobe). A positive–going edge
18WR(R/W)IWrite Input (Read/Write).
19RLINKOReceive Link Data. Updated with either FDL data (ESF) or Fs–bits
20VSS–Signal Ground. 0.0 volts.
21RLCLKOReceive Link Clock. 4 KHz or 2 KHz (ZBTSI) demand clock for the
22RCLKIReceive Clock. 1.544 MHz primary clock.
23RCHCLKOReceive Channel Clock. 192 KHz clock which pulses high during
24RSEROReceive Serial Data. Received NRZ serial data; updated on rising
TPOS
TNEG
falling edge of TCLK.
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.
OTransmit Bipolar Data. Updated on rising edge of TCLK.
to select Intel bus timing. This pin controls the function of the
(DS), ALE(AS), and WR(R/W) pins. If BTS=1, then these pins
RD
assume the function listed in parenthesis ().
serves to demultiplex the bus.
(D4) or Z–bits (ZBTSI) one RCLK before the start of a frame. See
Section 13 for timing details.
RLINK input. See Section 13 for timing details.
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.
edges of RCLK.
021997 3/35
DS2141A
PINDESCRIPTIONTYPESYMBOL
25RSYNCI/OReceive Sync. An extracted pulse, one RCLK wide, is output at this
pin which 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.
26
27
RPOS
RNEG
IReceive Bipolar Data Inputs. Sampled on falling edge of RCLK. Tie
together to receive NRZ data and disable bipolar violation monitoring
circuitry.
28SYSCLKISystem Clock. 1.544 MHz or 2.048 MHz clock. Only used when the
elastic store function is enabled via the CCR. Should be tied low in
applications that do not use the elastic store.
29LI_SDIOSerial Port Data for the Line Interface. Connects directly to the SDI
input pin on the line interface.
30LI_CLKOSerial Port Clock for the Line Interface. Connects directly to the
SCLK input pin on the line interface.
31LI_CSOSerial Port Chip Select for the Line Interface. Connects directly to
input pin on the line interface.
the CS
32
33
RCHBLK
TCHBLK
OReceive/Transmit 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
application 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.
34RLOS/LOTCOReceive Loss of Sync/Loss of Transmit Clock. A dual function
output. If CCR1.6=0, then this pin will toggle high when the synchronizer is searching for the T1 frame and multiframe. If CCR1.6=1,
then this pin will toggle high when the TCLK pin has not been toggled
for 5 µs.
35INT2OReceive Alarm Interrupt 2. Flags host controller during conditions
defined in Status Register 2. Active low, open drain output.
36INT1OReceive Alarm Interrupt 1. Flags host controller during alarm condi-
tions defined in Status Register 1. Active low, open drain output.
37TLCLKOTransmit Link Clock. 4 KHz or 2 KHz (ZBTSI) demand clock for the
TLINK input. See Section 13 for timing details.
38TLINKITransmit 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.
39TSYNCI/OTransmit Sync. A pulse at this pin will establish either frame or mul-
tiframe boundaries for the DS2141A. Via TCR2.2, the DS2141A can
be programmed 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.
40VDD–Positive Supply. 5.0 volts.
021997 4/35
DS2141A REGISTER MAP
ADDRESS R/WREGISTER NAME
20R/W Status Register 1
21R/W Status Register 2
22R/W Receive Information Register
23RBipolar Violation/ESF Error
Register 3
35R/W Transmit Control Register 1
36R/W Transmit Control Register 2
37R/W Common Control Register 1
38R/W Common Control Register 2
39R/W Transmit Transparency
Note: All values indicated within the Address column
are hexadecimal.
021997 5/35
DS2141A
2.0 P ARALLEL PORT
The DS2141A is controlled via a multiplexed bidirectional
address/data bus by an external microcontroller or microprocessor. The DS2141A can operate with either Intel or
Motorola bus timing configurations. If the BTS pin is tied
pulses. In a read cycle, the DS2141A outputs a byte of
data during the latter portion of the DS or RD
read cycle is 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.
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 AC Electrical Characteristics for more details. The multiplexed bus
on the DS2141A saves pins bec ause 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 DS2141A 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
3.0 CONTROL REGISTERS
The operation of the DS2141A is configured via a set of
six registers. Typically , the control registers are only ac-
cessed when the system is first powered up. Once, the
DS2141A 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), and two Common Control
Registers (CCR1 and CCR2). Each of the six registers
is described below.
RCR1: RECEIVE CONTROL REGISTER 1 (2Bh)
(MSB)(LSB)
–ARCOOF1OOF2SYNCCSYNCTSYNCERESYNC
SYMBOLPOSITIONNAME AND DESCRIPTION
–RCR1.7Not Assigned. Should be set to 0 when written to.
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 resync is initiated. Must be
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=do not pulse double–wide in signaling frames.
1=do pulse double–wide in signaling frames.
(note: this bit must be set to 0 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 0 when CCR1.2 = 0).
RD4YMRCR2.2Receive Side D4 Yellow Alarm Select.
0=0 in bit 2 of all channels.
1=a 1 in the S–bit position of frame 12.
FSBERCR2.1Fs–Bit Error Report Enable.
0=do not report bit errors in the Fs–bit position in FECR.
1=report bit errors in the Fs–bit position in FECR.
BPVCRSRCR2.0BPVCRS Function Select.
0=counts bipolar violations.
1=counts ESF error events (CRC6 OR ’ed with RLOS).
DS2141A
021997 7/35
DS2141A
TCR1: TRANSMIT CONTROL REGISTER 1 (35h)
(MSB)(LSB)
ODFTFPTTCPTRBSEGB7STLINKTBLTYEL
SYMBOLPOSITIONNAME AND DESCRIPTION
ODFTCR1.7Output Data Format.
TFPTTCR1.6Transmit Framing Pass Through.
TCPTTCR1.5Transmit CRC Pass Through.
RBSETCR1.4Robbed Bit Signaling Enable.
GB7STCR1.3Global Bit 7 Stuffing.
TLINKTCR1.2TLINK Select.
TBLTCR1.1Transmit Blue Alarm.
TYELTCR1.0Transmit Yellow Alarm.
0=bipolar data at TPOS and TNEG.
1=NRZ data at TPOS; TNEG = 0.
0=Ft or FPS bits sourced internally.
1=Ft or FPS bits sampled at TSER during F–bit time.
0=source CRC6 bits internally.
1=CRC6 bits sampled at TSER during F–bit time.
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).
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.
0=source FDL or Fs bits from TFDL register.
1=source FDL or Fs bits from the TLINK pin.
0=transmit data normally.
1=transmit an unframed all 1’s code at TPOS and TNEG.
0=do not transmit yellow alarm.
1=transmit yellow alarm.
TCR2: TRANSMIT CONTROL REGISTER 2 (36h)
(MSB)(LSB)
TESTM
SYMBOLPOSITIONNAME AND DESCRIPTION
TESTMTCR2.7Test Mode Select. Set this bit to a 1 to force all outputs (including I/O pins)
TESTIOTCR2.6Test I/O Pins.
TZBTSITCR2.5Transmit Side ZBTSI Enable.
021997 8/35
TESTIOTZBTSITSDWTSMTSIOTD4YMB7ZS
either high (TCR2.6 = 1) or low (TCR2.6 = 0).
0=force all output (and I/O) pins to a logic 0.
1=force all output (and I/O) pins to a logic 1.
0=ZBTSI disabled.
1=ZBTSI enabled.
DS2141A
TSDWTCR2.4TSYNC Double–Wide.
0=do not pulse double–wide in signaling frames.
1=do pulse double–wide in signaling frames.
(note: this bit must be set to 0 when TCR2.3 = 1 or when TCR2.2 = 0).
TSMTCR2.3TSYNC Mode Select.
0=frame mode (see the timing in Section 13).
1=multiframe mode (see the timing in Section 13).
TSIOTCR2.2TSYNC I/O Select.
0=TSYNC is an input.
1=TSYNC is an output.
TD4YMTCR2.1Transmit Side D4 Yellow Alarm Select.
0=0s in bit 2 of all channels.
1=a 1 in the S–bit position of frame 12.
B7ZSTCR2.0Bit 7 Zero Suppression Enable.
0=no stuffing occurs.
1=Bit 7 forced to a 1 in channels with all 0s.
CCR1: COMMON CONTROL REGISTER 1 (37h)
(MSB)(LSB)
TESEP34FRSAO–SCLKMRESEPLBLLB
SYMBOLPOSITIONNAME AND DESCRIPTION
TESECCR1.7Transmit Elastic Store Enable.
P34FCCR1.6Function of Pin 34.
RSAOCCR1.5Receive Signaling All 1’s.
–CCR1.4Not Assigned. Should be set to 0 when written to.
SCLKMCCR1.3SYSCLK Mode Select.
RESECCR1.2Receive Elastic Store Enable.
PLBCCR1.1Payload Loopback.
LLBCCR1.0Local Loopback.
0=elastic store is bypassed.
1=elastic store is enabled.
0=Receive Loss of Sync (RLOS).
1=Loss of Transmit Clock (LOTC).
0=allow robbed signaling bits to appear at RSER.
1=force all robbed signaling bits at RSER to 1.
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.
021997 9/35
DS2141A
PAYLOAD LOOPBACK
When CCR1.1 is set to a 1, the DS2141A will be forced
5. The TLCLK signal will become synchronous with
RCLK instead of TCLK.
into Payload LoopBack (PLB). Normally, this loopback
is only enabled when ESF framing is being performed.
In a PLB situation, the DS2141A 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 DS2141A.
When PLB is enabled, the following will occur:
LOCAL LOOPBACK
When CCR1.0 is set to a 1, the DS2141A will enter a Local LoopBack (LLB) mode. This loopback is useful in
testing and debugging applications. In LLB, the
DS2141A will loop data from the transmit side back to
the receive side. This loopback is synonymous with replacing the RCLK input with the TCLK signal, and the
RPOS/RNEG inputs with the TPOS/TNEG outputs.
1. Data will be transmitted from the TPOS and TNEG
When LLB is enabled, the following 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.
1. The TPOS and TNEG pins will transmit an unframed
all 1s.
2. Data at RPOS and RNEG will be ignored.
3. All receive side signals will take on timing synchronous with TCLK instead of RCLK.
CCR2: COMMON CONTROL REGISTER 2 (38h)
(MSB)(LSB)
TFMTB8ZSTSLC96TFDLRFMRB8ZSRSLC96RFDL
SYMBOLPOSITIONNAME AND DESCRIPTION
TFMCCR2.7Transmit Frame Mode Select.
TB8ZSCCR2.6Transmit B8ZS Enable.
TSLC96CCR2.5Transmit SLC–96/Fs Bit Insertion Enable.
There is a set of three registers that contain information
on the current real time status of the DS2141A: Status
Register 1 (SR1), Status Register 2 (SR2), and the Receive Information Register (RIR). When a particular
event has occurred (or is occurring), the appropriate bit
in one of these three registers will be set to a 1. 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 1 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 in the
case of RLOS, if loss of sync 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 DS2141A which bits the user wishes to read and
have cleared. The user will write a byte to one of these
three registers, with a 1 in the bit positions he or she
wishes to read and a 0 in the bit positions he or she does
not wish to obtain the latest information on. When a 1 is
written to a bit location, the read register will be updated
with current value and it will be cleared. When a 0 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. This scheme
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 DS2141A with higher–order software languages.
The SR1 and SR2 registers have the unique ability to
initiate a hardware interrupt via the INT1
and INT2 pins
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.
RIR: RECEIVE INFORMATION REGISTER (22h)
(MSB)(LSB)
COFA
SYMBOLPOSITIONNAME AND DESCRIPTION
COFARIR.7Change of Frame Alignment. Set when the last resync resulted in a
8ZDRIR.6Eight Zero Detect. Set when a string of eight consecutive 0s has been
16ZDRIR.5Sixteen Zero Detect. Set when a string of 16 consecutive 0s has been
RESFRIR.4Receive Elastic Store Full. Set when the elastic store buffer fills and a
RESERIR.3Receive Elastic Store Empty. Set when the elastic store buffer empties
8ZD16ZDRESFRESESEFEB8ZSFBE
change of frame or multiframe alignment.
received at RPOS and RNEG.
received at RPOS and RNEG.
frame is deleted.
and a frame is repeated.
021997 11/35
DS2141A
SEFERIR.2Severely Errored Framing Event. Set when 2 out of 6 framing bits are
received in error.
B8ZSRIR.1B8ZS Code Word Detect. Set when a B8ZS code word is detected at
RPOS and RNEG independent of whether the B8ZS mode is selected or
not via CCR2.2.
FBERIR.0Frame Bit Error. Set when a Ft (D4) or FPS (ESF) framing bit is received in
error.
Note: If the transmit elastic store slips, both RIR.4 and RIR.3 will be set.
SR1: STATUS REGISTER 1 (20h)
(MSB)(LSB)
LUPLDNLOTCSLIPRBLRYELRCLRLOS
SYMBOLPOSITIONNAME AND DESCRIPTION
LUPSR1.7Loop Up Code Detected. Set when the repeating ...00001... loop up code
LDNSR1.6Loop Down Code Detected. Set when the repeating ...001... loop down
LOTCSR1.5Loss of Transmit Clock. Set when the TCLK pin has not transitioned for
SLIPSR1.4Elastic Store Slip Occurrence. Set when the elastic store has either re-
RBLSR1.3Receive Blue Alarm. Set when an all 1’s code is received at RPOS and
RYELSR1.2Receive Yellow Alarm. Set when a yellow alarm is received at RPOS and
RCLSR1.1Receive Carrier Loss. Set when 192 consecutive 0s have been detected
RLOSSR1.0Receive Loss of Sync. Set when the device is not synchronized to the
is being received.
code is being received.
one channel time (or 5.2 µs). Will force pin–34 high if enabled via CCR1.6.
Based on RCLK.
peated or deleted a frame of data.
RNEG.
RNEG.
at RPOS and RNEG.
receive T1 stream.
LOOP UP/DOWN CODE DETECTION
Bits SR1.7 and SR1.6 will indicate when either the standard “loop up” or “loop down” codes are being received
by the DS2141A. When a loop up code has been received for 5 seconds, the CPE is expected to loop the
recovered data (without correcting BPVs) back to the
source. The loop down code indicates that the loopback
should be discontinued. See the AT&T publication TR
62411 for more details. The DS2141A will detect the
loop up/down codes in both framed and unframed cir-
021997 12/35
cumstances with bit error rates as high as 10–
2
. The
loop code detector has a nominal integration period of
48 ms. Hence, after about 48 ms of receiving either
code, the proper status bit will be set to a 1. After this
initial indication, it is recommend that the software poll
the DS2141A every 100 ms to 500 ms until five seconds
has elapsed to insure that the code is continuously present. Once five seconds has passed, the line interface
should be taken into or out of loopback.
SR2: STATUS REGISTER 2 (21h)
(MSB)(LSB)
RMFTMFSECRFDLTFDLRMTCHRAFLORC
SYMBOLPOSITIONNAME AND DESCRIPTION
RMFSR2.7Receive Multiframe. Set on receive multiframe boundaries.
TMFSR2.6Transmit Multiframe. Set on transmit multiframe boundaries.
SECSR2.5One Second Timer. Set on increments of one second based on RCLK; will
be set in increments of 999 ms, 999 ms, and 1002 ms every three seconds.
RFDLSR2.4Receive FDL Buffer Full. Set when the receive FDL buffer (RFDL) fills to
capacity (8–bits).
TFDLSR2.3Transmit FDL Buffer Empty. Set when the transmit FDL buffer (TFDL)
empties.
RMTCHSR2.2Receive FDL Match Occurrence. Set when the RFDL matches either
RFDLM1 or RFDLM2.
RAFSR2.1Receive FDL Abort. Set when eight consecutive 1’s are received in the
FDL.
LORCSR2.0Loss of Receive Clock. Set when the RCLK pin has not transitioned for at
least 2 µs (3 µs +
1 µs).
IMR1: INTERRUPT MASK REGISTER 1 (7Fh)
(MSB)(LSB)
LUP
LDNLOTCSLIPRBLRYELRCLRLOS
DS2141A
SYMBOLPOSITIONNAME AND DESCRIPTION
LUPIMR1.7Loop Up Code Detected.
0=interrupt masked.
1=interrupt enabled.
LDNIMR1.6Loop Down Code Detected.
0=interrupt masked.
1=interrupt enabled.
LOTCIMR1.5Loss of Transmit Clock.
0=interrupt masked.
1=interrupt enabled.
SLIPIMR1.4Elastic Store Slip Occurrence.
0=interrupt masked.
1=interrupt enabled.
RBLIMR1.3Receive Blue Alarm.
0=interrupt masked.
1=interrupt enabled.
RYELIMR1.2Receive Yellow Alarm.
0=interrupt masked.
1=interrupt enabled.
021997 13/35
DS2141A
RCLIMR1.1Receive Carrier Loss.
0=interrupt masked.
1=interrupt enabled.
RLOSIMR1.0Receive Loss of Sync.
0=interrupt masked.
1=interrupt enabled.
IMR2: INTERRUPT MASK REGISTER 2 (6Fh)
(MSB)(LSB)
RMFTMFSECRFDLTFDLRMTCHRAFLORC
SYMBOLPOSITIONNAME AND DESCRIPTION
RMFIMR2.7Receive Multiframe.
TMFIMR2.6Transmit Multiframe.
SECIMR2.5One Second Timer.
RFDLIMR2.4Receive FDL Buffer Full.
TFDLIMR2.3Transmit FDL Buffer Empty.
RMTCHIMR2.2Receive FDL Match Occurrence.
RAFIMR2.1Receive FDL Abort.
LORCIMR2.0Loss of Receive Clock.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
0=interrupt masked.
1=interrupt enabled.
021997 14/35
DS2141A
5.0 ERROR COUNT REGISTERS
There is a set of three counters in the DS2141A that record bipolar violations, errors in the CRC6 code words,
and frame bit errors. Each of these three counters is automatically updated on one–second boundaries as determined by the one–second timer in Status Register 2
(SR2.5). Hence, these registers contain performance
data from the previous second. The user can use the
interrupt from the one–second timer to determine when
to read these registers. The user has a full second to
read the counters before the data is lost.
Bipolar Violation Count Register 1 (BPVCR1) is the
most significant word and BPVCR2 is the least significant word of a 16–bit counter that records bipolar violations (BPVs). If the B8ZS mode is set for the receive
side via CCR2.2, then B8ZS code words are not
counted. This counter increments at all times and is not
BV14BV13BV12BV11BV10BV9BV8
BV0BPVCR2.0LSB of the bipolar violation count.
disabled by loss of sync conditions. The counter saturates at 65,535 and will not roll over. If the DS2141A is
programmed to record ESF error events (RCR2.0=1),
then the BPVCR will increment for each ESF multiframe
that contains either an error in the CRC6 word or an out–
of–frame occurrence (loss of sync).
CRC7CRCCR1.7MSB of the CRC6 count.
CRC0CRCCR2.0LSB of the CRC6 count.
CRC6 Count Register 1 (CRCCR1) is the most significant word and CRCCR2 is the least significant word of a
16–bit counter that records word errors in the Cyclic Redundancy Check 6 (CRC6) when the DS2141A is oper-
ated in the ESF framing mode (CCR2.3 = 1). This counter saturates at 65,535 and will not roll over. The counter
is disabled during loss of sync conditions.
021997 15/35
DS2141A
FECR: FRAME ERROR COUNT REGISTER (27h)
(MSB)(LSB)
FE7FE6FE5FE4FE3FE2FE1FE0
SYMBOLPOSITIONNAME AND DESCRIPTION
FE7FECR.7MSB of the Frame Error count.
FE0FECR.0LSB of the Frame Error count.
The Frame Error Count Register (FECR) is a 8–bit
counter that records either errors in the framing pattern.
The FECR will count individual bit errors in the ESF
framing pattern (...00101 1...) if the device is set into the
ESF framing mode (CCR2.3 = 1) and it will count individual bit errors in the Ft framing pattern (...101010...) in the
D4 framing mode (CCR2.3 = 0). If RCR2.1=1, then the
FECR will also record individual bit errors in the Fs framing pattern (...001110...) when it is in the D4 framing
mode. This counter saturates at 255 and will not roll
over. The counter is disabled during loss of sync conditions.
6.0 FDL/FS EXTRACTION AND INSERTION
The DS2141A has the ability to extract/insert data from/
into the Facility Data Link (FDL) in the ESF framing
mode and from/into Fs–bit position in the D4 framing
mode. Since SLC–96 utilizes the Fs–bit position, this
capability can also be used in SLC–96 applications.
The operation of the receive and transmit sections will
be discussed separately.
6.1 Receive Section
In the receive section, the recovered FDL bits or Fs bits
are shifted bit–by–bit into the Receive FDL register
(RFDL). Since the RFDL is 8 bits in length, it will fill up
every 2 ms (8 x 250 µs). The DS2141A will signal an external microcontroller that the buffer has filled via the
SR2.4 bit. If enabled via IMR2.4, the INT2
pin will toggle
low indicating that the buffer has filled and needs to be
read. The user has 2 ms to read this data before it is lost.
If the byte in the RFDL matches either of the bytes programmed into the RFDLM1 or RFDLM2 registers, then
the SR2.2 bit will be set to a 1 and the INT2
pin will
toggled low if enabled via IMR2.2. This feature allows
an external microcontroller to ignore the FDL or Fs pattern until an important event occurs.
The DS2141A also contains a zero destuffer which is
controlled via the CCR2.0 bit. In both ANSI T1.403 and
TR54016, communications on the FDL follow a subset
of a LAPD protocol. The LAPD protocol states that no
more than five 1s should be transmitted in a row so that
the data does not resemble an opening or closing flag
(01111110) or an abort signal (11111111). If enabled via
CCR2.0, the DS2141A will automatically look for five 1s
in a row, followed by a 0. If it finds such a pattern, it will
automatically remove the 0. If the 0 destuffer sees six or
more 1s in a row followed by a 0, the 0 is not removed.
The CCR2.0 bit should always be set to a 1 when the
DS2141A is extracting the FDL. More on how to use the
DS2141A in FDL applications is covered in a separate
Application Note.
021997 16/35
RFDL: RECEIVE FDL REGISTER (28h)
(MSB)(LSB)
RFDL7RFDL6RFDL5RFDL4RFDL3RFDL2RFDL1RFDL0
SYMBOLPOSITIONNAME AND DESCRIPTION
RFDL7RFDL.7MSB of the Received FDL Code.
RFDL0RFDL.0LSB of the Received FDL Code.
The Receive FDL Register (RFDL) reports the incoming
Facility Data Link (FDL) or the incoming Fs–bits. The
LSB is received first.
RFDLM1: RECEIVE FDL MATCH REGISTER 1 (29h)
RFDLM2: RECEIVE FDL MATCH REGISTER 2 (2Ah)
(MSB)(LSB)
RFDL7
SYMBOLPOSITIONNAME AND DESCRIPTION
RFDL7RFDL.7MSB of the FDL Match Code.
RFDL0RFDL.0LSB of the FDL Match Code.
RFDL6RFDL5RFDL4RFDL3RFDL2RFDL1RFDL0
DS2141A
When the byte in the Receive FDL Register matches either of the two Receive FDL Match Registers
(RFDLM1/RFDLM2), RSR2.2 will be set to a 1 and the
INT2
will go active if enabled via IMR2.2.
6.2 TRANSMIT SECTION
The transmit section will shift out either the FDL (in the
ESF framing mode) or the Fs–bits (in the D4 framing
mode) contained in the Transmit FDL register (TFDL)
into the T1 data stream. When a new value is written to
the TFDL, it will be multiplexed serially (LSB first) into
the proper position in the outgoing T1 data stream. After
the full eight bits have been shifted out, the DS2141A
will signal the host microcontroller that the buffer is
empty and that more data is needed by setting the
SR2.3 bit to a 1. The INT2
via IMR2.3. The user has 2 ms (1.5 ms in SLC–96 ap-
will also toggle low if enabled
plications) to update the TFDL with a new value. If the
TFDL is not updated, the old value in the TFDL will be
transmitted once again.
The DS2141A also contains a zero stuffer which is controlled via the CCR2.4 bit. In both ANSI T1.403 and
TR54016, communications on the FDL follows a subset
of a LAPD protocol. The LAPD protocol states that no
more than five 1s should be transmitted in a row so that
the data does not resemble an opening or closing flag
(01111110) or an abort signal (11111111). If enabled via
CCR2.4, the DS2141A will automatically look for five 1s
in a row. If it finds such a pattern, it will automatically insert a 0 after the five 1s. The CCR2.0 bit should always
be set to a 1 when the DS2141A is inserting the FDL.
More on how to use the DS2141A in FDL applications is
covered in a separate Application Note.
021997 17/35
DS2141A
TFDL: TRANSMIT FDL REGISTER (7Eh)
(MSB)(LSB)
TFDL7TFDL6TFDL5TFDL4TFDL3TFDL2TFDL1TFDL0
SYMBOLPOSITIONNAME AND DESCRIPTION
TFDL7TFDL.7MSB of the FDL code to be transmitted.
TFDL0TFDL.0LSB of the FDL code to be transmitted.
The Transmit FDL Register (TFDL) contains the Facility
Data Link (FDL) information that is to be inserted on a
byte basis into the outgoing T1 data stream. The LSB is
transmitted first.
is a set of 12 registers for the receive side (RS1 to RS12)
and 12 registers on the transmit side (TS1 to TS12).
The signaling registers are detailed below. The CCR1.5
bit is used to control the robbed signaling bits as they appear at RSER. If CCR1.5 is set to 0, then the robbed
7.0 SIGNALING OPERATION
The robbed bit signaling bits in embedded in the T1
stream can be extracted from the receive stream and inserted into the transmit stream by the DS2141A. There
signaling bits will appear at RSER in their proper position as they are received. If CCR1.5 is set to a 1, then
the robbed signaling bit positions will be forced to a 1 at
RSER.
RS1 TO RS12: RECEIVE SIGNALING REGISTERS (60h to 6Bh)
Each Receive Signaling Register (RS1 to RS12) reports
the incoming robbed bit signaling from eight DS0 channels. In the ESF framing mode, there can be up to four
signaling bits per channel (A, B, C, and D). In the D4
framing mode, there are only two framing bits per channel (A and B). In the D4 framing mode, the DS2141A will
replace the C and D signaling bit positions with the A and
B signaling bits from the previous multiframe. Hence,
whether the DS2141A is operated in either framing
mode, the user needs only to retrieve the signaling bits
every 3 ms. The bits in the Receive Signaling Registers
are updated on multiframe boundaries so the user can
utilize the Receive Multiframe Interrupt in the Receive
Status Register 2 (SR2.7) to know when to retrieve the
signaling bits. The Receive Signaling Registers are frozen and not updated during a loss of sync condition
(SR1.0=1). They will contain the most recent signaling
information before the “OOF” occurred.
TS1 TO TS12: TRANSMIT SIGNALING REGISTERS (70h to 7Bh)
Each Transmit Signaling Register (TS1 to TS12) contains the Robbed Bit signaling for eight DS0 channels
that will be inserted into the outgoing stream if enabled
to do so via TCR1.4. In the ESF framing mode, there
can be up to four signaling bits per channel (A, B, C, and
D). In the D4 framing mode, there are only two framing
bits per channel (A and B). On multiframe boundaries,
the DS2141A will load the values present in the Transmit Signaling Register into an outgoing signaling shift
register that is internal to the device. The user can utilize the Transmit Multiframe Interrupt in Status Register
2 (SR2.6) to know when to update the signaling bits.
8.0 SPECIAL TRANSMIT SIDE REGISTERS
There is a set of seven registers in the DS2141A that
can be used to custom tailor the data that is to be transmitted onto the T1 line, on a channel by channel basis.
Each of the 24 T1 channels can be either forced to be
transparent or to have a user defined idle code inserted
into them. Each of these special registers is defined below.
021997 19/35
DS2141A
TTR1/TTR2/TTR3: TRANSMIT TRANSPARENCY REGISTERS (39h to 3Bh)
Each of the bit positions in the Transmit Transparency
Registers (TTR1/TTR2/TTR3) represents a DS0 channel in the outgoing frame. When these bits are set to a 1,
the corresponding channel is transparent (or clear). If a
will be inserted nor will the channel have Bit 7 stuffing
performed. However, in the D4 framing mode, bit 2 will
be overwritten by a 0 when a Yellow Alarm is transmitted.
DS0 is programmed to be clear, no robbed bit signaling
TIR1/TIR2/TIR3: TRANSMIT IDLE REGISTERS (3Ch to 3Eh)
0=do not insert the Idle Code into this DS0 channel.
CH1TIR1.01=insert the Idle Code into this channel.
TIDR: TRANSMIT IDLE DEFINITION REGISTER (3Fh)
(MSB)(LSB)
TIDR7
SYMBOLPOSITIONNAME AND DESCRIPTION
TIDR7TIDR.7MSB of the Idle Code.
TIDR0TIDR.0LSB of the Idle Code.
TIDR6TIDR5TIDR4TIDR3TIDR2TIDR1TIDR0
TIR1 (3C)
TIR2 (3D)
TIR3 (3E)
Each of the bit positions in the Transmit Idle Registers
(TIR1/TIR2/TIR3) represents a DS0 channel in the outgoing frame. When these bits are set to a 1, the corresponding channel will transmit the Idle Code contained
021997 20/35
in the Transmit Idle Definition Register (TIDR). Robbed
bit signaling and Bit 7 stuffing will occur over the programmed Idle Code unless the DS0 channel is made
transparent by the Transmit Transparency Registers.
DS2141A
9.0 CLOCK BLOCKING REGISTERS
The Receive Channel Blocking Registers
(RCBR1/RCBR2/RCBR3) and the Transmit Channel
Blocking Registers (TCBR1/TCBR2/TCBR3) control
the RCHBLK and TCHBLK pins respectively. The
RCHBLK and TCHCLK pins are user–programmable
outputs that can be forced either high or low during indi-
vidual channels. These outputs can be used to block
clocks to a USART or LAPD controller in Fractional T1,
E1 to T1, or ISDN–PRI applications. When the appropriate bits are set to a 1, the RCHBLK and TCHCLK
pins will be held high during the entire corresponding
channel time. See the timing in Section 13 for an
example.
RCBR1/RCBR2/RCBR3: RECEIVE CHANNEL BLOCKING REGISTERS (6Ch to 6Eh)
CH1TCBR1.00=force the TCHBLK pin to remain low during this channel time.
10.0 ELASTIC STORES OPERATION
The DS2141A has two onboard two–frame (386 bits)
elastic stores. These elastic stores have two main purposes. First, they can be used to rate convert the T1
data stream to 2.048 Mbps (or a multiple of 2.048 Mbps)
which is th e E1 rate. Secondly, they can be used to
absorb the differences in frequency and phase between
the T1 data stream and an asynchronous (i.e., not frequency locked) backplane clock. Both elastic stores
contain full controlled slip capability which is necessary
for this second purpose. The receive side elastic store
can be enabled via CCR1.2 and the transmit side elastic
store is enabled via CCR1.7.
10.1 Receive Side
If the receive side elastic store is enabled (CCR1.2 = 1),
then the user must provide either a 1.544 MHz (CCR1.3
1=force the TCHBLK pin high during this channel time.
= 0) or 2.048 MHz (CCR1.3 = 1) clock at the SYSCLK
pin. The the user has the option of either providing a
frame sync at the RFSYNC pin (RCR2.3 = 1) or having
the RFSYNC pin provide a pulse on frame boundaries
(RCR2.3 = 0). If the user wishes to obtain pulses at the
frame boundary , then RCR2.4 must be set to zero and if
the user wishes to have pulses occur at the multiframe
boundary , then RCR2.4 must be set to one. If the user
selects to apply a 2.048 MHz clock to the SYSCLK pin,
then the data output at RSER will be forced to all ones
every fourth channel and the F–bit will be deleted.
Hence channels 1, 5, 9, 13, 17, 21, 25, and 29 (timeslots
0, 4, 8, 12, 16, 20, 24, and 28) will be forced to a one.
Also, in 2.048 MHz applications, the RCHBLK output
will be forced high during the same channels as the
RSER pin. See Section 13 for more details. This is useful in T1 to CEPT (E1) conversion applications. If the
021997 21/35
DS2141A
386–bit elastic buffer either fills or empties, a controlled
slip will occur. If th e buffer empties, then a full frame of
data (193 bits) will be repeated at RSER and the SR1.4
and RIR.3 bits will be set to a one. If the buffer fills, then
a full frame of data will be deleted and the SR1.4 and
RIR.4 bits will be set to a one.
10.2 Transmit Side
The transmit side elastic store can only be used if the
receive side elastic store is enabled. The operation of
the transmit elastic store is very similar to the receive
side; both have controlled slip operation and both c an
operate with either a 1.544 MHz or a 2.048 MHz
SYSCLK. When the transmit elastic store is enabled,
both the SYSCLK and RSYNC signals are shared by
both the elastic stores. Hence, they will have the same
backplane PCM frame and data structure. Controlled
slips in the transmit elastic store are reported in by setting both RIR.3 and RIR.4.
11.0 RECEIVE MARK REGISTERS
The DS2141A has the ability to replace the incoming
data, on a channel–by–channel basis, with either an idle
code (7F Hex) or the digital milliwatt code, which is an
8–byte repeating pattern that represents a 1 KHz sine
wave (1E/0B/0B/1E/9E/8B/8B/9E). The RCR2.7–bit
will determine which code is used. Each bit in the RMRs
represents a particular channel. If a bit is set to a 1, then
the receive data in that channel will be replaced with one
of the two codes. If a bit is set to 0, no replacement
occurs.
RMR1/RMR2/RMR3: RECEIVE MARK REGISTERS (2Dh to 2Fh)
CH1RMR1.00=do not affect the receive data associated with this channel.
CH7CH6CH5CH4CH3CH2CH1
1=replace the receive data associated with this channel with either the idle
code or the digital milliwatt code.
RMR1 (2D)
RMR2 (2E)
RMR3 (2F)
12.0 LINE INTERFACE CONTROL FUNCTION
The DS2141A can control line interface units that contain serial ports. When Control Register Bytes 1 or 2
(CRB1, CRB2) are written to, the DS2141A will automatically write this data serially (LSB first) into the line
interface by creating a chip select, serial clock and serial
data via the LI_CS
tively. This control function is driven off of the RCLK;
therefore RCLK must be present for proper operation.
Registers CRB1 and CRB2 can only be written to, not
read from. Writes to these registers must be at least 20
µsec apart. See Section 13 for timing information.
, LI_SCLK and LI_SDI pins respec-
CRB1: CONTROL REGISTER BYTE 1 (7Ch)
CRB2: CONTROL REGISTER BYTE 2 (7Dh)
(MSB)(LSB)
CR7CR6CR5CR4CR3CR2CR1CR0
CR7CR6CR5CR4CR3CR2CR1CR0
SYMBOLPOSITIONNAME AND DESCRIPTION
CR0CRB1.0LSB of Control Register Byte 1.
CR7CRB2.7MSB of Control Register Byte 2.
021997 22/35
CRB1 (7C)
CRB2 (7D)
13.0 TIMING DIAGRAMS
RECEIVE SIDE D4 TIMING
FRAME#
RSYNC
RSYNC
RSYNC
RLCLK
4
RLINK
1
2
3
12 345 67891011121 23 45
NOTES:
1. RSYNC in the frame mode (RCR2.4=0) and double–wide frame sync is not enabled (RCR2.5=0).
2. RSYNC in the frame mode (RCR2.4=0) and double–wide frame sync is enabled (RCR2.5=1).
3. RSYNC in the multiframe mode (RCR2.4=1).
4. RLINK data (S–bit) is updated one bit prior to even frames and held for two frames.
RECEIVE SIDE ESF TIMING
FRAME#
1 2 3 4 5 6 7 8 91011121314151617
18 19 20 21 22 23 24
DS2141A
1
RSYNC
2
RSYNC
3
RSYNC
4
RLCLK
5
RLINK
6
RLCLK
7
RLINK
NOTES:
1. RSYNC in the frame mode (RCR2.4=0) and double–wide frame sync is not enabled (RCR2.5=0).
2. RSYNC in the frame mode (RCR2.4=0) and double–wide frame sync is enabled (RCR2.5=1).
3. RSYNC in the multiframe mode (RCR2.4=1).
4. ZBTSI mode disabled (RCR2.6=0).
5. RLINK data (FDL bits) is updated one bit time before odd frames and held for two frames.
6. ZBTSI mode is enabled (RCR2.6=1).
7. RLINK data (Z bits) is updated one bit time before odd frame and held for four frames.
1. RSER data in channels 1, 5, 9, 13, 17, 21, 25, and 29 are forced to 1; TSER data in these channels will be ignored.
2. RSYNC is in the output mode (RCR2.3=0).
3. RSYNC is in the input mode (RCR2.3=1).
4. RCHBLK is forced to 1 in the same channels as RSER (see Note 1).
021997 24/35
RECEIVE SIDE BOUNDARY TIMING (WITH ELASTIC STORE(S) DISABLED)
RCLK
RPOS
RNEG
1
,
LSBF MSBLSB MSBLSB MSB
CHANNEL 1CHANNEL 2
DS2141A
TSER/
1
RSER
RSYNC
RCHCLK
RCHBLK
RLCLK
RLINK
2
CHANNEL 23CHANNEL 24CHANNEL 1
LSB MSBLSBMSBF
NOTES:
1. There is a 13 RCLK delay from RPOS, RNEG to RSER.
2. RCHBLK is programmed to block Channel 24.
TRANSMIT SIDE D4 TIMING
FRAME#
TSYNC
TSYNC
1
2
1 2 34 567891011121 234 5
3
TSYNC
TLCLK
4
TLINK
NOTES:
1. TSYNC in the frame mode (TCR2.3=0) and double–wide frame sync is not enabled (TCR2.4=0).
2. TSYNC in the frame mode (TCR2.3=0) and double–wide frame sync is enabled (TCR2.4=1).
3. TSYNC in the multiframe mode (TCR2.3=1).
4. TLINK data (S–bit) is sampled during the F–bit position of even frames for insertion into the outgoing T1 stream
when enabled via TCR1.2.
021997 25/35
DS2141A
TRANSMIT SIDE ESF TIMING
FRAME#
TSYNC
TSYNC
TSYNC
TLCLK
5
TLINK
TLCLK
7
TLINK
1
2
3
4
6
1 2 3 4 5 6 7 8 9 101112131415161718192021222324
NOTES:
1. TSYNC in the frame mode (TCR2.3=0) and double–wide frame sync is not enabled (TCR2.4=0).
2. TSYNC in the frame mode (TCR2.3=0) and double–wide frame sync is enabled (TCR2.4=1).
3. TSYNC in the multiframe mode (TCR2.4=1).
4. ZBTSI mode disabled (TCR2.5=0).
5. TLINK data (FDL bits) is sampled during the F–bit time of odd frame and inserted into the outgoing T1 stream if
enabled via TCR1.2.
6. ZBTSI mode is enabled (TCR2.5=1).
7. TLINK data (Z bits) is sampled during the F–bit time of frame 1, 5, 9, 13, 17, and 21 and inserted into the outgoing
stream if enabled via TCR1.2.
021997 26/35
TRANSMIT SIDE BOUNDARY TIMING (WITH ELASTIC STORE(S) DISABLED)
TCLK
TSER
1
CHANNEL 1
LSB MSBLSBMSBF
CHANNEL 2
DS2141A
LSB MSB
TPOS,
1
TNEG
TSYNC
TSYNC
TCHCLK
TCHBLK
TLCLK
TLINK
CHANNEL 23
2
3
4
CHANNEL 24
Don’t Care
NOTES:
1. There is a 10 TCLK delay from TSER to TPOS, TNEG.
2. TSYNC is in the input mode (TCR2.2=0).
3. TSYNC is in the output mode (TCR2.2=1).
4. TCHBLK is programmed to block Channel 1.
LINE INTERFACE CONTROL TIMING
324 ns324 ns324 ns
CHANNEL 1
LSBMSBLSB MSB
F
LI_CS
LI_SCLK
1
LI_SDI
LI_SDI
2
00 0 0 00 0
00000110
1
CR0 CR1 CR2 CR3 CR4 CR5 CR6 CR7
CR0 CR1 CR2 CR3 CR4 CR5 CR6 CR7
NOTES:
1. A write to CRB1 will cause the DS2141A to output this sequence.
2. A write to CRB2 will cause the DS2141A to output this sequence.
3. Timing numbers are based on RCLK=1.544 MHz with 50% duty cycle.
021997 27/35
DS2141A
ABSOLUTE MAXIMUM RATINGS*
Voltage on Any Pin Relative to Ground–1.0V to +7.0V
Operating Temperature0°C to 70°C
Storage Temperature–55°C to +125°C
Soldering Temperature260°C for 10 seconds
* This is a stress rating only and functional operation of the device at these or any other conditions above those
indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating
conditions for extended periods of time may affect reliability.
RECOMMENDED DC OPERATION CONDITIONS(0°C to 70°C)
PARAMETERSYMBOLMINTYPMAXUNITSNOTES
Logic 1V
Logic 0V
SupplyV
DD
IH
IL
2.0V
–0.3+0.8V
4.55.5V
+0.3V
DD
CAPACITANCE
PARAMETERSYMBOLMINTYPMAXUNITSNOTES
Input CapacitanceC
Output CapacitanceC
IN
OUT
5pF
7pF
DC CHARACTERISTICS(0°C to 70°C; V
= 5V + 10%)
DD
PARAMETERSYMBOLMINTYPMAXUNITSNOTES
Supply CurrentI
Input LeakageI
Output LeakageI
Output Current (2.4V)I
Output Current (0.4V)I
DD
LO
OH
OL
IL
–1.0+1.0µA2
–1.0mA
+4.0mA
10mA1
1.0µA3
NOTES:
1. RCLK = TCLK = 1.544 MHz; VDD = 5.5V.
2. 0.0V < V
3. Applies to INT1
< VDD.
IN
and INT2 when 3–stated.
021997 28/35
DS2141A
AC CHARACTERISTICS – PARALLEL PORT(0°C to 70°C; V
= 5V + 10%)
DD
PARAMETERSYMBOLMINTYPMAXUNITSNOTES
Cycle Timet
CYC
Pulse Width, DS Low or RD HighPW
Pulse Width, DS High or RD LowPW
Input Rise/Fall TimestR, t
R/W Hold Timet
R/W Setup Time Before DS Hight
CS Setup Time Before DS, WR or
active
RD
CS Hold Timet
Read Data Hold Timet
Write Data Hold Timet
Muxed Address Valid to AS or
ALE fall
Muxed Address Hold Timet
Delay Time DS, WR or RD to AS
or ALE Rise
RWH
RWS
t
CH
DHR
DHW
t
ASL
AHL
t
ASD
Pulse Width AS or ALE HighPW
Delay Time, AS or ALE to DS,
or RD
WR
Output Data Delay Time from DS
or RD
Data Setup Timet
t
ASED
t
DDR
DSW
EL
EH
F
CS
ASH
250ns
150ns
100ns
30ns
10ns
50ns
20ns
0ns
1050ns
0ns
20ns
10ns
25ns
40ns
20ns
20100ns
80ns
021997 29/35
DS2141A
INTEL READ AC TIMING AC TIMING
PW
ALE
t
ASD
ASH
WR
t
ASD
PW
RD
EL
CS
t
ASL
AD0–AD7
INTEL WRITE AC TIMING
PW
ALE
t
ASD
ASH
t
t
AHL
t
CS
ASED
t
t
CYC
CYC
t
DDR
PW
EH
t
CH
t
DHR
RD
WR
CS
AD0–AD7
021997 30/35
t
ASD
t
ASL
PW
t
ASED
PW
EL
t
CS
t
AHL
EH
t
CH
t
DHW
t
DSW
MOTOROLA AC TIMING
AS
DS
R/W
t
ASD
PW
PW
EL
ASH
t
t
RWS
ASED
t
CYC
PW
DS2141A
EH
t
RWH
AD0–AD7
(READ)
CS
AD0–AD7
(WRITE)
t
ASL
t
ASL
t
t
AHL
AHL
t
DDR
t
CS
t
DSW
t
DHR
t
CH
t
DHW
AC CHARACTERISTICS – RECEIVE SIDE(0°C to 70°C; VDD = 5V ± 10%)
PARAMETERSYMBOLMINTYPMAXUNITSNOTES
RCLK and SYSCLK Periodt
RCLK and SYSCLK Pulse Widtht
CH
t
RPOS, RNEG, Setup to RCLK
t
Falling
RPOS, RNEG, Hold from RCLK
Falling
t
HD
RCLK Rise/Fall TimestR, t
Data Delayt
RSYNC Setup to
DD
t
SYSCLK Falling
RSYNC Pulse Widtht
PW
CL
SU
SU
P
50
50
25ns
25ns
F
25tCH–5ns
50ns
648ns
ns
ns
25ns
120ns
021997 31/35
DS2141A
RECEIVE SIDE AC TIMING
t
R
SYSCLK
RCLK
t
P
t
t
F
t
DD
CL
t
CH
RSER
RPOS,
RNEG
RCHCLK
RCHBLK
RSYNC
RSYNC
RLCLK
RLINK
F–BIT
t
t
DD
t
DD
1
t
SU
2
t
DD
t
DD
HD
t
SU
t
DD
t
PW
NOTES:
1. RSYNC is in the output mode (RCR2.3=0).
2. RSYNC is in the input mode (RCR2.3=1).
021997 32/35
DS2141A
AC CHARACTERISTICS – TRANSMIT SIDE(0° C to 70°C; VDD = 5V + 10%)
PARAMETERSYMBOLMINTYPMAXUNITSNOTES
TCLK Periodt
TCLK Pulse Widtht
CH
t
TSER, TSYNC, TLINK Setup to
t
TCLK Falling
TSER, TLINK Hold from TCLK
Falling
t
HD
TCLK Rise/Fall TimestR, t
Data Delayt
TSYNC Pulse Widtht