• Simple serial interface used for device configuration
and control in processor mode
• Hardware mode requires no host processor;
intended for stand-alone applications
• Comprehensive, on-chip alarm generation, alarm
detection, and error logging logic
• Shares footprint with DS2180A T1 Transceiver
• Companion to DS2175 T1/CEPT Elastic Store,
DS2186 Transmit Line Interface, DS2187 Receive
Line Interface, and DS2188 Jitter Attenuator
• 5V supply; low-power CMOS technology
DESCRIPTION
The DS2181A is designed for use in CEPT networks
and supports all logical requirements of CCITT Red
Book Recommendations G.704, G.706 and G.732. The
transmit side generates framing patterns and CRC4
codes, formats outgoing channel and signalling data,
and produces network alarm codes when enabled. The
receive side decodes the incoming data and establishes frame, CAS multiframe, and CRC4 multiframe
alignments. Once synchronized, the device extracts
channel, signalling, and alarm data.
A serial port allows access to 14 on-chip control and status registers in the processor mode. In this mode, a host
processor controls features such as error logging, perchannel code manipulation, and alteration of the receive
synchronizer algorithm.
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.
041995 1/32
DS2181A
The hardware mode is intended for preliminary system
prototyping and/or retrofitting into existing systems.
DS2181A BLOCK DIAGRAM Figure 1
TCLK
TFSYNC
TMSYNC
TSER
TSD
TIND
TXD
SPS
CS
SCLK
SDI
SDO
TRANSMIT
TIMING
SERIAL PORT/
HARDWARE
MODE CONTROL
LOGIC
ALIGN WORD
GENERAT OR
ALARM
GENERAT OR
CONTROL, STATUS AND ALARM
This mode requires no host processor and disables
special features available in the processor mode.
5TSERITransmit Serial Data. NRZ data input, sampled on falling edges of TCLK.
6TMOOTransmit Multiframe Out. Output of multiframe counter; high during frame 0, low
7TXDITransmit Extra Data. Sampled on falling edge of TCLK during bit times 5, 7, and 8
8TSTSOTransmit Signalling Timeslot. High during timeslot 16 of every frame, low other-
9TSDITransmit Signalling Data. CAS signalling data input; sampled on falling edges of
10TINDITransmit International and National Data. Sampled on falling edge of TCLK dur-
11TAFOTransmit Alignment Frame. High during frames containing the frame alignment
1213TPOS
TNEG
CRC4 multiframe. Can be tied low, allowing internal multiframe counter to run free.
boundaries. Can be tied low, allowing TMSYNC to establish frame boundaries.
Useful for parallel-to-serial conversion of channel data.
otherwise.
of timeslot 16 in frame 0 when CAS signalling is enabled.
wise.
TCLK for insertion into outgoing timeslot 16 when enabled.
ing bit 1 time of timeslot 0 every frame (international) and/or during bit times 4
through 8 of timeslot 0 during non-align frames (national) when enabled.
signal, low otherwise.
OTransmit Bipolar Data Outputs. Updated on rising edge of TCLK.
DS2181A
SYNCHRONIZER STATUS PIN (44–PIN PLCC ONLY) Table 2A
PIN SYMBOL TYPEDESCRIPTION
3RMSAOReceive Multiframe Search Active. This pin will transition high when the synchro-
nizer searching for the CAS multiframe alignment word is active.
6RFSAOReceive Frame Search Active. This pin will transition high when the synchronizer
searching for the FAS is active.
25RCTOOReceive CRC4 Time Out. This pin will transition high when the RCTO counter
reaches its maximum count of 32. The pin will return low when either the
DS2181AQ reaches CRC4 multiframe synchronization, or if CRC4 is disabled via
CRC.2, or if the device is issued a hardware reset via the RST
pin.
28RCSAOReceive CRC4 Search Active. This pin will transition high when the synchronizer
searching for the CRC4 multiframe alignment word is active.
NOTES:
1. These output status pins are only available on the DS2181AQ.
2. If the TEST pin is tied low and CCR.1=0, then these pins will be tri–stated.
26RSEROReceive Serial Data. Received NRZ data, updated on rising edges of RCLK.
27RFSYNCOReceive Frame Sync. Trailing edge indicates start of frame.
28RMSYNCOReceive Multiframe Sync. Low-high transition indicates start of CAS multiframe;
29RSDOReceive Signalling Data. Extracted timeslot 16 data; updated on rising edge of
30RSTSOReceive Signalling Timeslot. High during timeslot 16 of every frame, low other-
31RCSYNCOReceive CRC4 Sync. Low-high transition indicates start of CRC4 multiframe; held
33RSTIReset. Must be asserted during device power-up and when changing to/from the
3435RPOS
RNEG
36RCLOReceive Carrier Loss. Low-high transition indicates loss of carrier.
37RBVOReceive Bipolar Violation. Pulses high during detected bipolar violations.
38RFEROReceive Frame Error . Pulses high when frame alignment, CAS multiframe align-
39RLOSOReceive Loss of Sync. Indicates synchronizer status; high when frame, CAS and/
alarm cleared.
low when alarm cleared.
signal, low otherwise.
serial-to-parallel conversion of channel data.
held high during frame 0.
RCLK.
wise.
high during CRC4 frames 0 thru 7 and held low during frames 8 through 15.
hardware mode.
IReceive Bipolar Data. Sampled on falling edges of RCLK. Tie together to receive
NRZ data and disable BPV monitor circuitry.
ment or CRC4 words received in error.
or CRC4 multiframe search underway, low otherwise.
PORT PIN DESCRIPTION (40–PIN DIP ONLY) Table 3
PIN SYMBOL TYPEDESCRIPTION
14INTOReceive Alarm Interrupt. Flags host controller during alarm conditions. Active low;
15SDIISerial Data In. Data for on-chip control registers; sampled on rising edge of SCLK.
16SDOOSerial Data Out. Control and status data from on-chip registers. Updated on falling
17CSIChip Select. Must be low to write or read the serial port.
18SCLKISerial Data Clock. Used to write or read the serial port registers.
19SPSISerial Port Select. Tie to VDD to select the serial port. Tie to VSS to select the
041995 4/32
open drain output.
edge of SCLK; tri-stated during port write or when CS
hardware mode.
is high.
POWER AND TEST PIN DESCRIPTION (40–PIN DIP ONLY) T able 4
PINSYMBOLTYPEDESCRIPTION
20V
SS
–Signal Ground. 0.0 volts.
32TESTITest Mode. Tie to VSS to select the old DS2181 sync algorithm and to tri–
state the synchronizer status pins on the DS2181AQ. Tie to V
new DS2181A sync algorithm and activate the synchronizer status pins on the
to select the
DD
DS2181AQ.
40V
DD
–Positive Supply. 5.0 volts.
REGISTER SUMMARY Table 5
REGISTERADDRESST/R
RIMR0000RReceive Interrupt Mask Register . Allows masking of alarm
CECR0011RCRC4 Error Count Register. 8-bit presettable counter which
FECR0100RFrame Error Count Register. 8-bit presettable counter which
RCR0101RReceive Control Register. Establishes receive side operating
CCR0110T/RCommon Control Register. Establishes additional operating
TCR0111TTransmit Control Register. Establishes transmit side operation
TIR1
TIR2
TIR3
TIR4
1000
1001
1010
1011
TINR1100TTransmit International and National Register. When enabled
TXR1101TTransmit Extra Register. When enabled via the TCR, contents
1
DESCRIPTION/FUNCTION
generated interrupts.
2
Receive Status Register. Reports all receive alarm conditions.
which records individual bipolar violations.
records individual errors.
logs individual errors in the received frame alignment signal.
characteristics.
characteristics for transmit and receive sides.
characteristics.
TTransmit Idle Registers. Designates which outgoing timeslots
are to be substituted with idle code.
via the TCR, contents inserted into the outgoing national and/or
international bit positions.
inserted into the out going extra bit positions.
DS2181A
NOTES:
1. Transmit or receive side register .
2. RSR is a read-only register; all other registers are read/write.
3. Reserved bit locations must be programmed to 0.
041995 5/32
DS2181A
SERIAL PORT INTERFACE
Pins 14 through 18 of the DS2181A serve as a microprocessor/microcontroller-compatible serial port. Fourteen
on-chip registers allow the user to update operational
characteristics and monitor device status via a host controller, minimizing hardware interfaces.
Port read/write timing is unrelated to the chip transmit
and receive timing, allowing asynchronous reads and/
or writes by the host. The timing set is identical to that of
8051-type microcontrollers operating in serial port
mode 0. For proper operation of the port and the transmit and receive registers, the user should provide TCLK
and RCLK as well as SCLK.
ADDRESS/COMMAND
An address/command byte write must precede any
read or write of the port registers. The first bit written
(LSB) of the address/command byte specifies read or
write. The following nibble identifies register address.
The next two bits are reserved and must be set to zero
for proper operation. The last bit of the address/command word enables the burst mode when set; the burst
mode allows consecutive reading or writing of all register data. Data is written to and read from the port LSB
first.
CHIP SELECT AND CLOCK CONTROL
All data transfers are initiated by driving the CS input
low. Data is sampled on the rising edge of SCLK. Data is
output on the falling edge of SCLK and held to the next
falling edge. All data transfers are terminated and SDO
tri-stated when CS returns to high.
CLOCKS
T o access the serial port registers both TCLK and RCLK
are required along with the SCLK. The TCLK and RCLK
are used to internally access the transmit and receive
registers, respectively. The CCR is considered a receive register for this purpose.
DATA I/O
Following the eight SCLK cycles that input the address/
command byte, data at SDI is strobed into the addressed register on the next eight SCLK cycles (register
write) or data is presented at SDO on the next eight
SCLK cycles (register read). SDO is tri-stated during
writes and may be tied to SDI in applications where the
host processor has bidirectional I/O capability.
BURST MODE
The burst mode allows all on-chip registers to be consecutively read or written by the host processor. This
feature minimizes device initialization time on system
power-up or reset. Burst mode is initiated when ACB.7
is set and the address nibble is 0000.
be read or written during the burst mode. If CS
tions high before the burst is complete, data validity is
not guaranteed.
All registers must
transi-
041995 6/32
ACB: ADDRESS COMMAND BYTE Figure 2
(MSB)(LSB)
BM––ADD3ADD2ADD1ADD0R/W
SYMBOLPOSITIONNAME AND DESCRIPTION
BMACB.7Burst Mode. If set (and ACB.1 through ACB.4 = 0), burst read or write is
enabled.
–ACB.6Reserved; must be 0 for proper operation.
–ACB.5Reserved; must be 0 for proper operation.
ADD3ACB.4MSB of register address.
ADD2ACB.3
ADD1ACB.2
ADD0ACB.1LSB of register address.
R/WACB.0Read/Write Select.
0 = Write address register.
1 = Read address register.
SERIAL PORT READ/WRITE Figure 3
DS2181A
CS
SCLK
SDI,SDO
ADD0 ADD1 ADD2 ADD300BMD0D1D2D3D4D5D6D7R/W
ADDRESS/COMMANDDATA INPUT/OUTPUT
NOTES:
1. SDI sampled on rising edge of SCLK.
2. SDO updated on falling edge of SCLK.
041995 7/32
DS2181A
TCR: TRANSMIT CONTROL REGISTER Figure 4
(MSB)(LSB)
TUA1TSSTSMINBSNBSXBSTSA1ODM
SYMBOLPOSITIONNAME AND DESCRIPTION
TUA1TCR.7Transmit Unframed All 1’s.
0 = Normal operation.
1 = Replace outgoing data at TPOS and TNEG with unframed all 1’s code.
TSSTCR.6Transmit Signalling Select
0 = Signalling data embedded in the serial bit stream is sampled at TSER
during timeslot 16.
1 = Signalling data is channel associated and sampled at TSD as shown in
Table 6.
0 = Sample international bit at TIND.
1 = Outgoing international bit = TINR.7.
NBSTCR.3National Bit Select
0 = Sample national bits at TIND.
1 = Source outgoing national bits from TINR.4 through TINR.0.
XBSTCR.2Extra Bit Select
0 = Sample extra bits at TXD.
1 = Source extra bits from TXR.0 through TXR.1 and TXR.3.
TSA1TCR.1Transmit Signalling All 1’s
0 = Normal operation.
1 = Force contents of timeslot 16 in all frames to all 1’s.
ODMTCR.0Output Data Mode
0 = TPOS and TNEG outputs are 100% duty cycle.
1 = TPOS and TNEG outputs are 50% duty cycle.
1
1
NOTE:
1. When the common channel signalling mode is enabled (TCR.5 = 1), the TSD input is disabled internally; all
timeslot 16 data is sampled at TSER.
041995 8/32
CCR: COMMON CONTROL REGISTER Figure 5
(MSB)(LSB)
–TAFPTHDERHDETCERCESASLLB
SYMBOLPOSITIONNAME AND DESCRIPTION
–CCR.7Reserved; must be 0 for proper operation.
TAFPCCR.6Transmit Align Frame Position
When clear, the CAS multiframe begins with a frame containing the frame
alignment signal. When set, the CAS multiframe begins with a frame not
containing the frame alignment signal.
THDECCR.5Transmit HDB3 Enable
0 = Outgoing data at TPOS and TNEG is AMI coded.
1 = Outgoing data at TPOS and TNEG is HDB3 coded.
RHDECCR.4Receive HDB3 Enable
0 = Incoming data at RPOS and RNEG is AMI coded.
1 = Incoming data is RPOS and RNEG is HDB3 coded.
TCECCR.3Transmit CRC4 Enable
When set, outgoing international bit positions in frames 0 through 12 and 14
are replaced by CRC4 multiframe alignment and checksum words.
RCECCR.2Receive CRC4 Enable
0 = Disable CRC4 multiframe synchronizer.
1 = Enable CRC4 synchronizer; search for CRC4 multiframe alignment
once frame alignment complete.
SASCCR.1Sync Algorithm Select
0 = Use old DS2181 sync algorithm
1 = Use new DS2181A sync algorithm
LLBCCR.0Local Loopback
0 = Normal operation.
1 = Internally loop TPOS, TNEG, and TCLK to RPOS, RNEG, and RCLK.
1
DS2181A
NOTES:
1. This bit must be cleared when CRC4 multiframe mode is enabled (CCR.3 = 1); its state does not affect CCS
framing (RCR.5 = 1).
2. CCR is considered a receive register and operates from RCLK and SCLK.
041995 9/32
DS2181A
RCR: RECEIVE CONTROL REGISTER Figure 6
(MSB)(LSB)
––RSMCMSCCMRCFRCSYNCERESYNC
SYMBOLPOSITIONNAME AND DESCRIPTION
–RCR.7Reserved; must be 0 for proper operation.
–RCR.6Reserved; must be 0 for proper operation.
0 = Declare sync when fixed sync criteria met.
1 = Declare sync when fixed criteria are met and two additional consecutive
valid multiframe alignment signals are detected.
CMRCRCR.3CAS Multiframe Resync Criteria
0 = Utilize only fixed resync criteria.
1 = Resync if fixed criteria met and/or if two consecutive timeslot 16 words
have values of 0 in the first four MSB positions (0000xxxx).
FRCRCR.2Frame Resync Criteria
0 = Utilize only fixed resync criteria.
1 = Resync if fixed criteria met and/or if bit 2 in timeslot 0 of non-align frames
is received in error on three consecutive occasions.
SYNCERCR.1Sync Enable
If clear, the synchronizer will automatically begin resync if error criteria are
met. If high, no auto resync occurs.
RESYNCRCR.0Resync
When toggled low to high, the receive synchronizer will initiate immediately .
The bit must be cleared, then set again for subsequent resyncs.
CEPT FRAME STRUCTURE
The CEPT frame is made up of 32 8-bit channels (timeslots) numbered from 0 to 31. The frame alignment signal in bit positions 2 through 8 of timeslot 0 of every other
frame is independent of the various multiframe modes
described below. Outputs T AF and RAF indicate frames
which contain the alignment signal. Timeslot 0 of frames
not containing the frame alignment signal is used for
alarm and national data. See the separate DS2181A
CEPT Transceiver Application Note for more details.
CAS SIGNALLING
CEPT networks support Channel Associated Signalling
(CAS) or Common Channel Signalling (CCS). These
041995 10/32
signalling modes are independently selectable for
transmit and receive sides.
CAS (selected when TCR.5 = 0 and/or when RCR.5 = 0)
is a bit-oriented signalling technique which utilizes a
16-frame multiframe. The multiframe alignment signal
(0-hex), extra and alarm bits occupy timeslot 16 of frame
0. Timeslot 16 of the remaining 15 frames is reserved for
channel signalling data. Four signalling bits (A, B, C and
D) are transmitted once per multiframe as shown in Figure 7. Input TMSYNC establishes the transmitted CAS
multiframe position. Signalling data can be sourced
from input TSD (TCR.6 = 1) or multiplexed into TSER
(TCR.6 = 0).
Loading...
+ 22 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.