|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
1 of 52 070299 features complete e1(cept) pcm-30/isdn-pri transceiver functionality onboard line interface for clock/data recovery and waveshaping 32-bit or 128-bit jitter attenuator generates line build-outs for both 120-ohm and 75-ohm lines frames to fas, cas, and crc4 formats dual onboard two-frame elastic store slip buffers that can 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 cas signaling detects and generates remote and ais alarms programmable output clocks for fractional e1, h0, and h12 applications fully independent transmit and receive functionality full access to both si and sa bits three separate loopbacks for testing large counters for bipolar and code violations, crc4 code word errors, fas errors, and e bits pin-compatible with ds2151q t1 single- chip transceiver 5v supply; low power cmos industrial grade version (-40 c to +85 c) available (DS2153QN) pin assignment description the ds2153q t1 single-chip transceiver (sct) contains all of the necessary functions for connection to e1 lines. the onboard clock/data recovery circuitry coverts the ami/hdb3 e1 waveforms to a nrz serial stream. the ds2153 automatically adjusts to e1 22 awg (0.6 mm) twisted-pair cables from 0 to 1.5 km. the device can generate the necessary g.703 waveshapes for both 75-ohm and 120-ohm cables. the onboard jitter attenuator (selectable to either 32 bits 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 signaling data, si, and sa-bit information. the device contains a set of 71 8-bit internal registers which the user can access to control the operation ds2153q e1 single-chip transceiver www.dalsemi.com parallel control port long & short haul line interface framer elastic stores functional blocks dallas ds2153q e1 sct actual size of 44-pin plcc ale wr rlink rlclk dvss rclk rchclk rser rsync rlos/lotc sysclk 39 38 37 36 35 34 33 32 31 30 29 7 8 9 10 11 12 13 14 15 16 17 tser tclk dvdd tsync tlink tlclk tchblk tring tvdd tvss ttip cs rd ad7 ad6 ad5 ad4 ad3 ad2 ad1 ad0 tchclk 18 19 20 21 22 23 24 25 26 27 28 6 5 4 3 2 1 44 43 42 41 40 rchblk aclki bts rtip rring rvdd rvss xtal1 xtal2 int1 int2
ds2153q 2 of 52 of the unit. quick access via the parallel control port allows a single micro to handle many e1 lines. the device fully meets all of the latest e1 specifications, including itu g.703, g.704, g.706, g.823, and i.431 as well as etsi 300 011, 300 233, tbr 12 and tbr 13. table of contents 1. introduction 2. parallel control port 3. control and test registers 4. status and information registers 5. error count registers 6. sa data link control and operation 7. signaling operation 8. transmit idle registers 9. clock blocking registers 10. elastic store operation 11. additional (sa) and international (si) bit operation 12. line interface control function 13. timing diagrams, synchronization flowchart, and transmit flow diagram 14. dc and ac characteristics 1.0 introduction the analog ami waveform off of the e1 line is transformer coupled into the rring and rtip pins of the ds2153q. 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 e1 data stream and an asynchronous backplane clock which is provided at the sysclk input. the transmit side of the ds2153q is totally independent from the receive side in both the clock requirements and characteristics. the transmit formatter will provide the necessary data overhead for e1 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 ds2153q will drive the e1 line from the ttip and tring pins via a coupling transformer. ds2153q 3 of 52 reader?s note this data sheet assumes a particular nomenclature of the e1 operating environment. there are 32 8-bit timeslots in e1 systems which are numbered 0 to 31. timeslot 0 is transmitted first and received first. these 32 timeslots are also referred to as channels with a numbering scheme of 1 to 32. timeslot 0 is identical to channel 1, timeslot 1 is identical to channel 2, and so on. each timeslot (or channel) is made up of 8 bits which are numbered 1 to 8. bit number 1 is the msb and is transmitted first. bit number 8 is the lsb and is transmitted last. throughout this data sheet, the following abbreviations will be used: fas frame alignment signal cas channel associated signaling mf multiframe si international bits crc4 cyclical redundancy check ccs common channel signaling sa additional bits e-bit crc4 error bits ds2153q 4 of 52 ds2153q block diagram figure 1-1 ds2153q 5 of 52 pin description table 1-1 pin symbol type description 1 2 3 4 ad4 ad5 ad6 ad7 i/o address/data bus . an 8-bit multiplexed address/data bus. 5 rd (ds) i read input (data strobe) . 6 cs i chip select . must be low to read or write the port. 7 ale(as) i address latch enable (address strobe) . a positive going edge serves to demultiplex the bus. 8 wr (r/ w ) i write input (read/write) . 9 rlink o receive link data . outputs the full receive data stream including the sa bits. see section 13 for timing details. 10 rlclk o receive link clock . 4 khz to 20 khz demand clock for the rlink output; controlled by rcr2. see section 13 for timing details. 11 dvss - digital signal ground . 0.0 volts. should be tied to local ground plane. 12 rclk o receive clock . recovered 2.048 mhz clock. 13 rchclk o receive channel clock . 256 khz clock which pulses high during the lsb of each channel. useful for parallel to serial conversion of channel data. see section 13 for timing details. 14 rser o receive serial data . received nrz serial data, updated on rising edges of rclk or sysclk. 15 rsync i/o receive sync . an extracted pulse, one rclk wide, is output at this pin which identifies either frame (rcr1.6=0) or multiframe boundaries (rcr1.6=1). if the elastic store is enabled via the rcr2.1, then this pin can be enabled to be an input via rcr1.5 at which a frame boundary pulse is applied. see section 13 for timing details. 16 rlos/lotc o receive loss of sync/loss of transmit clock . a dual function output. if tcr2.0=0, will toggle high when the synchronizer is searching for the e1 frame and multiframe; if tcr2.0=1, will toggle high if the tclk pin has not toggled for 5 m s. 17 sysclk i system clock . 1.544 mhz or 2.048 mhz clock. only used when the elastic store functions are enabled via rcr2.1. should be tied low in applications that do not use the elastic store. if tied high for at least 100 m s, will force all output pins (including the parallel port) to 3-state. ds2153q 6 of 52 pin symbol type description 18 rchblk o receive channel block . a user-programmable output that can be forced high or low during any of the 32 e1 channels. useful for blocking clocks to a serial uart or lapd controller in applications where not all e1 channels are used, such as fractional e1, 384 kbps service (h0), 1920 kbps (h12), or isdn-pri. also useful for locating individual channels in drop-and-insert applications. see section 13 for timing details. 19 aclki i alternate clock input . upon a receive carrier loss, the clock applied at this pin (normally 2.048 mhz) will be routed to the rclk pin. if no clock is routed to this pin, then it should be tied to dvss via a 1 k w resistor. 20 bts i bus type select . strap high to select motorola bus timing; strap low to select intel bus timing. this pin controls the function of the rd (ds), ale(as), and wr (r/ w ) pins. if bts=1, then these pins assume the function 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). 23 rvdd - receive analog positive supply . 5.0 volts. should be tied to dvdd and tvdd pins. 24 rvss - receive signal ground . 0.0 volts. should be tied to local ground plane. 25 26 xtal1 xtal2 - crystal connections . a pullable 8.192 mhz crystal must be applied to these pins. see section 12 for crystal specifications. 27 int1 o receive alarm interrupt 1 . flags host controller during alarm conditions defined in status register 1. active low, open drain output. 28 int2 o receive alarm interrupt 2 . flags host controller during conditions defined in status register 2. active low, open drain output. 29 ttip - transmit tip . analog line driver output; connects to a step-up transformer (see section 12 for details). 30 tvss - transmit signal ground . 0.0 volts. should be tied to local ground plane. 31 tvdd - transmit analog positive supply . 5.0 volts. should be tied to dvdd and rvdd pins. 32 tring - transmit ring . analog line driver outputs; connects to a step-up transformer (see section 12 for details). ds2153q 7 of 52 pin symbol type description 33 tchblk o transmit channel block . a user-programmable output that can be forced high or low during any of the 32 e1 channels. useful for blocking clocks to a serial uart or lapd controller in applications where not all e1 channels are used, such as fractional e1, 384 kbps service (h0), 1920 kbps (h12), or isdn-pri. also useful for locating individual channels in drop-and-insert applications. see section 13 for timing details. 34 tlclk o transmit link clock . 4 khz to 20 khz demand clock for the tlink input; controlled by tcr2. see section 13 for timing details. 35 tlink i transmit link data . if enabled, this pin will be sampled on the falling edge of tclk to insert the sa bits see section 13 for timing details. 36 tsync i/o transmit sync . a pulse at this pin will establish either frame or multiframe boundaries for the ds2153q. via tcr1.1, the ds2153q can be programmed to output either a frame or multiframe pulse at this pin. see section 13 for timing details. 37 dvdd - digital positive supply . 5.0 volts. should be tied to rvdd and tvdd pins. 38 tclk i transmit clock . 2.048 mhz primary clock. needed for proper operation of the parallel control port. 39 tser i transmit serial data . transmit nrz serial data, sampled on the falling edge of tclk. 40 tchclk o transmit channel clock . 256 khz clock which pulses high during the lsb of each channel. useful for parallel to serial conversion of channel data. see section 13 for timing details. 41 42 43 44 ad0 ad1 ad2 ad3 i/o address/data bus . a 8-bit multiplexed address/data bus. ds2153q 8 of 52 ds2153q register map address r/w register name address r/w register name 00 r bpv or code violation count 1 20 r/w transmit align frame 01 r bpv or code violation count 2 21 r/w transmit non-align frame 02 r crc4 count 1/fas error count 1 22 r/w transmit channel blocking 1 03 r crc4 error count 2 23 r/w transmit channel blocking 2 04 r e-bit count 1/fas error count 2 24 r/w transmit channel blocking 3 05 r e-bit count 2 25 r/w transmit channel blocking 4 06 r status 1 26 r/w transmit idle 1 07 r status 2 27 r/w transmit idle 2 08 r/w receive information 28 r/w transmit idle 3 10 r/w receive control 1 29 r/w transmit idle 4 11 r/w receive control 2 2a r/w transmit idle definition 12 r/w transmit control 1 2b r/w receive channel blocking 1 13 r/w transmit control 2 2c r/w receive channel blocking 2 14 r/w common control 1 2e r/w receive channel blocking 3 15 r/w test 1 2e r/w receive channel blocking 4 16 r/w interrupt mask 1 2f r receive align frame 17 r/w interrupt mask 2 18 r/w line interface control 19 r/w test 2 1a r/w common control 2 1b r/w common control 3 1e r synchronizer status 1f r receive non-align frame ds2153q 9 of 52 address r/w register name address r/w register name 30 r receive signaling 1 40 r/w transmit signaling 1 31 r receive signaling 2 41 r/w transmit signaling 2 32 r receive signaling 3 42 r/w transmit signaling 3 33 r receive signaling 4 43 r/w transmit signaling 4 34 r receive signaling 5 44 r/w transmit signaling 5 35 r receive signaling 6 45 r/w transmit signaling 6 36 r receive signaling 7 46 r/w transmit signaling 7 37 r receive signaling 8 47 r/w transmit signaling 8 38 r receive signaling 9 48 r/w transmit signaling 9 39 r receive signaling 10 49 r/w transmit signaling 10 3a r receive signaling 11 4a r/w transmit signaling 11 3b r receive signaling 12 4b r/w transmit signaling 12 3c r receive signaling 13 4c r/w transmit signaling 13 3d r receive signaling 14 4d r/w transmit signaling 14 3e r receive signaling 15 4e r/w transmit signaling 15 3f r receive signaling 16 4f r/w transmit signaling 16 note: the test registers 1 and 2 are used only by the factory; these registers must be cleared (set to all 0s) on power-up initialization to insure proper operation. 2.0 parallel port the ds2153q is controlled via a multiplexed bidirectional address/data bus by an external microcontroller or microprocessor. the ds2153q 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 ac electrical characteristics for more details. the multiplexed bus on the ds2153q 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 ds2153q 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 wr pulses. in a read cycle, the ds2153q outputs a byte of data during the latter portion of the ds or rd pulses. the 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. 3.0 control and test registers the operation of the ds2153q is configured via a set of seven registers. typically, the control registers are only accessed when the system is first powered up. once the ds2153q 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 register (rcr1 and rcr2), two transmit control registers (tcr1 and tcr2), and three common control registers (ccr1, ccr2 and ccr3). each of the seven registers are described in this section. the test registers at addresses 15 and 19 hex are used by the factory in testing the ds2153q. on power- up, the test registers should be set to 00 hex in order for the ds2153q to operate properly. ds2153q 10 of 52 rcr1: receive control register 1 (address=10 hex) (msb) (lsb) rsmf rsm rsio - - frc synce resync symbol position name and description rsmf rcr1.7 rsync multiframe function . only used if the rsync pin is programmed in the multiframe mode (rcr1.6=1). 0=rsync outputs cas multiframe boundaries 1=rsync outputs crc4 multiframe boundaries rsm rcr1.6 rsync mode select . 0=frame mode (see the timing in section 13) 1=multiframe mode (see the timing in section 13) rsio rcr1.5 rsync i/o select . 0=rsync is an output (depends on rcr1.6) 1=rsync is an input (only valid if elastic store enabled) (note: this bit must be set to 0 when rcr2.1=0) - rcr1.4 not assigned . should be set to 0 when written. - rcr1.3 not assigned . should be set to 0 when written. frc rcr1.2 frame resync criteria . 0=resync if fas received in error 3 consecutive times 1=resync if fas or bit 2 of non-fas is received in error 3 consecutive times synce rcr1.1 sync enable . 0=auto resync enabled 1=auto resync disabled resync rcr1.0 resync . when toggled from low to high, a resync is initiated. must be cleared and set again for a subsequent resync. sync/resync criteria table 3-1 frame or multiframe level sync criteria resync criteria itu spec. fas fas present in frames n and n + 2, and fas not present in frame n + 1. three consecutive incorrect fas received. alternate (rcr1.2=1) the above criteria is met or three consecutive incorrect bit 2 of non-fas received. g.706 4.1.1 4.1.2 crc4 two valid mf alignment words found within 8 ms. 915 or more crc4 code words out of 1000 received in error. g.706 4.2 4.3.2 cas valid mf alignment word found and previous time slot 16 contains code other than all 0s. two consecutive mf alignment words received in error. g.732 5.2 ds2153q 11 of 52 rcr2: receive control register 2 (address=11 hex) (msb) (lsb) sa8s sa7s sa6s sa5s sa4s rsclkm rese - symbol position name and description sa8s rcr2.7 sa8 bit select . set to 1 to report the sa8 bit at the rlink pin; set to 0 to not report the sa8 bit. sa7s rcr2.6 sa7 bit select . set to 1to report the sa7 bit at the rlink pin; set to 0 to not report the sa7 bit. sa6s rcr2.5 sa6 bit select . set to 1 to report the sa6 bit at the rlink pin; set to 0 to not report the sa6 bit. sa5s rcr2.4 sa5 bit select . set to 1 to report the sa5 bit at the rlink pin; set to 0 to not report the sa5 bit. sa4s rcr2.3 sa4 bit select . set to 1 to report the sa4 bit at the rlink pin; set to 0 to not report the sa4 bit. rsclkm rcr2.2 receive side sysclk mode select . 0=if sysclk is 1.544 mhz 1=if sysclk is 2.048 mhz rese rcr2.1 receive side elastic store enable . 0=elastic store is bypassed 1=elastic store is enabled - rcr2.0 not assigned . should be set to 0 when written. ds2153q 12 of 52 tcr1: transmit control register 1 (address=12 hex) (msb) (lsb) - tfpt t16s tua1 tsis tsa1 tsm tsio symbol position name and description - tcr1.7 not assigned . should be set to 0 when written to. tfpt tcr1.6 transmit timeslot 0 pass through . 0=fas bits/sa bits/remote alarm sourced internally from the taf and tnaf registers 1=fas bits/sa bits/remote alarm sourced from tser t16s tcr1.5 transmit timeslot 16 data select . 0=sample timeslot 16 at tser pin 1=source timeslot 16 from ts1 to ts16 registers tua1 tcr1.4 transmit unframed all 1s . 0=transmit data normally 1=transmit an unframed all 1?s code at tpos and tneg tsis tcr1.3 transmit international bit select . 0=sample si bits at tser pin 1=source si bits from taf and tnaf registers (in this mode, tcr1.6 must be set to 0) tsa1 tcr1.2 transmit signaling all 1s . 0=normal operation 1=force timeslot 16 in every frame to all 1s tsm tcr1.1 tsync mode select . 0=frame mode (see the timing in section 13) 1=cas and crc4 multiframe mode (see the timing in section 13) tsio tcr1.0 tsync i/o select . 0=tsync is an input 1=tsync is an output note: see figure 13-9 for more details about how the transmit control registers affect the operation of the ds2153q. ds2153q 13 of 52 tcr2: transmit control register 2 (address=13 hex) (msb) (lsb) sa8s sa7s sa6s sa5s sa4s - aebe p16f symbol position name and description sa8s tcr2.7 sa8 bit select . set to 1 to source the sa8 bit from the tlink pin; set to 0 to not source the sa8 bit. sa7s tcr2.6 sa7 bit select . set to 1 to source the sa7 bit from the tlink pin; set to 0 to not source the sa7 bit. sa6s tcr2.5 sa6 bit select . set to 1 to source the sa6 bit from the tlink pin; set to 0 to not source the sa6 bit. sa5s tcr2.4 sa5 bit select . set to 1 to source the sa5 bit from the tlink pin; set to 0 to not source the sa5 bit. sa4s tcr2.3 sa4 bit select . set to 1 to source the sa4 bit from the tlink pin; set to 0 to not source the sa4 bit. - tcr2.2 not assigned . should be set to 0 when written. aebe tcr2.1 automatic e-bit enable . 0=e-bits not automatically set in the transmit direction 1=e-bits automatically set in the transmit direction p16f tcr2.0 function of pin 16 . 0=receive loss of sync (rlos) 1=loss of transmit clock (lotc) ds2153q 14 of 52 ccr1: common control register 1 (address=14 hex) (msb) (lsb) flb thdb3 tg802 tcrc4 rsm rhdb3 rg802 rcrc4 symbol position name and description flb ccr1.7 framer loopback . 0=loopback disabled 1=loopback enabled thdb3 ccr1.6 transmit hdb3 enable . 0=hdb3 disabled 1=hdb3 enabled tg802 ccr1.5 transmit g.802 enable . see section 13 for details. 0=do not force tchblk high during bit 1 of timeslot 26 1=force tchblk high during bit 1 of timeslot 26 tcrc4 ccr1.4 transmit crc4 enable . 0=crc4 disabled 1=crc4 enabled rsm ccr1.3 receive signaling mode select . 0=cas signaling mode 1=ccs signaling mode rhdb3 ccr1.2 r eceive hdb3 enable . 0=hdb3 disabled 1=hdb3 enabled rg802 ccr1.1 receive g.802 enable . see section 13 for details. 0=do not force rchblk high during bit 1 of timeslot 26 1=force rchblk high during bit 1 of timeslot 26 rcrc4 ccr1.0 receive crc4 enable . 0=crc4 disabled 1=crc4 enabled framer loopback when ccr1.7 is set to a 1, the ds2153q will enter a framer loopback (flb) mode. this loopback is useful in testing and debugging applications. in flb, the ds2153q will loop data from the transmit side back to the receive side. when flb is enabled, the following will occur: 1. data will be transmitted as normal at ttip and tring 2. data off the e1 line at rtip and rring will be ignored 3. the rclk output will be replaced with the tclk input. ds2153q 15 of 52 ccr2: common control register 2 (address=1a hex) (msb) (lsb) ecus vcrfs aais ara rserc lotcmc rlb llb symbol position name and description ecus ccr2.7 error counter update select . 0=update error counters once a second 1=update error counters every 62.5 ms (500 frames) vcrfs ccr2.6 vcr function select . 0=count bipolar violations (bpvs) 1=count code violations (cvs) aais ccr2.5 automatic ais generation . 0=disabled 1=enabled ara ccr2.4 automatic remote alarm generation . 0=disabled 1=enabled rserc ccr2.3 rser control . 0=allow rser to output data as received under all conditions 1=force rser to 1 under loss of frame alignment conditions lotcmc ccr2.2 loss of transmit clock mux control . determines whether the transmit side formatter should switch to the ever present rclk if the tclk should fail to transition (see figure 1.1). 0=do not switch to rclk if tclk stops 1=switch to rclk if tclk stops rlb ccr2.1 remote loopback . 0=loopback disabled 1=loopback enabled llb ccr2.0 local loopback . 0=loopback disabled 1=loopback enabled remote loopback when ccr2.1 is set to a 1, the ds2153q will be forced into remote loopback (rlb). in this loopback, data recovered off of the e1 line from the rtip and rring pins will be transmitted back onto the e1 line (with any bpv?s that might have occurred intact) via the ttip and tring pins. data will continue to pass through the receive side of the ds2153q as it would normally and the data at the tser pin will be ignored. data in this loopback will pass through the jitter attenuator. please see figure 1.1 for more details. ds2153q 16 of 52 local loopback when ccr2.0 is set to a 1, the ds2153q 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. please see figure 1.1 for more details. automatic alarm generation when either ccr2.4 or ccr2.5 is set to 1, the ds2153q monitors the receive side to determine if any of the following conditions are present: loss of receive frame synchronization, ais alarm (all 1s) reception, or loss of receive carrier (or signal). if any one (or more) of the above conditions is present, then the ds2151q will either force an ais alarm (if ccr2.5=1) or a remote alarm (ccr2.4=1) to be transmitted via the ttip and tring pins. it is an illegal state to have both ccr2.4 and ccr2.5 set to 1 at the same time. ccr3: common control register 3 (address=1b hex) (msb) (lsb) tese tcbfs tirfs esr lirst - tsclkm - symbol position name and description tese ccr3.7 transmit elastic store enable. 0 = elastic store is disabled 1 = elastic store is enabled tcbfs ccr3.6 transmit channel blocking registers (tcbr) function select . 0=tcbrs define the operation of the tchblk output pin 1=tcbrs define which signaling bits are to be inserted tirfs ccr3.5 transmit idle registers (tir) function select . 0=tirs define in which channels to insert idle code 1=tirs define in which channels to insert data from rser esr ccr3.4 elastic stores reset . setting this bit from a 1 to a 0 will force the elastic stores to a known depth. should be toggled after sysclk has been applied and is stable. must be set and cleared again for a subsequent reset. do not leave this bit set high. lirst ccr3.3 line interface reset . setting this bit from a 0 to a 1 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. - ccr3.2 not assigned . should be set to 0 when written. tsclkm ccr3.1 transmit backplane clock select. must be set like rcr2.2. 0 = 1.544 mhz 1 = 2.048 mhz - ccr3.0 not assigned . should be set to 0 when written. ds2153q 17 of 52 power-up sequence on power-up, after the supplies are stable, the ds2153q should be configured for operation by writing to all of the internal registers (this includes the test registers) since the contents of the internal registers cannot be predicted on power-up. next, the lirst bit should be toggled from 0 to 1 to reset the line interface circuitry (it will take the ds2153q about 40 ms to recover from the lirst bit being toggled). finally, after the sysclk input is stable, the esr bit should be toggled from a 0 to a 1 and back to 0 (this step can be skipped if the elastic store is not being used). 4.0 status and information registers there is a set of four registers that contain information on the current real time status of the ds2153q, status register 1 (sr1), status register 2 (sr2), receive information register (rir), and synchronizer status register (ssr). when a particular event has occurred (or is occurring), the appropriate bit in one of these four registers will be set to a 1. all of the bits in these registers operate in a latched fashion (except for the ssr). 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 if the alarm is still present. the user will always precede a read of the sr1, sr2, and rir registers with a write. the byte written to the register will inform the ds2153q 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 bit does indeed clear. this second write step is necessary because the alarms and events in the status registers occur asynchronously in respect to their access via the parallel port. this write-read-write 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 ds2153q with higher-order software languages. the ssr register operates differently than the other three. it is a read-only register and it reports the status of the synchronizer in real time. this register is not latched and it is not necessary to precede a read of this register with a write. 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. ds2153q 18 of 52 rir: receive information register (address=08 hex) (msb) (lsb) tesf tese jalt resf rese crcrc fasrc casrc symbol position name and description tesf rir.7 transmit elastic store full. set when the elastic store fills and a frame is deleted. tese rir.6 transmit elastic store empty. set when the elastic store empties and a frame is repeated. jalt rir.5 jitter attenuator limit trip . set when the jitter attenuator fifo reaches to within 4-bits of its limit; useful for debugging jitter attenuation operation. resf rir.4 elastic store full . set when the elastic store buffer fills and a frame is deleted. rese rir.3 elastic store empty . set when the elastic store buffer empties and a frame is repeated. crcrc rir.2 crc resync criteria met. set when 915/1000 code words are received in error. fasrc rir.1 fas resync criteria met . set when three consecutive fas words are received in error. casrc rir.0 cas resync criteria met . set when two consecutive cas mf alignment words are received in error. ds2153q 19 of 52 ssr: synchronizer status register (address=1e hex) (msb) (lsb) csc5 csc4 csc3 csc2 csc0 fassa cassa crc4sa symbol position name and description csc5 ssr.7 crc4 sync counter bit 5 . msb of the 6-bit counter. csc4 ssr.6 crc4 sync counter bit 4 . csc3 ssr.5 crc4 sync counter bit 3 . csc2 ssr.4 crc4 sync counter bit 2 . csc0 ssr.3 crc4 sync counter bit 0 . lsb of the 6-bit counter. the next to lsb bit is not accessible. this bit will toggle each time the crc4 mf search times out at 8 ms. fassa ssr.2 fas sync active . set while the synchronizer is searching for alignment at the fas level. cassa ssr.1 cas mf sync active . set while the synchronizer is searching for the cas mf alignment word. crc4sa ssr.0 crc4 mf sync active . set while the synchronizer is searching for the crc4 mf alignment word. crc4 sync counter the crc4 sync counter increments each time the 8 ms crc4 multiframe search times out. the counter is cleared when the ds2153q has successfully obtained synchronization at the crc4 level. the counter can also be cleared by disabling the crc4 mode (ccr1.0=0). this counter is useful for determining the amount of time the ds2153q has been searching for synchronization at the crc4 level. annex b of ccitt g.706 suggests that if synchronization at the crc4 level cannot be obtained within 400 ms, then the search should be abandoned and proper action taken. the crc4 sync counter will rollover. ds2153q 20 of 52 sr1: status register 1 (address=06 hex) (msb) (lsb) rsa1 rdma rsa0 rslip rua1 rra rcl rlos symbol position name and description rsa1 sr1.7 receive signaling all 1s . set when the contents of timeslot 16 contains less than three 0s over 16 consecutive frames. this alarm is not disabled in the ccs signaling mode. rdma sr1.6 receive distant mf alarm . set when bit 6 of timeslot 16 in frame 0 has been set for two consecutive multiframes. this alarm is not disabled in the ccs signaling mode. rsa0 sr1.5 receive signaling all 0s . set when over a full mf, timeslot 16 contains all 0s. rslip sr1.4 receive elastic store slip occurrence . set when the elastic store has either repeated or deleted a frame of data. rua1 sr1.3 receive unframed all 1s . set when an unframed all 1s code is received at rtip and rring. rra sr1.2 receive remote alarm . set when a remote alarm is received at rtip and rring. rcl sr1.1 receive carrier loss . set when 255 consecutive 0s have been detected at rtip and rring. rlos sr1.0 receive loss of sync . set when the device is not synchronized to the receive e1 stream. alarm criteria table 4-1 alarm set criteria clear criteria ccitt spec. rsa1 (receive signaling all 1s) over 16 consecutive frames (one full mf) timeslot 16 contains less than three 0s over 16 consecutive frames (one full mf) timeslot 16 contains three or more 0s g.732 4.2 rsa0 (receive signaling all 0s) over 16 consecutive frames (one full mf) timeslot 16 contains all 0s over 16 consecutive frames (one full mf) timeslot 16 contains at least a single 1 g.732 5.2 rdma (receive distant multiframe alarm) bit 6 in timeslot 16 of frame 0 set to 1 for two consecutive mf bit 6 in timeslot 16 of frame 0 set to 0 for a two consecutive mf o.162 2.1.5 rua1 (receive unframed all 1s) less than three 0s in two frames (512 bits) more than two 0s in two frames (512 bits) o.162 1.6.1.2 ds2153q 21 of 52 rra (receive remote alarm) bit 3 of non-align frame set to 1 for three consecutive occasions bit 3 of non-align frame set to 0 for three consecutive occasions o.162 2.1.4 rcl (receive carrier loss) 255 consecutive 0s received in 255-bit times, at least 32 1s are received g.775 sr2: status register 2 (address=07 hex) (msb) (lsb) rmf raf tmf sec taf lotc rcmf tslip symbol position name and description rmf sr2.7 receive cas multiframe . set every 2 ms (regardless if cas signaling is enabled or not) on receive multiframe boundaries. used to alert the host that signaling data is available. raf sr2.6 receive align frame . set every 250 ms at the beginning of align frames. used to alert the host that si and sa bits are available in the raf and rnaf registers. tmf sr2.5 transmit multiframe . set every 2 m s (regardless if crc4 is enabled) on transmit multiframe boundaries. used to alert the host that signaling data needs to be updated. sec sr2.4 1-second timer . set on increments of 1 second based on rclk. if ccr2.7=1, then this bit will be set every 62.5 ms instead of once a second. taf sr2.3 transmit align frame . set every 250 m s at the beginning of align frames. used to alert the host that the taf and tnaf registers need to be updated. lotc sr2.2 loss of transmit clock . set when the tclk pin has not transitioned for one channel time (or 3.9 m s). will force pin 16 high if enabled via tcr2.0. based on rclk. rcmf sr2.1 receive crc4 multiframe . set on crc4 multiframe boundaries; will continue to be set every 2 ms on an arbitrary boundary if crc4 is disabled. tslip sr2.0 transmit elastic store slip. set when the elastic store has either repeated or deleted a frame of data. ds2153q 22 of 52 imr1: interrupt mask register1 (address=16 hex) (msb) (lsb) rsa1 rdma rsa0 rslip rua1 rra rcl rlos symbol position name and description rsa1 imr1.7 receive signaling all 1s . 0=interrupt masked 1=interrupt enabled rdma imr1.6 receive distant mf alarm . 0=interrupt masked 1=interrupt enabled rsa0 imr1.5 receive signaling all 0s . 0=interrupt masked 1=interrupt enabled rslip imr1.4 receive elastic store slip occurrence . 0=interrupt masked 1=interrupt enabled rua1 imr1.3 receive unframed all 1s . 0=interrupt masked 1=interrupt enabled rra imr1.2 receive remote alarm . 0=interrupt masked 1=interrupt enabled rcl imr1.1 receive carrier loss . 0=interrupt masked 1=interrupt enabled rlos imr1.0 receive loss of sync . 0=interrupt masked 1=interrupt enabled ds2153q 23 of 52 imr2: interrupt mask register 2 (address=17 hex) (msb) (lsb) rmf raf tmf sec taf lotc rcmf tslip symbol position name and description rmf imr2.7 receive cas multiframe . 0=interrupt masked 1=interrupt enabled raf imr2.6 receive align frame . 0=interrupt masked 1=interrupt enabled tmf imr2.5 transmit multiframe . 0=interrupt masked 1=interrupt enabled sec imr2.4 1-second timer . 0=interrupt masked 1=interrupt enabled taf imr2.3 transmit align frame . 0=interrupt masked 1=interrupt enabled lotc imr2.2 loss of transmit clock . 0=interrupt masked 1=interrupt enabled rcmf imr2.1 receive crc4 multiframe . 0=interrupt masked 1=interrupt enabled tslip imr2.0 transmit side elastic store slip. 0 = interrupt masked 1 = interrupt enabled 5.0 error count registers there are a set of four counters in the ds2153q that record bipolar or code violations, errors in the crc4 smf code words, e bits as reported by the far end, and word errors in the fas. each of these four counters are automatically updated on either 1-second boundaries (ccr2.7=0) or every 62.5 ms (ccr2.7=1) as determined by the timer in status register 2 (sr2.4). hence, these registers contain performance data from either the previous second or the previous 62.5 ms. the user can use the interrupt from the timer to determine when to read these registers. the user has a full second (or 62.5 ms) to read the counters before the data is lost. 5.1 bpv or code violation counter violation count register 1 (vcr1) is the most significant word and vcr2 is the least significant word of a 16-bit counter that records either bipolar violations (bpvs) or code violations (cvs). if ccr2.6=0, ds2153q 24 of 52 then the vcr counts bipolar violations. bipolar violations are defined as consecutive marks of the same polarity. in this mode, if the hdb3 mode is set for the receive side via ccr1.2, then hdb3 code words are not counted as bpvs. if ccr2.6=1, then the vcr counts code violations as defined in ccitt o.161. code violations are defined as consecutive bipolar violations of the same polarity. in most applications, the ds2153q should be programmed to count bpvs when receiving ami code and to count cvs when receiving hdb3 code. this counter increments at all times and is not disabled by loss of sync conditions. the counter saturates at 65,535 and will not rollover. the bit error rate on an e1 line would have to be greater than 10**-2 before the vcr would saturate. vcr1: upper bipolar violation count register 1 (address=00 hex) vcr2: lower bipolar violation count register 2 (address=01 hex) (msb) (lsb) v15 v14 v13 v12 v11 v10 v9 v8 vcr1 v7 v6 v5 v4 v3 v2 v1 v0 vcr2 symbol position name and description v15 vcr1.7 msb of the 16-bit bipolar or code violation count v0 vcr2.0 lsb of the 16-bit bipolar or code violation count 5.2 crc4 error counter crc4 count register 1 (crccr1) is the most significant word and crccr2 is the least significant word of a 10-bit counter that records word errors in the cyclic redundancy check 4 (crc4). since the maximum crc4 count in a 1-second period is 1000, this counter cannot saturate. the counter is disabled during loss of sync at either the fas or crc4 level; it will continue to count if loss of multiframe sync occurs at the cas level. crccr1: crc4 count register 1 (address=02 hex) crccr2: crc4 count register 2 (address=03 hex) (msb) (lsb) (note 1) (note 1) (note 1) (note 1) (note 1) (note 1) crc9 crc8 crccr1 crc7 crc6 crc5 crc4 crc3 crc2 crc1 crc0 crccr2 symbol position name and description crc9 crccr1.1 msb of the 10-bit crc4 error count crc0 crccr2.0 lsb of the 10-bit crc4 error count notes: 1. the upper 6 bits of crccr1 at address 02 are the most significant bits of the 12-bit fas error counter. 5.3 e-bit counter e-bit count register 1 (ebcr1) is the most significant word and ebcr2 is the least significant word of a 10-bit counter that records far end block errors (febe) as reported in the first bit of frames 13 and 15 ds2153q 25 of 52 on e1 lines running with crc4 multiframe. these count registers will increment once each time the received e-bit is set to 0. since the maximum e-bit count in a 1-second period is 1000, this counter cannot saturate. the counter is disabled during loss of sync at either the fas or crc4 level; it will continue to count if loss of multiframe sync occurs at the cas level. ebcr1: e-bit count register 1 (address=04 hex) ebcr2: e-bit count register 2 (address=05 hex) (msb) (lsb) (note 1) (note 1) (note 1) (note 1) (note 1) (note 1) eb9 eb8 ebcr1 eb7 eb6 eb5 eb4 eb3 eb2 eb1 eb0 ebcr2 symbol position name and description eb9 ebcr1.1 msb of the 10-bit e-bit count eb0 ebcr2.0 lsb of the 10-bit e-bit count notes: 1. the upper 6 bits of ebcr1 at address 04 are the least significant bits of the 12-bit fas error counter. 5.4 fas bit error counter fas count register 1 (fascr1) is the most significant word and fascr2 is the least significant word of a 12-bit counter that records word errors in the frame alignment signal in timeslot 0. this counter is disabled during loss of synchronization conditions, (rlos = 1). since the maximum fas word error count in a 1-second period is 4000, this counter cannot saturate. fascr1: fas bit count register 1 (address=02 hex) fascr2: fas bit count register 2 (address=04 hex) (msb) (lsb) fas11 fas10 fas9 fas8 fas7 fas6 (note 2) (note 2) fascr1 fas5 fas4 fas3 fas2 fas1 fas0 (note 1) (note 1) fascr2 symbol position name and description fas11 fascr1.7 msb of the 12-bit fas error count fas0 fascr2.2 lsb of the 12-bit fas error count notes: 1. the lower 2 bits of fascr1 at address 02 are the most significant bits of the 10-bit crc4 error counter. 2. the lower 2 bits of fascr2 at address 04 are the most significant bits of the 10-bit e-bit counter. 6.0 sa data link control and operation the ds2153q provides for access to the proposed e1 performance monitor data link in the sa bit positions. the device allows access to the sa bits either via a set of two internal registers (rnaf and tnaf) or via two external pins (rlink and tlink). ds2153q 26 of 52 on the receive side, the sa bits are always reported in the internal rnaf register (see section 11 for more details). all five sa bits are always output at the rlink pin. see section 13 for detailed timing. via rcr2, the user can control the rlclk pin to pulse during any combination of sa bits. this allows the user to create a clock that can be used to capture the needed sa bits. on the transmit side, the individual sa bits can be either sourced from the internal tnaf register (tcr1.6=0) or from the external tlink pin. via tcr2, the ds2153q can be programmed to source any combination of the additional bits from the tlink pin. if the user wishes to pass the sa bits through the ds2153q without them being altered, then the device should be set up to source all five sa bits via the tlink pin and the tlink pin should be tied to the tser pin. please see the timing diagrams and the transmit data flow diagram in section 13 for examples. 7.0 signaling operation the channel associated signaling (cas) bits embedded in the e1 stream can be extracted from the receive stream and inserted into the transmit stream by the ds2153q. each of the 30 channels has four signaling bits (a/b/c/d) associated with it. the numbers in parenthesis () are the channel associated with a particular signaling bit. the channel numbers have been assigned as described in the itu documents. for example, channel 1 is associated with timeslot 1 and channel 30 is associated with timeslot 31. there is a set of 16 registers for the receive side (rs1 to rs16) and 16 registers on the transmit side (ts1 to ts16). the signaling registers are detailed below. ds2153q 27 of 52 rs1 to rs16: receive signaling registers (address=30 to 3f hex) (msb) (lsb) 0 0 0 0 x y x x rs1 (30) a(1) b(1) c(1) d(1) a(16) b(16) c(16) d(16) rs2 (31) a(2) b(2) c(2) d(2) a(17) b(17) c(17) d(17) rs3 (32) a(3) b(3) c(3) d(3) a(18) b(18) c(18) d(18) rs4 (33) a(4) b(4) c(4) d(4) a(19) b(19) c(19) d(19) rs5 (34) a(5) b(5) c(5) d(5) a(20) b(20) c(20) d(20) rs6 (35) a(6) b(6) c(6) d(6) a(21) b(21) c(21) d(21) rs7 (33) a(7) b(7) c(7) d(7) a(22) b(22) c(22) d(22) rs8 (37) a(8) b(8) c(8) d(8) a(23) b(23) c(23) d(23) rs9 (38) a(9) b(9) c(9) d(9) a(24) b(24) c(24) d(24) rs10 (39) a(10) b(10) c(10) d(10) a(25) b(25) c(25) d(25) rs11 (3a) a(11) b(11) c(11) d(11) a(26) b(26) c(26) d(26) rs12 (3b) a(12) b(12) c(12) d(12) a(27) b(27) c(27) d(27) rs13 (3c) a(13) b(13) c(13) d(13) a(28) b(28) c(28) d(28) rs14 (3d) a(14) b(14) c(14) d(14) a(29) b(29) c(29) d(29) rs15 (3e) a(15) b(15) c(15) d(15) a(30) b(30) c(30) d(30) rs16 (3f) symbol position name and description x rs1.0/1/3 spare bits y rs1.2 remote alarm bit (integrated and reported in sr1.6) a(1) rs2.7 signaling bit a for channel 1 d(30) rs16.0 signaling bit d for channel 30 each receive signaling register (rs1 to rs16) reports the incoming signaling from two timeslots. 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 user has a full 2 ms to retrieve the signaling bits before the data is lost. the rs registers are updated under all conditions. their validity should be qualified by checking for synchronization at the cas level. in ccs signaling mode, rs1 to rs16 can also be used to extract signaling information. via the sr2.7 bit, the user will be informed when the signaling registers have been loaded with data. the user has 2 ms to retrieve the data before it is lost. ds2153q 28 of 52 ts1 to ts16: transmit signaling registers (address=40 to 4f hex) (msb) (lsb) 0 0 0 0 x y x x ts1 (40) a(1) b(1) c(1) d(1) a(31) b(16) c(16) d(16) ts2 (41) a(2) b(2) c(2) d(2) a(32) b(17) c(17) d(17) ts3 (42) a(3) b(3) c(3) d(3) a(33) b(18) c(18) d(18) ts4 (43) a(4) b(4) c(4) d(4) a(34) b(19) c(19) d(19) ts5 (44) a(5) b(5) c(5) d(5) a(35) b(20) c(20) d(20) ts6 (45) a(6) b(6) c(6) d(6) a(36) b(21) c(21) d(21) ts7 (43) a(7) b(7) c(7) d(7) a(37) b(22) c(22) d(22) ts8 (47) a(8) b(8) c(8) d(8) a(38) b(23) c(23) d(23) ts9 (48) a(9) b(9) c(9) d(9) a(39) b(24) c(24) d(24) ts10 (49) a(10) b(10) c(10) d(10) a(40) b(25) c(25) d(25) ts11 (4a) a(11) b(11) c(11) d(11) a(41) b(26) c(26) d(26) ts12 (4b) a(12) b(12) c(12) d(12) a(42) b(27) c(27) d(27) ts13 (4c) a(13) b(13) c(13) d(13) a(43) b(28) c(28) d(28) ts14 (4d) a(14) b(14) c(14) d(14) a(44) b(29) c(29) d(29) ts15 (43) a(15) b(15) c(15) d(15) a(45) b(30) c(30) d(30) ts16 (4f) symbol position name and description x ts1.0/1/3 spare bits y ts1.2 remote alarm bit a(1) ts2.7 signaling bit a for channel 1 d(30) ts16.0 signaling bit d for channel 30 each transmit signaling register (ts1 to ts16) contains the cas bits for two timeslots that will be inserted into the outgoing stream if enabled to do so via tcr1.5. on multiframe boundaries, the ds2153q 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 bit in status register 2 (sr2.5) to know when to update the signaling bits. the bit will be set every 2 ms and the user has 2 ms to update the tsrs before the old data will be retransmitted. the ts1 register is special because it contains the cas multiframe alignment word in its upper nibble. the upper nibble must always be set to 0000, or else the terminal at the far end will lose multiframe synchronization. if the user wishes to transmit a multiframe alarm to the far end, then the ts1.2 bit should be set to a 1. if no alarm is to be transmitted, then the ts1.2 bit should be cleared. the three remaining bits in ts1 are the spare bits. if they are not used, they should be set to 1. in ccs signaling mode, ts1 to ts16 can also be used to insert signaling information. via the sr2.5 bit, the user will be informed when the signaling registers need to be loaded with data. the user has 2 ms to load the data before the old data will be retransmitted. via the ccr3.6 bit, the user has the option to use the transmit channel blocking registers (tcbrs) to determine on a channel by channel basis which signaling bits are ds2153q 29 of 52 to be inserted via the tsrs (the corresponding bit in the tcbrs=1) and which are to be sourced from the tser pin (the corresponding bit in the tcbrs=0). see the transmit data flow diagram in section 13 for more details. 8.0 transmit idle registers there is a set of five registers in the ds2153q that can be used to custom tailor the data that is to be transmitted onto the e1 line, on a channel by channel basis. each of the 32 e1 channels can be forced to have a user defined idle code inserted into them. tir1/tir2/tir3/tir4: transmit idle registers (address=26 to 29 hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 tir1 (26) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 tir2 (27) ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 tir3 (28) ch32 ch31 ch30 ch29 ch28 ch27 ch26 ch25 tir4 (29) symbol position name and description ch32 tir4.7 transmit idle registers . 0=do not insert the idle code into this channel ch1 tir1.0 1=insert the idle code into this channel note: if ccr3.5=1, then a 0 in the tirs implies that channel data is to be sourced from tser and a 1 implies that channel data is to be sourced from the rser pin. tidr: transmit idle definition register (address=2a hex) (msb) (lsb) tidr7 tidr6 tidr5 tidr4 tidr3 tidr2 tidr1 tidr0 symbol position name and description tidr7 tidr.7 msb of the idle code tidr0 tidr.0 lsb of the idle code each of the bit positions in the transmit idle registers (tir1/tir2/tir3/tir4) represent a timeslot in the outgoing frame. when these bits are set to a 1, the corresponding channel will transmit the idle code contained in the transmit idle definition register (tidr). in the tidr, the msb is transmitted first. via the ccr3.5 bit, the user has the option to use the tirs to determine on a channel by channel basis, if data from the rser pin should be substituted for data from the tser pin. in this mode, if the corresponding bit in the tirs is set to 1, then data will be sourced from the rser pin. if the corresponding bit in the tirs is set to 0, then data for that channel will sourced from the tser pin. see the transmit data flow diagram in section 13 for more details. ds2153q 30 of 52 9.0 clock blocking registers the receive channel blocking registers (rcbr1/rcbr2/rcbr3/rcbr4) and the transmit channel blocking registers (tcbr1/tcbr2/tcbr3/tcbr4) 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 individual channels. these outputs can be used to block clocks to a usart or lapd controller in 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. the tcbrs have an alternate mode of use. via the ccr3.6 bit, the user has the option to use the tcbrs to determine on a channel by channel basis, which signaling bits are to be inserted via the tsrs (the corresponding bit in the tcbrs=1) and which are to be sourced from the tser pin (the corresponding bit in the tcbr=0). see the transmit data flow diagram in section 13 for more details. rcbr1/rcbr2/rcbr3/rcbr4: receive channel blocking registers (address=2b to 2e hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 rcbr1 (2b) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 rcbr2 (2c) ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 rcbr3 (2d) ch32 ch31 ch30 ch29 ch28 ch27 ch26 ch25 rcbr4 (2e) symbol position name and description ch32 rcbr4.7 receive channel blocking registers . 0=force the rchblk pin to remain low during this channel time ch1 rcbr1.0 1=force the rchblk pin high during this channel time tcbr1/tcbr2/tcbr3/tcbr4: transmit channel blocking registers (address=22 to 25 hex) (msb) (lsb) ch8 ch7 ch6 ch5 ch4 ch3 ch2 ch1 tcbr1 (22) ch16 ch15 ch14 ch13 ch12 ch11 ch10 ch9 tcbr2 (23) ch24 ch23 ch22 ch21 ch20 ch19 ch18 ch17 tcbr3 (24) ch32 ch31 ch30 ch29 ch28 ch27 ch26 ch25 tcbr4 (25) symbol position name and description ch32 tcbr4.7 transmit channel blocking registers . 0=force the tchblk pin to remain low during this channel time ch1 tcbr1.0 1=force the tchblk pin high during this channel time ds2153q 31 of 52 note: if ccr3.6=1, then a 0 in the tcbrs implies that signaling data is to be sourced from tser and a 1 implies that signaling data for that channel is to be sourced from the transmit signaling (ts) registers. see definition below. tcbr1/tcbr2/tcbr3/tcbr4: definition when ccr3.6 = 1 (msb) (lsb) ch20 ch4 ch19 ch3 ch18 ch2 ch17* ch1* tcbr1 ch24 ch8 ch23 ch7 ch22 ch6 ch21 ch5 tcbr2 ch28 ch12 ch27 ch11 ch26 ch10 ch25 ch9 tcbr3 ch32 ch16 ch31 ch15 ch30 ch14 ch29 ch13 tcbr4 * = ch1 and ch17 should be set to 1 to allow the internal ts1 register to create the cas multiframe alignment word and spare/remote alarm bits. 10.0 elastic store operation the ds2153q has an onboard two-frame (512 bits) elastic store. this elastic store can be enabled via rcr2.1. if the elastic store is enabled (rcr2.1=1), then the user must provide either a 1.544 mhz (rcr2.2=0) or 2.048 mhz (rcr2.2=1) clock at the sysclk pin. if the elastic store is enabled, then the user has the option of either providing a frame sync at the rsync pin (rcr1.5=1) or having the rsync pin provide a pulse on frame or multiframe boundaries (rcr1.5=0). if the user wishes to obtain pulses at the frame boundary, then rcr1.6 must be set to 0, and if the user wishes to have pulses occur at the multiframe boundary, then rcr1.6 must be set to 1. if the user selects to apply a 1.544 mhz clock to the sysclk pin, then every fourth channel will be deleted and the f-bit position inserted (forced to 1). hence channels 1, 5, 9, 13, 17, 21, 25, and 29 (timeslots 0, 4, 8, 12, 16, 20, 24, and 28) will be deleted. also, in 1.544 mhz applications, the rchblk output will not be active in channels 25 through 32 (or in other words, rcbr4 is not active). see section 13 for more details. if the 512-bit elastic buffer either fills or empties, a controlled slip will occur. if the buffer empties, then a full frame of data (256 bits) will be repeated at rser and the sr1.4 and rir.3 bits will be set to a 1. 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 1. 11.0 additional (sa) and international (si) bit operation the ds2153q provides for access to both the additional (sa) and international (si) bits. on the receive side, the raf and rnaf registers will always report the data as it received in the additional and international bit locations. the raf and rnaf registers are updated with the setting of the receive align frame bit in status register 2 (sr2.6). the host can use the sr2.6 bit to know when to read the raf and rnaf registers. it has 250 m s to retrieve the data before it is lost. on the transmit side, data is sampled from the taf and tnaf registers with the setting of the transmit align frame bit in status register 2 (sr2.3). the host can use the sr2.3 bit to know when to update the taf and tnaf registers. it has 250 m s to update the data or else the old data will be retransmitted. data in the si bit position will be overwritten if either the ds2153q is programmed: (1) to source the si bits from the tser pin, (2) in the crc4 mode, or (3) have automatic e-bit insertion enabled. data in the sa bit position will be overwritten if any of the tcr2.3 to tcr2.7 bits are set to 1. please see the register descriptions for tcr1 and tcr2 and the transmit data flow diagram in section 13 for more details. ds2153q 32 of 52 raf: receive align frame register (address=2f hex) (msb) (lsb) si 0 0 1 1 0 1 1 symbol position name and description si raf.7 international bit. 0 raf.6 frame alignment signal bit. 0 raf.5 frame alignment signal bit. 1 raf.4 frame alignment signal bit. 1 raf.3 frame alignment signal bit. 0 raf.2 frame alignment signal bit. 1 raf.1 frame alignment signal bit. 1 raf.0 frame alignment signal bit. rnaf: receive non-align frame register (address=1f hex) (msb) (lsb) si 1 a sa4 sa5 sa6 sa7 sa8 symbol position name and description si rnaf.7 international bit. 1 rnaf.6 frame non-alignment signal bit. a rnaf.5 remote alarm. sa4 rnaf.4 additional bit 4. sa5 rnaf.3 additional bit 5. sa6 rnaf.2 additional bit 6. sa7 rnaf.1 additional bit 7. sa8 rnaf.0 additional bit 8. ds2153q 33 of 52 t af: transmit align frame register (address=20 hex) (msb) (lsb) si 0 0 1 1 0 1 1 symbol position name and description si taf.7 international bit. 0 taf.6 frame alignment signal bit. 0 taf.5 frame alignment signal bit. 1 taf.4 frame alignment signal bit. 1 taf.3 frame alignment signal bit. 0 taf.2 frame alignment signal bit. 1 taf.1 frame alignment signal bit. 1 taf.0 frame alignment signal bit. tnaf: transmit non-align frame register (address=21 hex) (msb) (lsb) si 1 a sa4 sa5 sa6 sa7 sa8 symbol position name and description si tnaf.7 international bit. 1 tnaf.6 frame non-alignment signal bit. a tnaf.5 remote alarm. sa4 tnaf.4 additional bit 4. sa5 tnaf.3 additional bit 5. sa6 tnaf.2 additional bit 6. sa7 tnaf.1 additional bit 7. sa8 tnaf.0 additional bit 8. 12.0 line interface functions the line interface function in the ds2153q contains three sections: (1) the receiver which handles clock and data recovery, (2) the transmitter which waveshapes and drives the e1 line, and (3) the jitter attenuator. each of these three sections is controlled by the line interface control register (licr), which is described below. ds2153q 34 of 52 licr: line interface control register (address=18 hex) (msb) (lsb) l2 l1 l0 egl jas jabds dja tpd licr symbol position name and description lb2 licr.7 line build out bit 2 . transmit waveshape setting; see table 12.2. lb1 licr.6 line build out bit 1 . transmit waveshape setting; see table 12.2. lb0 licr.5 line build out bit 0 . transmit waveshape setting; see table 12.2. egl licr.4 receive equalizer gain limit . 0 = -12 db 1 = -30 db jas licr.3 jitter attenuator select . 0=place the jitter attenuator on the receive side 1=place the jitter attenuator on the transmit side jabds licr.2 jitter attenuator buffer depth select . 0=128 bits 1=32 bits (use for delay sensitive applications) dja licr.1 disable jitter attenuator . 0=jitter attenuator enabled 1=jitter attenuator disabled tpd licr.0 transmit power down . 0=normal transmitter operation 1=powers down the transmitter and 3-states the ttip and tring pins 12.1 receive clock and data recovery the ds2153q contains a digital clock recovery system. see the ds2153q block diagram in section 1 and figure 12.1 for more details. the ds2153q couples to the receive e1 shielded twisted pair or coax via a 1:1 transformer. see table 12.3 for transformer details. the ds2153q automatically adjusts to the e1 signal being received at the rtip and rring pins and can handle e1 twisted pair cables of 0.6 mm (22 awg) from 0 to 1.5 km in length. the crystal attached at the xtal1 and xtal2 pins is multiplied by 4 via an internal pll and fed to the clock recovery system. the clock recovery system uses both edges of the clock from the pll circuit to form a 32 times oversampler which is used to recover the clock and data. this oversampling technique offers outstanding jitter tolerance (see figure 12.2). normally, the clock that is output at the rclk pin is the recovered clock from the e1 ami/hdb3 waveform presented at the rtip and rring inputs. when no ami signal is present at rtip and rring, a receive carrier loss (rcl) condition will occur and the rclk can be sourced from either the aclki ds2153q 35 of 52 pin or from the crystal attached to the xtal1 and xtal2 pins. the ds2153q will sense the aclki pin to determine if a clock is present. if no clock is applied to the aclki pin, then it should be tied to rvss to prevent the device from falsely sensing a clock. see table 12.1. if the jitter attenuator is either placed in the transmit path or is disabled, the rclk output can exhibit short high cycles of the clock. this is due to the highly oversampled digital clock recovery circuitry. if the jitter attenuator is placed in the receive path (as is the case in most applications), the jitter attenuator restores the rclk to being close to 50% duty cycle. please see the receive ac timing characteristics in section 14 for more details. source of rclk upon rcl table 12-1 aclki present? receive side jitter attenuator transmit side jitter attenuator yes aclki via the jitter attenuator aclki no centered crystal tclk via the jitter attenuator 12.2 transmit waveshaping and line driving the ds2153q uses a set of laser-trimmed delay lines along with a precision digital-to-analog converter (dac) to create the waveforms that are transmitted onto the e1 line. the waveforms created by the ds2153q meet the itu specifications. see figure 12.3. the user will select which waveform is to be generated by properly programming the l2/l1/l0 bits in the line interface control register (licr). the ds2153q can set up in a number of various configurations depending on the application. see table 12.2 and figure 12.1. line build out select in licr table 12-2 l2 l1 l0 application transformer return loss rt 0 0 0 75-ohm normal 1:1.15 step-up nm 0 ohms 0 0 1 120-ohm normal 1:1.15 step-up nm 0 ohms 0 1 0 75-ohm normal with protection resistors 1:1.15 step-up nm 8.2 ohms 0 1 1 120-ohm normal with protection resistors 1:1.15 step-up nm 8.2 ohms 1 0 0 75-ohm with high return loss 1:1.15 step-up 21 db 27 ohms 1 1 0 75-ohm with high return loss 1:1.36 step-up 21 db 18 ohms 1 0 0 120-ohm with high return loss 1:1.36 step-up 21 db 27 ohms nm=not meaningful due to the nature of the design of the transmitter in the ds2153q, very little jitter (less then 0.00 5uipp broadband from 10 hz to 100 khz) is added to the jitter present on tclk. also, the waveforms that they create are independent of the duty cycle of tclk. the transmitter in the ds2153q couples to the e1 transmit shielded twisted pair or coax via a 1:1.15 or 1:1.36 step up transformer as shown in figure 12.1. in order for the devices to create the proper waveforms, this transformer used must meet the specifications listed in table 12.3. ds2153q 36 of 52 transformer specifications table 12-3 specification recommended value turns ratio 1:1 (receive) and 1:1.15 or 1:1.36 (transmit) 5% primary inductance 600 m h minimum leakage inductance 1.0 m h maximum interwinding capacitance 60 pf maximum dc resistance 1.2 ohms maximum 12.3 jitter attenuator the ds2153q contains an onboard jitter attenuator that can be set to a depth of either 32 or 128 bits via the jabds bit in the line interface control register (licr). the 128-bit mode is used in applications where large excursions of wander are expected. the 32-bit mode is used in delay-sensitive applications. the characteristics of the attenuation are shown in figure 12.4. the jitter attenuator can be placed in either the receive path or the transmit path by appropriately setting or clearing the jas bit in the licr. also, the jitter attenuator can be disabled (in effect, removed) by setting the dja bit in the licr. in order for the jitter attenuator to operate properly, a crystal with the specifications listed in table 12.4 below must be connected to the xtal1 and xtal2 pins. the jitter attenuator divides the clock provided by the 8.192 mhz crystal at the xtal1 and xtal2 pins to create an output clock that contains very little jitter. onboard circuitry will pull the crystal (by switching in or out load capacitance) to keep it long-term averaged to the same frequency as the incoming e1 signal. if the incoming jitter exceeds either 120 uipp (buffer depth is 128 bits) or 28 uipp (buffer depth is 32 bits), then the ds2153q will divide the attached crystal by either 3.5 or 4.5 instead of the normal 4 to keep the buffer from overflowing. when the device divides by either 3.5 or 4.5, it also sets the jitter attenuator limit trip (jalt) bit in the receive information register (rir.5). crystal specifications guidelines table 12-4 parameter specification parallel resonant frequency 8.192 mhz mode fundamental load capacitance 18 pf to 20 pf (18.5 pf nominal) tolerance 50 ppm pullability cl=10 pf, delta frequency=+175 to +250 ppm cl=45 pf, delta frequency=-175 to -250 ppm effective series resistance 30 ohms maximum crystal cut at ds2153q 37 of 52 ds2153q external analog connections figure 12-1 notes: 1. all resistor values are 1%. 2. the rt resistors are used to increase the transmitter return loss or to protect the device from over- voltage. 3. the rr resistors are used to terminate the receive e1 line. 4. for 75-ohm termination, rr=37.5 ohms/for 12- ohm termination rr=60 ohms. 5. see the separate application note for details on how to construct a protected interface. ds2153q jitter tolerance figure 12-2 ds2153q 38 of 52 ds2153q transmit waveform template figure 12-3 ds2153q jitter attenuation figure 12-4 ds2153q 39 of 52 13.0 timing diagrams/synchronization flowchart/transmit data flow diagram receive side timing figure 13-1 notes: 1. rsync in the frame mode (rcr1.6=0). 2. rsync in the multiframe mode (rcr1.6=1). 3. rlclk is programmed to output just the sa4 bit. 4. rlink will always output all five sa bits as well as the rest of the receive data stream. 5. this diagram assumes the cas mf begins with the fas word. receive side boundary timing (with elastic stores disabled) figure 13-2 notes: 1. rchblk is programmed to block channel 2. 2. rlink is programmed to output the sa4 bits. 3. rlink is programmed to output the sa4 and sa8 bits. 4. rlink is programmed to output the sa5 and sa7 bits. 5. shown is a non-align frame boundary. ds2153q 40 of 52 1.544 mhz boundary timing with elastic store(s) enabled figure 13-3 notes: 1. data from the e1 channels 1, 5, 9, 13, 17, 21, 25, and 29 is dropped (channel 2 from the e1 link is mapped to channel 1 of the t1 link, etc.) and the f-bit position is added (forced to 1). 2. rsync is in the output mode (rcr1.5=0). 3. rsync is in the input mode (rcr1.5=1). 4. rchblk is programmed to block channel 24. 2.048 mhz boundary timing with elastic store(s) enabled figure 13-4 notes: 1. rsync is in the output mode (rcr1.5=0). 2. rsync is in the input mode (rcr1.5=1). 3. rchblk is programmed to block channel 1. ds2153q 41 of 52 transmit side timing figure 13-5 notes: 1. tsync in the frame mode (tcr1.1=0). 2. tsync in the multiframe mode (tcr1.1=1). 3. tlink is programmed to source only the sa4 bit. 4. this diagram assembles both the cas mf and the crc4 begin with the align frame. transmit side boundary timing figure 13-6 notes: 1. tsync is in the input mode (tcr1.0=0). 2. tsync is in the output mode (tcr1.0=1). 3. tchblk is programmed to block channel 2. 4. tlink is programmed to source the sa4 bits. 5. tlink is programmed to source the sa7 and sa8 bits. 6. shown is a non-align frame boundary. 7. see figures 13.3 and 13.4 for details on timing with the transmit side elastic store enabled. ds2153q 42 of 52 g.802 timing figure 13-7 note: 1. rchblk or tchblk is programmed to pulse high during timeslots 1 to 15, 17 to 25, and during bit 1 of timeslot 26. ds2153q 43 of 52 ds2153q synchronization flowchart figure 13-8 ds2153q 44 of 52 ds2153q transmit data flow figure 13-9 note: 1. tclk must be tied to rclk (or sysclk if the elastic store is enabled) and tsync must be tied to rsync for data to be properly sourced from rser. ds2153q 45 of 52 absolute maximum ratings* voltage on any pin relative to ground -1.0v to +7.0v operating temperature 0 c to 70 c (-40 c to +85 c for DS2153QN) storage temperature -55 c to +125 c soldering temperature 260 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 (0 c to 70 c) operation conditions (-40 c to +85 c for DS2153QN) parameter symbol min typ max units notes logic 1 v ih 2.0 v dd +0.3 v logic 0 v il -0.3 +0.8 v supply for ds2153q v dd 4.75 5.25 v 1 supply for DS2153QN v dd 4.80 5.25 v 1 capacitance (t a =25 c) parameter symbol min typ max units notes input capacitance c in 5 pf output capacitance c out 7 pf dc (0 c to 70 c; v dd =5v 5%) characteristics (-40 c to +85 c; v dd =5v +5%/-4% for DS2153QN) parameter symbol min typ max units notes supply current @ 5v i dd 60 ma 2 input leakage i il -1.0 +1.0 m a 3 output leakage i lo 1.0 m a 4 output current (2.4v) i oh -1.0 ma output current (0.4v) i ol +4.0 ma notes: 1. applies to rvdd, tvdd, and dvdd. 2. tclk=2.048 mhz. 3. 0.0v < v in < v dd . 4. applies to int1 and int2 when 3-stated. ds2153q 46 of 52 ac characteristics - (0 c to 70 c; v dd =5v 5%) parallel port (-40 c to +85 c; v dd =5v +5%/-4% for DS2153QN) parameter symbol min typ max units notes cycle time t cyc 250 ns pulse width, ds low or rd high pw el 150 ns pulse width, ds high or rd low pw eh 100 ns input rise/fall time t r , t f 30 ns r/ w hold time t rwh 10 ns r/ w setup time before ds high t rws 50 ns cs setup time before ds, wr or rd active t cs 20 ns cs hold time t ch 0 ns read data hold time t dhr 10 50 ns write data hold time t dhw 0 ns muxed address valid to as or ale fall t asl 20 ns muxed address hold time t ahl 10 ns delay time ds, wr or rd to as or ale rise t asd 25 ns pulse width as or ale high pw ash 40 ns delay time, as or ale to ds, wr or rd t ased 20 ns output data delay time from ds or rd t ddr 20 100 ns data setup time t dsw 80 ns ds2153q 47 of 52 intel read bus ac timing figure 14-1 intel write bus ac timing figure 14-2 motorola bus ac timing figure 14-3 ds2153q 48 of 52 ac characteristics - (0 c to 70 c; v dd =5v 5%) receive side (-40 c to +85 c; v dd =5v +5%/-4% for DS2153QN) parameter symbol min typ max units notes aclki/rclk period t cp 488 ns rclk pulse width t ch t cl 180 180 244 244 ns ns 1 rclk pulse width t ch t cl 90 200 244 244 ns ns 2 sysclk period t sp t sp 648 488 ns ns 3 4 sysclk pulse width t sh t sl 50 50 ns rsync set up to sysclk falling t su 25 t sh -5 ns rsync pulse width t pw 50 ns sysclk rise/fall times t r , t f 25 ns delay rclk or sysclk to rser valid t dd 70 ns delay rclk or sysclk to rchclk t d1 50 ns delay rclk or sysclk to rchblk t d2 50 ns delay rclk or sysclk to rsync t d3 50 ns delay rclk to rlclk t d4 50 ns delay rclk to rlink valid t d5 50 ns notes: 1. jitter attenuator enabled in the receive side path. 2. jitter attenuator disabled or enabled in the transmit path. 3. sysclk=1.544 mhz. 4. sysclk=2.048 mhz. ds2153q 49 of 52 receive side ac timing figure 14-4 notes: 1. rsync is in the output mode (rcr1.5=0). 2. rsync is in the input mode (rcr1.5=1). 3. rlclk and rlink only have a timing relationship to rclk; no timing relationship between rlclk/rlink and rsync is implied. 4. rclk can exhibit a short high time if the jitter attenuator is either disabled or in the transmit path. ds2153q 50 of 52 ac characteristics - (0 c to 70 c; v dd =5v 5%) transmit side (-40 c to +85 c; v dd =5v +5%/-4% for DS2153QN) parameter symbol min typ max units notes tclk period t p 488 ns tclk pulse width t ch t cl 75 75 ns ns tser, tlink set up to tclk falling t su 25 ns 1 tser, tlink hold from tclk falling t hd 25 ns 1 tsync setup to tclk falling t hd 25 t ch -5 ns tsync pulse width t pw 25 ns tclk rise/fall times t r , t f 25 ns delay tclk to tchclk t d1 50 ns delay tclk to tchblk t d2 50 ns delay tclk to tsync t d3 50 ns delay tclk to tlclk t d4 50 ns notes: 1. if the transmit side elastic store is enabled, then tser is sampled on the falling edge of sysclk and the parameters t su and t hd still apply. ds2153q 51 of 52 transmit side ac timing figure 14-5 notes: 1. tsync is in the output mode (tcr1.0=1). 2. tsync is in the input mode (tcr1.0=0). 3. no timing relationship between tsync and tlclk/tlink is implied. 4. tser is sampled on the falling edge of sysclk if the transmit side elastic store is enabled. ds2153q 52 of 52 ds2153q e1 single-chip transceiver 44-pin plcc note 1: pin 1 identifier to be located in zone indicated. inches dim min max a 0.165 0.180 a1 0.090 0.120 a2 0.020 - b 0.026 0.033 b1 0.013 0.021 c 0.009 0.012 ch1 0.042 0.048 d 0.685 0.695 d1 0.650 0.656 d2 0.590 0.630 e 0.685 0.695 e1 0.650 0.656 e2 0.590 0.630 e1 0.050 bsc n 44 - |
Price & Availability of DS2153QN |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |