SUBSCRIBER LINE INTERFACE MODEM

Abstract: The subscriber line interface modem is for use in a telecommunications system line interface module which also includes subscriber signaling and switching circuits and a control microprocessor. The modem comprises bus inter­ facing means, channel means and clock supply means. The interfacing means receives address data and control in­ formation from the microprocessor and despatches address, data and control information to the microprocessor for evaluation. The channel means includes a non-return to zero/conditional diphase modulation (NRZ/CDM) conversion means which receives NRZ coded information from the circuits and despatches CDM information to the subscriber line. A CDM/NRZ conversion means receives CDM informa­ ton from the subscriber line and despatches NRZ coded information to the circuits. The processing of information through the modem is controlled by the microprocessor in conjunction with the clock signals generated by the clock supply means.

Description: The present invention relates to a subscriber line interface modem for use in a telcommunications system line interface module. The modem is a digital device designed to interface between a conditional diphase modulation (CDM) coded subscriber line and a non-return to zero (NRZ) coded line interface circuit. The modem implements six channels which greatly reduce the physical size of the line interface area. It is known from patent application No. WO83/02379, and from a technical paper entitled WESCON Technical Paper, Volume 26 September 1982 to have microprocessor controlled telecommunication line interface systems and data communication systems respectively, but such systems have complex data recovery systems in that they use, for example, complex phase locked loop clock recovery and frame synchronisation circuitry. An aim of the present invention is to provide a subscriber line interface modem for use in a telecommunications system which utilises a low cost/complexity technique to reliably recover data from the line. According to the present invention there is provided a subscriber line interface modem, for use in a telecommunications system line interface module including telecommunications subscriber signalling circuits, a selector circuit, a decoder circuit and a control microprocessor, the modem comprising channel means and bus interfacing means adapted to receive from, and despatch to, the microprocessor address, data and control information, the data being received and transmitted by a command register associated with each channel means under the control of channel read and write signals; said channel means having a non-return to zero/conditional diphase modulation conversion means (NRZ/CDM) arranged to receive NRZ coded information from the decoder and despatch CDM information to a telecommunications subscriber line, and a conditional diphase modulation/non-return to zero conversion means (CDM/NRZ) arranged to receive CDM information from the subscriber line and despatch NRZ coded information to the decoder; and clock supply means for controlling in conjunction with the microprocessor the processing of information through the modem, characterised in that the command register controls a clock rate selection circuit which selects clock frequencies generated in the modem, and selects window signals, each having fixed positions within a clock cycle representing optimum sampling instances, and each channnel means is provided with an edge detection device which monitors an input CDM waveform and compares it with the window signals so that the modem clocks the data at the optimum time by causing the output signal of the conditonal diphase modulation/non-return to zero conversion means (CDM/NRZ) to change only when an edge of the CDM waveform coincides with a window of one of the window signals. A further aim of the present invention is to provide a subscriber line interface modem for use in a telecommunication system which includes a failure detector. According to a feature of the present invention there is provided a subscriber line interface modem characterised in that the modem is provided with gating means for generating an interrupt signal for despatch to the microprocessor when CDM channel becomes faulty. An embodiment of the present invention will now be described with reference to the accompanying drawings wherein: Figure 1 shows a block diagram of part of a six channel telecommunications module, Figure 2 shows a timing diagram for a loopround function, Figure 3 shows a functional block diagram of a subscriber line interface modem, Figure 4 shows a block diagram for the clock supply area of a subscriber line interface modem, Figure 5 shows primary clock waveforms, Figure 6 shows examples of delayed clock generation, Figure 7 shows clock output alignment waveforms, Figure 8 shows a control bus interface arrangement, Figure 9 shows a block diagram of the channel areas, Figure 10 shows a timing diagram of NRZ traffic input and output, Figure 11 shows timing waveforms relating to a CDM edge detector, Figure 12 shows timing waveforms relating to a CDM monitor, Figure 13 shows the relationship of various clock signals to a framing signal, Figure 14 shows a subscriber line interface modem bus interface write cycle, Figure 15 shows a subscriber line interface modem bus interface read cycle, Figure 16 shows clock and frame input timing waveforms, Figure 17 shows NRZ timing waveforms, Figure 18 shows CDM timing waveforms, Figure 19 shows a memory map of a subscriber line interface modem; and, Figure 20 shows a flow diagram for CDM alarm servicing. Referring to Figure 1, the system block diagram shows a microprocessor A controlling 32 byte two port processor interface B, a universal programmable bus selector C, a cyclically permutable code generator detector D, and, a subscriber line interface modem E which forms the basis of the present invention. The microprocessor A communicates with the units B-E by way of the address/data bus ADDR/DATA. The unit D generates control signals INTO for the microprocessor A. The microprocessor A generates signals RD , WR , for units B-E, signal ALE for units B, D, E and address latch AL and request signal BAR for unit B. Unit B acts as a two port buffer with arbitration between the shelf system bus and the microprocessor A. Unit B receives shelf control bus signals SCB and generates a transfer acknowledgement signal XACK and a signal RESET . A low order shelf address bus LO, and a high order shelf address bus HO is provided, the latter being connected to a module enable decoder MED, which receives a module position address bus MP. A data bus DB feeds into and out of the unit B. Unit B generates a decode signal CE for units C, D and E and a request granted signal BAG for the microprocessor A. The universal programmable bus selector C provides a common interface between six single channel digital traffic terminations operating at 32 K bits per second. It receives TDM signals at 1 M bit per second and transmits TDM signals out at 1 M bit per second. The unit has an address latch input to which the address latch AL is connected. The units A, B and C belong to a common area and the units D and E belong to a digital voice terminal interface area. The cyclically permutable code generator detector D detects and generates cyclically permutable codewords for any of six independent channels and is controlled by a standard microprocessor interface. Eleven registers provide command and status information for full control. A codeword is detected if incoming serial data contains any eight bit word repeated consecutively six times. Generation of a codeword is by continuous serial transmission of a data byte loaded by the control interface. The unit D receives traffic from units C and E and transmits traffic to units C and E. The subscriber line interface modem E is the subject of the present invention and will be described in detail later. It interfaces between the NRZ traffic from unit D and the six line interface circuits LIC forming the channel rate four wire digital voice terminal loops to the subscribers. Each of the units C, D and E receive a framing and a 1MHz clock signal from a clock buffer CB. Each line interface circuit comprises trapezoidal line drivers LD, line receivers LR and a current limiter CL. The subscriber line inputs are shown as IP and the outputs OP. The subscriber line interface modem will now be described in detail. The modem contains all the retiming and code conversion (conditional diphase modulation/non-return to zero, CDM/NRZ and NRZ/CDM) necessary for this function. MODES OF OPERATION . Channel Rate . The subscriber line interface modem can work at three channel rates 64, 32 and 16 K bits/s. Each channel can be individually set by writing the appropriate command byte to the channel address. The command bytes are shown below. Looprounds . The modem may be set to loopround the CDM output of a channel into the channel CDM input. This aids module diagnosis by allowing the data path to be checked prior to going off the module. The loopround may be set on a per channel basis by setting bit three of the channel address. The loopround disables the CDM retiming circuit. The effective CDM input data is clocked in using the same strobe point as was used just prior to loopround being set. The timing is so arranged in the modem that either of the two possible strobe points may be used, as shown in Figure 2. Figure 2 shows two pulses representing windows W1 and W2, and the CDM loopround data waveform CDMLR. Input strobe IS2 corresponds with window W1, and input strobe IS1 corresponds with window W2. If there are no CDM edges in either of the windows W1 or W2 either input strobe may be used. Addressing Modes . The modem may be driven by microprocessors with either: a. Multiplexed address/data buses, or b. Separate address and data buses. In option a, the inputs DA0-7 are used in the multiplexed address/data input. In option b, the inputs A0-2 receive the address inputs and DA0-7 receive the data inputs. Device Reset . The modem may be reset from three sources: a. The RESET input. b. The RESET bit address 0, bit 0. c. The individual channel mode bits. These are described as follows: When this input is active (low), all storage elements within the device are reset or set to their quiescent state. All channel mode bits are forced to the 'disabled' state. The RESET input whilst active sets all normal outputs to a tristate condition and all open collector outputs to a high state. Data output drivers are tristate when either Read enable RD, Chip Select CE are inactive, or RESET active. Software Reset (address 0, bit 0) . This bit, when set to '1', resets all internal registers as the RESET input above. However it does not set normal outputs to the tristate condition. Individual Channel Reset . An individual channel may be reset by setting the mode bits at the channel address. FUNCTIONAL DESCRIPTION . The modem consists of three main functional areas, as shown in Figure 3. a. Clock supply, CS b. Control bus interface, BI c. Channel areas, CA1-CA6 Each functional area is divided into sub-areas. These are detailed below. Clock Supply . The clock supply area is divided into four areas as shown in Figure 4. a. Primary clock divider, PCD b. Window and delayed clock generator, WDG c. Secondary clock divider, SCD d. Final clock divider, FCD The primary clock divider consists of a synchronous down counter of seven stages. It provides clock signals of 512K, 256K, 128K, 64K, 32K, 16K and 8KHz to the window, delayed clock generator and the channel areas. The frequencies are divided from (the 1MHz input), MEG . The clock divider is synchronised from the FRMG input, and the waveforms are shown in Figure 5. The first six stages of the divider are not cleared from RESET input but from the FRMG input. Window and Delayed Clock Generator . Delayed clocks are generated for use by the rest of the modem. Clock frequencies generated are 128K , 64K , 32KHz delayed. The signals are generated by clocking the frequency required by twice the frequency as shown in Figure 6. This section also generates window waveforms for the channel CDM edge detection sections. The windows are generated by gating 2 x channel rate with 4 x channel rate clock (delayed). Secondary Clock Divider . This section consists of a five stage synchronous down counter. It provides an external clock frequency of 256Hz. The counter is clocked by the MEG input, receiving a carry from the primary stage. This stage may be reset by the input RESET . The divider is not synchronised by the framing input. The waveforms are shown in Figure 7. Final Clock Divider. This section consists of a five stage synchronous down counter. It provides the external output frequency of 8Hz; also 8Hz and 8Hz extended by 1 microsecond for use in the CDM edge detection circuitry. The counter is clocked by the 1MHz input, and receives a carry input from the secondary divider. The counter may be reset by the input RESET . The divider is not synchronised by the framing input. The waveforms are shown in Figure 7. Control Bus Interface . Division of Interface Areas . The Control Bus interface area is divided into the following areas as shown in Figure 8. a. Address area and decoding, AAD. b. Control gating and data buffers, CG. c. Reset circuit, RST. d. Interrupt gating, IG. Address Area and Decoding . This section receives the address input from either the address inputs AO-7 or from the multiplexed inputs DAO-7. The address is latched from the inputs DAO-7 by transparent latches controlled by the ALE input. Selection of address source is controlled by the MODE input. The three bit address is decoded into six enable signals for each of the channel areas. These are then gated with Write and Read signals WR and RD and driven to the channel areas over wires ICRW. The RD and WR input signals are enabled by the CS signal before being distributed within the modem. The resultant Read control is then used to control the data interface DAO-7 bidirectional transceivers; DT. The transceivers are only driven when the RD and CS signals are low. Reset Circuit . The reset circuit consists of a latch which is set when a '1' is written into address 0 of bit 0. This causes the 'Reset' condition, RC to be applied to the channels and the clock. Similarly when a '0' is written it will clear the latch. The input RESET acts directly on the output of the latch, causing the Reset condition directly whenever RESET is active. The output of the latch drives the modem reset lines to the rest of the device. Interrupt Gating . The interrupt output of the modem is driven in response to any of the six channel CDM failure alarms CFA becoming available. If any of the CDM failure alarms becomes active a pulse is generated which clears an interrupt latch. This sets the output INT active. The output remains active until a read access occurs at address 0. The latch is then set and the signal INT becomes inactive. Channel Areas . Division of Channel Areas . The channel areas may be divided into the following sections as shown in Figure 9. a. Command Register. b. Timing Switchover. c. CDM to NRZ Converter. d. NRZ to CDM Converter. e. CDM Edge Detector. f. Edge Selection Damping. g. CDM Failure Monitor. Command Register . The Command Register, CB is used to store the control byte for the channel which is written to the modem control input. The register consists of latches controlled by the channel write command from the control bus area. The outputs of the latch are driven to the data bus in response to the channel read command. This allows the present status of the channel to be read via the modem data outputs. The outputs of the register are also distributed to the respective channel areas. Clock Rate Selection . The clock rate selection circuit receives clock frequencies and window signals from the clock CR SEL generator section. The circuit then selects the correct frequency for 64, 32 and 16Kb/s operation. The control is derived from the command register bits D2, D1 as shown in the Tables A and B below. The resultant signals are distributed to the other channel sections as defined in Table A below. TIMING SELECTOR-OPTIONS. SIGNAL 64Kb/s 32Kb/s 16Kb/s TO SECTION WINDOW 1 CW 1 BW 1 AW 1 EDGE DETECTOR WINDOW 2 CW 2 BW 2 AW 2 INPUT STROBE 128 DEL 64 DEL 32 DEL CDM/NRZ (TRUE OR INVERTED) 32 16 8 SELECT DAMPING INPUT STROBE 64 32 16 NRZ/CDM CDM GEN STROBE 128 64 32 CLOCK SIGNAL USED TRUTH-TABLE TIMING SELECTION. DATA BIT D2 D1 0 0 CHANNEL RESET/DISABLE 0 1 16Kb/s 1 0 32Kb/s 1 1 64Kb/s CDM to NRZ Converter . The converter converts the CDM input to NRZ. The Circuit can strobe the CDM in with one of two strobe points STROBE 1 or STROBE 2. The choice is determined by the mode signal from the edge selection circuit ESD. NRZ to CDM Converter . The converter converts the NRZ input data to CDM code. Figure 10 shows the interface timing. This section has provision for an adjustable NRZ input strobe point in response to an input signal ADVAN. When ADVAN = 0 the NRZ data is strobed on the positive edge of the channel rate clock, CRC. When ADVAN = 1 the NRZ data is strobed 1 microsecond earlier than the positive edge. CDM Edge Detector . The detector monitors the input CDM waveform in order that the modem clocks the data in at the optimum time. The input stream is compared with the window inputs W1, W2. If any edge occurs within a window then the output signal can change. The output changes if the edge is in the opposite window to that last detected. This output, is then passed to the edge selection damping area ESD. The waveforms are shown in Figure 11. Edge Selection Damping ESD . This circuit consists of a three bit GRAY-CODE up/down counter. The counter counts at the channel rate. It counts up if the strobe input is 1 and down if the strobe input is 0. The count sequence is shown in the Table C below. When the end state is reached the counter remains in that state until the opposite state clocks occur. The result, the 'MODE' signal, is latched and held until the opposite end state is reached. The effect of this sequence is to only allow a change of sampling point after seven "edge-in-window" detections. Equivalent to 0.5mS at 32KHz. EDGE SELECTION DAMPER SEQUENCE END STATE Mode becomes '0' 0 0 0 DOWN = STROBE = 0 0 0 1 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 END STATE Mode becomes '1' 1 0 0 UP = STROBE = 1 CDM Failure Monitor . This circuit monitors the CDM input waveform for the channel and indicates any lack of data by setting bit D6 of the channel status byte. High-going edges of the CDM input causes a latch to be set during a 62.5ms period. At the end of this period the result is stored. The contents of the store form the 'CDM STATUS'. The CDM status is fed both to the channel status register and to the interrupt gating area. Figure 12 shows the relationship between the CDM input signal CDMIN, the Reset Latch signal RS , the Latch Output Reset signal LOR, the Result Strobe RS showing the strobe point and the result signal RSLT. When the result signal goes to a 1, CDM is present. The cross-hatched portions of the CDM input signal are irrelevant. INTERFACE SIGNAL DESCRIPTIONS . Control Signals . Chip Select ( CS ) active low. This signal, when active, enables the device to respond to write and read control accesses. The signal allows memory mapping of the device. Write Enable ( WR ) active low. This signal indicates to the modem that address and data inputs are valid. Data is strobed in the high going edge of the signal. Read Enable ( RD ) active low. This signal indicates to the modem that data may be driven onto the data outputs. Mode active low. This input determines the type of address input: MODE = 1 Multiplexed Address/data. MODE = 0 Separate Address and data input. Address Inputs (A0-A2). These inputs are used for address inputs when MODE = 0. The address must remain valid throughout the access. When MODE = 1 these inputs are ignored. Multiplexed Address/data (DA0-7) active high (true). These signals are bidirectional. In a control access an address is asserted on lines DA0-7 and strobed in by the signal ALE. Data then replaces the address either driven externally (write) or driven by the modem when RD = 0. Address Latch Enable (ALE) active high. This input is used when MODE = 1. When MODE = 0 it is ignored. When the signal ALE is high the address on lines DAO-7 is allowed through to the device. On the low going edge of signal ALE the address is latched. Interrupt Output ( INT ) active low. This signal becomes active whenever a CDM failure occurs on any channel. The signal is reset by a read access to channel 0. RESET Input ( RESET ) active low. This signal, when active, resets all internal storage elements of the modem. Traffic Signals . NRZ Inputs active high (true). These signals are the NRZ inputs to the modem for channels A - F respectively. Data is strobed in on the positive edge of the channel rate clock. ADVANCE Input (ADVAN) active high (True). This signal is used to control the input strobe point of the NRZ inputs. When high the NRZ data is strobed in advance of the normal strobe point. NRZ Outputs active high (True). These signals are the NRZ receive data outputs of channels A - F respectively. Data is strobed out on the negative edge of the channel rate clock. CDM Inputs active high (True). These signals are the CDM received inputs from the line buffers, channels A-F respectively. Data is strobed in 25% from the edges of the CDM signal. CDM Outputs active high (True). These signals are the CDM Outputs of the modem, for channels A - F respectively. Data is strobed out on the negative edge of twice the channel rate clock. Timing Signals . 1 Megahertz clock input ( MEG ) active low. This input provides the master clock for all traffic operations. The timing relationships are shown in Figure 7 and 13. Framing Input ( FRMG ) active low. This input synchronises the clock dividers within the modem to others externally. Timings . The timings for the device interface are shown in the following diagrams: Fig 14 Bus Interface Write Cycle. Fig 15 Bus Interface Read Cycle. Fig 16 Clock and Frame Input Timing. Fig 17 NRZ Timing. Fig 18 CDM Timing. The parameters detailed below are referenced by a number, the corresponding number also appears on the diagrams for easy reference. Clock and Frame Input Timing Figure 16. REFERENCE PARAMETER Value MAX 1. Framing Set-up before MEG positive edge. 37nS 2. Framing Hold after MEG positive edge. 59nS 3. Framing inactive to next positive edge. 24nS 4. Framing active after previous positive edge. 57nS 5. Maximum frequency of MEG input 2.5MHz 6. Minimum time between transitions of MEG. 60nS (Min) NRZ Timings Figure 17. REFERENCE PARAMETER Value Min 1. NRZ input Set-up time. 40nS 2. NRZ input Hold time. 120nS 3. NRZ output data valid from MEG positive edge. 156 (Max) CDM TIMINGS Figure 18. REFERENCE PARAMETER Value 1. CDM output data valid from MEG positive edge. 210nS (Max) Software Control Interface . The modem appears to the controlling microprocessor an area of memory, eight bytes long, as shown in Figure 19. The device is enabled by the 'chip select' input which may be driven by an external memory mapping address decoder. This allows the eight bytes to be placed anywhere in the microprocessors address space. The eight bytes are allocated one per channel, i.e. channels A - F are bytes - 5 (bytes 6 and 7 are reserved). Each channel byte has the following bits: BIT COMMENT D0 Used only on channel 0, device reset. 1 = device reset. 0 = remove reset. D1,D2 Channel rate control D3 CDM loopround control. 1 = loopround. D4 Determines CDM failure state (high or low). Force CDM MONITOR BIT IS ACTIVE '1'. D5 Force CDM failure bit. 1 = forces a CDM failure. D6 CDM failure bit; may be reset by writing a '0'. 1 = FAILURE. D7 CDM input strobe edge being used. Interrupt Mechanisms - CDM Failures The modem has an interrupt output which is activated if a channel CDM failure occurs. This is the only event that can cause an interrupt. The method of servicing the interrupt is described in Figure 20 which shows a flow diagram for CDM alarm servicing. The interrupt may also be ignored by the host processor. In this case the CDM alarm bit of each channel is polled at regular intervals. The channels may be addressed in any order.

Claims: A subscriber line interface modem (E), for use in a telecommunications system line interface module including telecommunications subscriber signalling circuits (LIC), a selector circuit (C), a decoder circuit (D) and a control microprocessor (A), the modem comprising channel means (CA1-CA6) and bus interfacing means (BI) adapted to receive from, and despatch to, the microprocessor (A) address, data and control information, the data being received and transmitted by a command register (CB) associated with each channel means (CA1-CA6) under the control of channel read and write signals; said channel means (CA1-CA6) having a non-return to zero/conditional diphase modulation conversion means (NRZ/CDM) arranged to receive NRZ coded information from the decoder (D) and despatch CDM information to a telecommunications subscriber line, and a conditional diphase modulation/non-return to zero conversion means (CDM/NRZ) arranged to receive CDM information from the subscriber line and despatch NRZ coded information to the decoder(D); and clock supply means (CS) for controlling in conjunction with the microprocessor (A) the processing of information through the modem (E), characterised in that the command register (CB) controls a clock rate selection circuit (CR SEL) which selects clock frequencies generated in the modem, and selects window signals, each having fixed positions within a clock cycle representing optimum sampling instances, and each channnel means (CA1-CA6) is provided with an edge detection device (ED) which monitors an input CDM waveform and compares it with the window signals so that the modem clocks the data at the optimum time by causing the output signal of the conditonal diphase modulation/non-return to zero conversion means (CDM/NRZ) to change only when an edge of the CDM waveform coincides with a window of one of the window signals. A subscriber line interface modem as claimed in claim 1 characterised in that the modem is provided with gating means (IG) for generating an interrupted signal for despatch to the microprocessor (A) when a CDM channel becomes faulty. A subscriber line interface modem as claimed in claim 1 or 2 characterised in that the command register (CB) generates a loop round control signal which is presented to the CDM/NRZ conversion means to enable the CDM output signal from the NRZ/CDM conversion means to be looped round to the CDM input of the CDM/NRZ conversion means to enable the data path to be checked. A subscriber line interface modem as claimed in any preceding claim characterised in that the bus interfacing means (BI) includes a circuit (AAD) which receives address information on address input lines (A0-A7), or address information on multiplexed input lines (DA0-DA7) from a data transceiver (DT), and is latched by a latch circuit under the control of the microprocessor (A) prior to being decoded in a decode circuit controlled by the microprocessor to generate the read and write signals for each channel. A subscriber line interface modem as claimed in any preceding claim charaterised in that the selection circuit (CR SEL) operates at frequencies of 64Kb/s, 32Kb/s or 16Kb/s.

Inventors: LINDA, MARTIN JOHN, SMEDLEY, COLIN PETER
Applicants: SIEMENS PLESSEY ELECTRONIC SYSTEMS LIMITED
Application year: 1985
Main classification: H04Q11
IPC codes: H04Q11