• 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
Loading...
+ 24 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.