Threshold value control system in a receiver circuit

Abstract: A threshold value control system for discriminating an input signal received by a receiver circuit, comprising a mode setting unit (142) for determining a mode setting signal corresponding to a connection pattern of the receiver circuit; a variable threshold value generating unit (21, 22) for generating a variable threshold value which varies depending on the variation of the level of said input signal; a constant threshold value generating unit (144, 145) for generating at least one constant threshold value by which the level of the input signal can be discriminated even when its level cannot be distinguished by the variable threshold value; a threshold comparing unit (146, 147) for ccmparing the variable threshold value and each of the at least one constant threshold value to output a comparison result; a switching unit (148,149,150) for passing only one of the variable threshold values and the at least one constant threshold value as an input digital signal discriminating threshold value, based on the mode setting signal output from the mode setting unit and the comparison result output from the threshold comparing unit, the input digital signal discriminating threshold value being sufficient to discriminate the digital level of the input signal; and a comparing unit (23) for comparing the level of the input signal and the input digital signal discriminating threshold value to output a discriminated result, whereby bit errors or synchronization deviation can be prevented even when there is a superimposition of frame signals or noises.

Description: The present invention relates to a threshold value control system in a receiver circuit suitable for an ISDN (Integrated Systems Digital Network) terminal or a network termination in an ISDN network. US-A-4 091 379 describes an analog-to-digital wave-shaping system which includes a threshold value control function. Japanese Patent Applications No. 61-227440 and 61-258524 are also known. In the receiver circuit in the ISDN terminal or in the network termination, a comparator is conventionally used for comparing an input signal and a threshold voltage so as to discriminate the digital signal level of the input signal. As the methods for determining the threshold voltage, conventionally, there are a fixed method in which the threshold voltage is constant and an ATC (Automatic Threshold Control) method in which the threshold voltage is approximately linearly changed dependent on the voltage of the input signal. In the conventional arts, there are problems in that, according to the fixed method, the regulation of a total phase deviation cannot be satisfied and, according to the ATC method, the threshold voltage fluctuates due to noises and so forth when using a point-to-point connection and the threshold voltage fluctuates due to the superimposition of the frame synchronization signals under the multipoint connection, as later described in more detail with reference to the drawings. An object of the present invention is, based on the idea of adding a NT/TE switching function, in the ATC system, to prevent bit errors or synchronization deviation in the receiver circuit due to the fluctuation of the digital signals when determining threshold value by the influence of noises, or due to the fluctuation of digital signals when determining threshold values by the superimposition of frame synchronization signals when a plurality of ISDN terminals are connected to a network termination by a bus. According to the invention, there is provided a threshold value control system for discriminating an input signal received by a receiver circuit, comprising: variable threshold value generating means for generating a variable threshold value which varies depending on the level of said input signal; constant threshold value generating means for generating at least one constant threshold value by which the level of said input signal can be discriminated even when the level of said input signal cannot be distinguished by said variable threshold value; threshold comparing means operatively connected to said variable threshold value generating means and said constant threshold value generating means, for comparing said variable threshold value and each of said at least one constant theshold values to output a comparison result; switching means, operatively connected to said variable threshold value generating means, said constant threshold value generating means, and said threshold comparing means, for passing only one of said variable threshold value and said at least one constant threshold value as an input digital signal discriminating threshold value, based on the comparison result output from said threshold comparing means, said input digital signal discriminating threshold value being sufficient to discriminate the digital level of said input signal; and comparing means, operatively connected to receive said input signal and the output of said switching means, for comparing the level of said input signal and said input digital signal discriminating threshold value to output a discriminated results characterised by: mode setting means for generating a mode setting signal, the mode corresponding to whether a plurality of terminals are to be connected to the receiver circuit; and said mode setting means comprising means for generating an NT mode selecting signal when said receiver circuit is included in a terminal acting as a network terminal in an ISDN network, and further comprising means for generating a TE mode selecting signal when said receiver circuit is included in a terminal acting as terminal equipment in an ISDN network; said switching means being further connected to said mode setting means and responsive to said mode setting signal, for providing the comparing means with said input digital signal discriminating threshold value. The receiver circuit may, for example, be included in one of the NT1, NT2, and ISDN terminals in an ISDN network. The variable threshold value generating unit may comprise a unit for generating the variable threshold value which is a predetermined percentage of the peak level of the input signal and which increases in accordance with an increase in the level of the input signal. The constant threshold value generating unit may comprise a switch control unit for generating a switch control signal based on the mode setting signal output from the mode setting unit and the comparison result output from the threshold comparing unit. The input digital signal discriminating threshold value is output from the switching unit in response to the switch control signal output from the switch control unit. The constant threshold value generating unit may comprise a first threshold voltage generating unit for generating a first constant threshold value by which the input digital signal level can be discriminated by the comparing unit even when the variable threshold value is increased to be higher than the first constant threshold value so that the input digital signal level cannot be discriminated by the increased variable threshold value due to superimposition of frame signals from a plurality of terminals, and the switching unit comprises a unit for outputting the first threshold value when the variable threshold value is higher than the first constant threshold value and when the mode setting unit generates the NT mode selecting signal. The switching unit may comprise a unit for outputting the variable threshold value when the variable threshold value is lower than or equal to the first constant threshold value and higher than or equal to the second constant threshold value, and when the mode setting unit generates the NT mode selecting signal. The switching unit may comprise a unit for outputting the second threshold value when the variable threshold value is lower than the second constant threshold value and when the mode setting unit generates the NT mode selecting signal. The switching unit may comprise a unit for outputting the variable threshold value when the variable threshold value is higher than or equal to the second constant threshold value and when the mode setting unit generates the TE mode selecting siqnal. The switching unit may comprise a unit for outputting the second threshold value when the variable threshold value is lower than the second constant threshold value and when the mode setting unit generates the TE mode selecting signal. Preferably, the switching unit comprises a unit for outputting the variable threshold value when the variable threshold value is lower than or equal to the first constant threshold value and higher than or equal to the second constant threshold value, and when the mode setting unit generates the NT mode selecting signal; a unit for outputting the second constnat threshold value when the variable threshold value is lower than the second constant threshold value and when the mode setting unit generates the NT mode selecting signal; a unit for outputting the variable threshold value when the variable threshold value is higher than or equal to the second constnat threshold value and when the mode setting unit generates the TE mode selecting signal; and a unit for outputting the second constant threshold value when the variable threshold value is lower than the second constant threshold value and when the mode setting unit generates the TE mode selecting signal. The above object and features of the present invention will be more apparent from the following description of the preferred embodiments with reference to the drawings, wherein: Fig. 1 is a block diagram showing the construction of the ISDN network for explaining the field of utilization in industry of the present invention; Fig. 2 is a block diagram showing an example of the construction of the ISDN terminal as background of the present invention; Fig. 3 is a block diagram showing an ISDN network system including receiver circuits; Fig. 4 is a graph for explaining a conventional fixed method of a threshold voltage; Fig. 5 is a diagram showing the frame construction in the reference point S/T of the user-network interface; Fig. 6 is a diagram explaining the total phase deviation in the conventional system; Fig. 7 is a graph explaining the conventional ATC system; Figs. 8A and 8B are diagrams explaining the problem of the superimposition of the frame synchronization signals in the conventional ATC system; Fig. 9 is a principal block diagram of the present invention; Fig. 10 is a block diagram of a receiver circuit in an ISDN terminal according to an embodiment of the present invention; Fig. 11 is a graph diagram for explaining the operation of the circuit in Fig. 10; Fig. 12 is a circuit diagram showing an example of the reference voltage generating circuit; Fig. 13 is a circuit diagram showing an example of the peak hold circuit; Fig. 14 is a circuit diagram showing an example of the ATC circuit; and Fig. 15 is a circuit diagram showing an example of the selector circuit and the switch control circuit in the circuit shown in Fig. 14. DESCRIPTION OF THE PREFERRED EMBODIMENTS Before describing the embodiments of the present invention, the conventional arts and the problems therein will be described for easier understanding of the present invention. Figure 1 is a block diagram showing an example of the construction of an ISDN network, for explaining the field of utilization in industry of the present invention. In the figure, an ISDN exchange 41 is connected through a U-reference point to a network termination (NT1) 42, and the network termination (NT1) 42 is connected through a T-reference point to a network termination (NT2) 43, or is directly connected through a S/T reference point and not through the network termination (NT2) 43 to a maximum of eight ISDN terminals (TE) 44. At the U-reference point, two wires are provided to transmit signals by 2B + D channels. At the T-reference point and the S-reference point, four wires are provided to transmit signals by 2B + D channels. The (NT1) 42 has, as illustrated in the figure, the functions of terminating at a subscriber line, maintenance, monitoring, and timing functions in the layer 1, etc. The (NT2) 43 has functions such as protocol processing in the layers 2 and 3 and exchange function of a PBX, LAN and so forth. The (TE) 44 is a digital telephone set and so forth having the functions of protocol processing, maintenance functions, interface functions and so forth. The present invention relates to the receiver circuit in the network termination (NT1) 42 or (NT2) 43, or in the ISDN terminals (TE) 44. Figure 2 is a block diagram showing the construction of the ISDN terminal (TE) 44 as background of the present invention. In the figure, a voice signal from a hand set 51 is converted into a B-channel digital signal by a coder/decoder (CODEC) 52. Control signals stored in a ROM and RAM are read out under the control of a central processing unit (CPU) 53. A frame decomposing/composing circuit (F D/C) 54 composes a frame of 2B + D. This frame is transmitted to the S-reference point and the T-reference point through a driver 55 and pulse transformer 56. In the receiver circuit of an ISDN terminal, a comparator and so forth is used to detect the digital input waveform of the input from the line side (S/T reference point) to output a signal to the frame decomposing/composing circuit (F D/C) 54 wherein it is synchronized with the signal on the line, or the frame is decomposed into B 1 , B 2 , and D channels and is transmitted as a receiving signal into the internal circuit. Figure 3 is a block diagram 2 showing an ISDN network system including receiver circuits. As shown in the figure, a driver circuit (D) 31 in a network termination (NT1) 32 is connected through a pulse transformer to a receiver circuit (R) 33 in a network termination (NT2) 34. A driver circuit (D) 35 in the network termination (NT2) 34 is connected through a pulse transformer to a receiver circuit (R) 36 in an ISDN terminal 37. Similarly, in the opposite direction, the network termination (NT2) 34 includes a receiver circuit (R) 38, and the network termination (NT1) 32 includes a receiver circuit (R) 39. The present invention relates to threshold voltage for detecting signals input to these receiver circuits. As the methods for determining the threshold voltage, conventionally, there is a fixed method in which the threshold voltages are constant, and an ATC (Automatic Threshold Control) method in which the threshold voltage is approximately linearly changed dependent on the peak voltage of the input signal. Figure 4 is a graph explaining the conventional fixed method. In the figure, it is depicted that the voltage of the input waveform is lowered in accordance with the increase of the line loss. In this way, the input signal level differs depending on the line length between the network termination (NT2) 43 and the other terminal. Also, depending on the connection pattern in the connection between the network termination (NT2) 43 and the ISDN terminal (TE) 44, the amount of signal delay may change or the distortion of the waveform may change. There are various connection patterns, e.g., the cases where only one ISDN terminal (TE) 44 is connected to the network termination (NT2) 44 by a point-to-point connection, where all of the eight ISDN terminals (TE) 44 are positioned at places far from the network termination (NT2) 43 for more than 200 meters and are connected by a multi-point connection, and where only one of the eight terminals is placed to close to the network termination and the remaining seven terminals are placed at a remote location. Further, depending on whether the format of the signal input to the receiver circuit is a continuous pulse format or a signal pulse format, the distortion of the waveform or the amount of signal delay may change. As described above, when the waveform distortion or the amount of signal delay changes depending on the change of the line length, the connection pattern, and the signal format, the pulse width or the delay time of the signal transmitted to the internal circuit of the receiver circuit may change. Because of the fluctuation of the pulse width or the delay time of the receiving signal, a problem arises regarding regulation of a total phase deviation defined in the 1.430 of the CCITT Recommendation. According to the regulation, the interval between the signal changing point of the output signal of an ISDN standard terminal (TE) and the signal changing point of the corresponding signal applied to the input of the ISDN standard terminal (TE) should not exceed the range between -7% and +15% of the bit period. The total phase deviation is explained with reference to Fig. 5 and Fig. 6. Figure 5 is a diagram showing a conventional frame construction at the user-network interface reference point S/T. In the figure, the frame construction of the signal transmitted in the direction from the NT1 or NT2 to the TE is shown in the upper portion, and the frame construction of the signal output from the TE to the NT1 or N12 for establishing the frame synchronization in response to the signal in the upper portion is shown in the lower portion. Framing bits in both signals should be separated in time by a 2-bit offset. Figure 6 is a diagram showing the framing-bit portion extracted and expanded from both signals in Fig. 5. As shown in the figure, the time difference between a zero-cross point P 1 of the frame pulse in the input signal into the receiver circuit in the terminal equipment (TE) and a zero-cross point P 2 of the frame pulse in the output signal from the driver circuit in the same terminal equipment (TE) as above is 10.42 µs which is double the 5.21 µs of the pulse width of one bit. Accordingly, the total phase deviation is within the regulation range between -7% and *15% of the pulse width of 5.21 µs. The level of the signal, the waveform distortion, or the delay amount may fluctuate dependent on the change of the line length, connection pattern, and signal format as described before. Because of this fluctuation, it is difficult to satisfy the regulation of the total phase deviation when the receiving signal is detected by a signal threshold voltage according to the conventional fixed method. Therefore, as shown in Fig. 4, it may be considered to provide a plurality of threshold voltages V TH1 , ..., V THn-1 , and V THn . By the method of providing a plurality of fixed threshold voltages, however, a complex circuit for switching these threshold voltages is required so that there are problems in that, not only does the cost become high, but also noises are easily generated at the time of switching the plurality of threshold voltages, and the input voltage cannot be detected linearly because each threshold voltage is fixed. Therefore, conventionally, the ATC (Automatic Threshold Control) method for linearly changing the threshold voltage in accordance with the amplitude of the waveform has been developed. In this method, a peak value of the waveform on the line is detected, the peak value of the signal is held, and the voltage corresponding to the peak held value is used as a threshold voltage. Fig. 7 is a graph showing the change of the threshold voltage utilizing the ATC method. As shown in the figure, the input voltage of the receiving signal is lowered according to the increase of the line loss, and the threshold voltage is also lowered according to the decrease of the input voltage. The threshold voltage is determined to be, for example, about 50% of the input voltage. By this ATC method, since the threshold voltage is approximately linearly change in accordance with the change of the input waveform voltage, the regulation of the total phase deviation is easily satisfied in comparison with the fixed method. However, in the case of the point-to-point connection, the line loss is increased in accordance with the elongation of the distance between the network termination (NT2) 43 and the network termination (NT1) 42 or the single ISDN terminal (TE) 44. According to the increase of the line loss, the signal level is lowered so that the noise level is close to the signal level. In this situation, noises and so forth are held at peak instead of holding the peak value of the signal level. In this case, since the threshold voltage is determined in accordance with the peak held value of the noises and so forth, the correct detection of the signal cannot be carried out so that the problems of bit errors and synchronization deviation easily occur. To avoid the bit errors or synchronization deviation, the distance between terminals in the point-to-point connection should be limited to be shorter than a constant in comparison with the fixed method. From another point of view, consider the case when the eight ISDN terminals (TE) 44 are connected by a bus at the S reference point of the network termination (NT2) 43 shown in Fig. 1. In this case, in the network termination (NT2) 43, the receiver circuit connected to the network termination (NT1) 42 is operated in a TE mode of the point-to-point connection, and the receiver circuit connected to the ISDN terminal (TE) 44 is operated in an NT mode of the multi-point connection. At the NT mode side, the eight ISDN terminals (TE) 44 always transmit frame synchronization signals even when signals of the B channel and the D channel are not transmitted. When the frame synchronization signals from a plurality of ISDN terminals (TE) 44 are superimposed at the S reference point, the level of the frame synchronization signal becomes higher than the signal level of the B channel or the D channel. The elevated synchronization signal is explained in more detail with reference to Figs. 8A and 8B. Namely, as shown in Fig. 8A, in the TE mode operation or even in the NT mode operation in case of the point-to-point connection, the height of the frame synchronization signal and the height of the B channel signal or the D channel signal are all the same. Note that the signals shown in Figs. 8A and 8B are AMI codes. In contrast, as shown in Fig. 8B, in case of the multipoint connection in the NT mode, when the frame synchronization signals are superimposed, the high level of the frame synchronization signal becomes higher than the high level of the B channel signal or the D channel signal, and the low level of the frame synchronization signal becomes lower than the low level of the B channel signal or the D channel signal. In this case, when the conventional ATC method is applied, the elevated level of the frame synchronization signal is held as peak, and the threshold value is determined in accordance with the peak held value. Therefore, the threshold value is too high to detect the input signal of the B channel or the D channel so that the digital signal level cannot be correctly determined. As a countermeasure to the increase of the threshold voltage due to the superimposition of the frame synchronization signals, it may be considered to have different threshold voltages in the NT mode receiver circuit and the TE mode receiver circuit. However, if two receiver circuits having different characteristics are provided in the network termination (NT2) 43, two kinds of evaluation tests should be effected so that the evaluation tests become complicated. Further, since the receiver circuits having different characteristics should be constructed by different circuits having different characteristics, the cost becomes high. In conclusion, in the conventional arts, there are problems in that the regulation of the total phase deviation cannot be satisfied in the fixed method, that the threshold voltage fluctuates due to noises and so forth in the ATC method, and that the threshold voltage fluctuates due to the superimposition of the frame synchronization signals in the multipoint connection. In view of the problems in the above-mentioned prior arts, an object of the present invention is, based on the idea of adding a NT/TE switching function, in the ATC system, to prevent bit errors or synchronization deviation in the receiver circuit due to the fluctuation of the digital signal determining threshold value by the influence of noises, or due to the fluctuation of digital signal determining threshold value by the superimposition of frame signals when a plurality of ISDN terminals are connected to a network termination by a bus. Next, embodiments of the present invention will be described with reference to Figs. 9 to 15. Figure 9 is a principal block diagram of a receiver circuit in an ISDN terminal or a network termination according to an embodiment of the present invention. In the figure, 1 is a peak voltage holding unit (PHU) for holding the peak voltage value of an input signal, 2 is an automatic threshold value control unit (ATC) for outputting a variable threshold value Va which varies according to the peak voltage value held in the peak voltage holding unit 1, 3 is a comparing unit (COMP) for comparing the voltage value of the input signal and the variable threshold value Va which is output from the automatic threshold control unit 2, to discriminate the digital signal level of the input signal, 4 is a constant threshold generating unit (V REF ) for outputting a constant threshold value V 1 by which the digital signal level of the input signal can be discriminated even when the digital signal level of the input signal cannot be discriminated by an increased variable threshold value Va which has been increased in accordance with the increase of the input signal voltage. According to a first aspect of the present invention, the automatic threshold control unit 2 outputs the variable threshold value Va when the variable threshold value Va is equal to or smaller than the constant threshold value V 1 output from the constant threshold generating unit 4, and outputs the constant threshold value V 1 output from the constant threshold generating unit 4 when the variable threshold value Va is larger than the above-mentioned constant threshold value V 1 . According to a second aspect of the present invention, the constant threshold generating unit 4 outputs a first constant threshold value V 1 by which the digital signal level of the input signal can be discriminated even when the digital signal level V IN of the input signal cannot be discriminated by an increased variable threshold value Va which has been increased in accordance with the increase of the input signal voltage V IN , and outputs a second constant threshold value V 2 by which the digital level of the input signal can be discriminated even when the influence of the noise level on the variable threshold value Va can not be neglected in accordance with the decrease of the voltage of the input signal. The automatic threshold control unit 2 has a mode setting terminal 5 for switching between an NT mode used in the case of bus connection and a TE mode used in the case of point-to-point connection. Namely, when the receiver circuit is included in a device acting as a network termination in an ISDN network, the NT mode is set; and when the receiver circuit is included in a device acting as terminal equipment in an ISDN network, the TE mode is set. When the NT mode is set at the mode setting terminal 5, the automatic threshold control unit 2 outputs the variable threshold value Va to the comparing unit 3 when the variable threshold value Va is equal to or lower than the first constant threshold value V 1 , and outputs the first constant threshold value V 1 output from the constant threshold generating unit 4 to the comparing unit 3 when the variable threshold value Va is higher than the first constant threshold V 1 . When the TE mode is set at the mode setting terminal 5, the automatic threshold control unit 2 outputs the variable threshold value Va even when the variable threshold value Va is higher than the first constant threshold value V 1 . In the case of either the NT mode setting time or the TE mode setting time, the automatic threshold control unit 2 outputs the second constant threshold value V 2 output from the constant threshold generating unit 4 when the variable threshold value Va is smaller than the second constant threshold value V 2 . The eight ISDN terminals (TE) 44 may be located at a far-end position or at a near-end position with respect to the network termination (NT1) 42 or (NT2) 43. When the eight ISDN terminals are located at a near-end position, the signal levels at the input of the network termination are different because the distance between the ISDN terminals is relatively long. Even when the signal levels are different, however, it is sufficient for detecting each signal level to determine the first constant threshold value V 1 and the second constant threshold value V 2 to be smaller than the lowest signal level. According to the first aspect of the embodiment of the present invention, when the variable threshold value Va is higher than the constant threshold value V 1 , output from the constant threshold generating unit 4, the constant threshold value V 1 output form the constant threshold generating unit 4 is output to the comparing unit 3, and thereby, in the ATC method, even when the frame synchronization signals from a plurality of terminals are superimposed in the case of the multipoint connection, the threshold voltage is fixed to the constant threshold value V 1 so that the bit errors or the synchronization deviations can be prevented. According to the second aspect of the present invention, by switching the mode setting in accordance with the location of the usage of the receiver circuit, the fluctuation of the threshold voltage due to noises in the case of the point-to-point connection can be prevented, and thereby bit errors or synchronization errors can be prevented. Namely, according to the present invention, only by switching the mode setting, an appropriate threshold voltage in conformity with the respective characteristics of the NT and the TE modes can be obtained. Figure 10 is a block diagram showing the construction of a receiver circuit in an ISDN terminal or a network termination, according to an embodiment of the present invention. In the figure, 21 is a peak hold circuit for holding the peak voltage value of the input signal, 22 is an ATC circuit for outputting a variable threshold value Va which varies in accordance with the peak voltage value, 23 is a comparator for comparing the voltage value V IN of the input signal and the output of the ATC circuit 22 to determine the digital signal level of the input signal, 24 is a constant threshold generating circuit for outputting a constant threshold value V 1 by which the digital signal level of the input signal can be recognized even when the digital signal level of the input signal cannot be discriminated by the variable threshold value Va because the variable threshold value has been increased to be too high in accordance with the increase of the input signal voltage V IN . The constant threshold generating circuit 24 also generates a second constant threshold value V 2 by which the digital signal level of the input signal can be discriminated even when the digital signal level of the input signal cannot be discriminated by the variable threshold value Va which has been decreased to be too low so that so that the negative influence of noises cannot be neglected. By setting the terminal A and B either manually or under the control by the CPU, the ATC circuit 22 is set in an NT mode or in a TE mode in which the receiver circuit is used. When the receiver circuit is to be connected to an ISDN terminal (TE) by a bus, the ATC circuit 22 is set to the NT mode. When the receiver circuit is to be connected to the network termination (NT1) or (NT2) by a point-to-point connection, the ATC circuit 22 is set to the TE mode. The mode setting is realized by inputting a setting signal to the mode setting terminals A and B. As the mode settings, other than the NT mode and the TE mode, it is also possible to set the conventional fixed system, ATC system, externally input mode, and so forth. In the illustrated example, since there are two setting terminals, four different mode settings are possible. If it is desired to further increrase the number of the setting modes, the number of setting terminals may be increased. Fiugure 11 is a graph illustrating the relation between the input waveform voltage and the threshold voltage, for explaining the operation of the circuit shown in Fig. 10. In Fig. 10 and Fig 11, even when the discrimination of the digital signal level of the input signal is impossible by the variable threshold value Va which has been increased to be too high in accordance with the increase of the input signal voltage, for example, in Fig. 11, even when the input variable threshold value Va is over V 1 , the constant threshold forming circuit 24 outputs the first constant threshold value V 1 by which the digital signal level of the input signal can be discriminated. Also, even when the influence of the noise level in the input signal on the variable threshold value Va cannot be neglected in accordance with the decrease of the input signal voltage V IN , the second constant threshold value V 2 by which the digital signal level V IN of the input signal can be discriminated is output. When the NT mode is being set, the ATC circuit 22 outputs to the comparator 23, when the variable threshold value Va is below the first constant threshold value V 1 , the variable threshold value Va which varies in response to the change of the input voltage in accordance with the conventional ATC methos. When the variable threshold value Va exceeds the first constant threshold value V 1 , the first constant threshold value V 1 output from the constant threshold generating circuit 24 is output from the ATC circuit 22 to the comparator 23. Namely, at the time of setting the NT mode, by the operation of the ATC circuit 22, three stages are switched among the fixed method when the line loss is small, the ATC method in the next step, and then the fixed method when the line loss becomes larger. When the TE mode is being set, the ATC circuit 22 outputs the variable threshold value Va even when the variable threshold value Va is higher than the first constant threshold value V 1 . Namely, in the TE mode, when the input signal voltage V IN is high, the conventional ATC method is employed; and when the line loss becomes large, the fixed method is employed in the same way as the NT mode setting time. At either the NT mode setting time or the TE mode setting time, the ATC circuit 22 outputs the second constant threshold value V 2 output from the constant threshold generating circuit 24 when the variable threshold value Va is smaller than the second constant threshold value V 2 . In the conventional ATC method, there is a problem of the fluctuation of the threshold voltage due to the influence of the noises and so forth in accordance with the elongation of the line length. In contrast, according to the system of the present invention, as described above, the ATC method and the fixed method are combined so that when the variable threshold voltage Va by the ATC method is lower than V 2 , it is switched to the fixed system, so that noises and so forth do not influence the threshold voltage even when the line length is elongated. In this case, the fixed threshold level V 2 should be sufficiently high so that noise waveforms are not detected when there is no signal on the line. Also, in the conventional art, there is a problem in that the digital level V IN of the input signal cannot be discriminated by the variable threshold value Va due to the superimposition of the frame signals at the time of bus connection and due to the higher level of the frame synchronization signal hgiher than the B or D channel signal. In contrast, when the NT mode is being set according to the embodiment of the present invention, and when the line loss is small, the threshold voltage is fixed to V 1 so that the above-mentioned problem is resolved. The discriminated level of the input signal compared with the digital signal discriminating threshold value by the comparator 25 is output to the frame decomposition/composition circuit 25 in the layer 1. Figure 12 is a circuit diagram showing an example of the constant threshold forming circuit 24 shown in Fig. 10. In the figure, the constant threshold generating circuit 24 is constructed by resistors (R 1 and R 2 ) 121 and 122, a capacitor (C 1 ) 123, and an operational amplifier (OP1) 124. The resistors 121 and 122 are connected in series between the power supply line V DD and ground. The connecting point between the resistors 121 and 122 is connected to the noninverting input of the operational amplifier 124. The capacitor 123 is connected between the noninverting input of the operational amplifier 124 and ground. The output of the operational amplifier 124 is connected to the inverting input thereof. By this construction, the first or the second constant threshold value V 1 or V 2 is determined by the ratio of the resistances of the resistors 121 and 122. Figure 13 is a circuit diagram showing an example of the peak hold circuit 21 shown in Fig. 10. In the figure, the peak hold circuit 21 is constructed by two operational amplifiers (OP2 and OP3) 131 and 132, a resistor (R 3 ) 133 connected between the inverting input of the operational amplifier 131 and ground, a diode (D1) 134 for conducting a positive current, a resistor (R 4 ) 135 and a capacitor (C 2 ) 236 constituting an integrating circuit for holding the peak voltage of the input signal applied to the noninverting input of the operational amplifier 131, resistors (R 5 and R 6 ) 137 and 138 for amplifying the voltage applied to the noninverting input of the operational amplifier 132, a capacitor (C 3 ) 139 connected between the output of the operational amplifier 132 and ground, and resistors (R 7 and R 8 ) 140 and 141 connected in series between the output of the operational amplifier 132 and ground. At the connecting point between the resistors 140 and 141, an output voltage which is held at the peak value of the input signal is obtained. Figure 14 is a block diagram showing an example of the ATC circuit 22 shown in Fig. 10. In the figure, the ATC circuit 22 is constructed by a selector circuit (SEL) 142, a switch control circuit (SW CONT) 143, two constant threshold generating circuits 144 and 145, two comparators (COMP1 and COMP2) 146 and 147, and three switches (SW1, SW2 and SW3) 148, 149 and 150. The constitution of each of the constant threshold generating circuits 144 and 145 is substantially the same as shown in Fig. 12, where the constant threshold value V 1 or V 2 is determined by the ratio of the resistances R 1 and R 2 . In operation of the ATC circuit, the selector circuit 142 outputs a 3-bit selecting signal in response to a 2-bit mode setting signal applied to setting terminals A and B. The constant threshold generating circuit 144 outputs the first constant threshold value V 1 , the constant threshold generating circuit 145 outputs the second constant threshold value V 2 ,. The comparator 146 outputs a high level signal when the variable threshold value Va is higher than the first constant threshold value V 1 , and outputs a low level signal when the variable threshold value Va is lower than the first constant threshold value V 1 . Similarly, the comparator 147 outputs a high level signal when the variable threshold value Va is higher than the second constant rhreshold value V 2 , and outputs a low level signal when the variable threshold value Va is lower than the second constant threshold value V 2 . Based on the selecting signal from the comparators 146 and 147, the switch control circuit 143 selects one of the three outputs 1 ○, 2 ○ and 3 ○ to be energized. In response to the energized output signal 1 ○, 2 ○ or 3 ○, the corresponding switch 148, 149 or 150 is turned on to output on ATC output signal. Namely, when the set mode is the NT mode, only the switch 149 is turned ON to output the V 1 as the ATC output signal when Va is larger than V 1 ; only the switch 148 is turned ON to output the Va as the ATC output signal when Va is smaller than V 1 and higher than V 2 ; and only the switch 150 is turned ON to output the V 2 as the ATC output signal when Va is lower than V 2 . Similarly, when the set mode is the TE mode, only the switch 148 is turned ON to output Va when Va is higher than V 2 ; and only the switch 150 is turned ON when Va is lower than V 2 . Figure 15 is a circuit diagram showing an example of the construction of the selector circuit 142 and the switch control circuit 143 shown in Fig. 14. In the figure, the selector circuit 142 is constructed by inverters 151 and 152, and NAND gates 153, 154, and 155 forming a decoder. Similarly, the switch control circuit 143 is constructed by inverters 156 and 157, and NAND gates 158 to 169, forming an another decoder. As will be apparent from the foregoing description, according to the present invention, in a receiver circuit in an ISDN terminal or in a network temrination, since the influence of noises on the line on the treshold voltage is removed, and in the NT mode, since the negative influence of the superimposed waves of frame synchronization signals on the signal detection is removed, bit errors or synchronization deviation due to these influences can be prevented. Also, by providing the switching function between the NT mode and the TE mode, circuits having the same characteristic can be commonly used for either the NT mode or the TE mode so that the cost is lower in comparison with the case when the circuits are manufactured with different characteristics for the NT mode and the TE mode. Reference signs in the claims are intended for better understanding and shall not limit the scope.

Claims: A threshold value control system for discriminating an input signal received by a receiver circuit, comprising: variable threshold value generating means (21 and 22) for generating a variable threshold value which varies depending on the level of said input signal; constant threshold value generating means (144 and 145) for generating at least one constant threshold value by which the level of said input signal can be discriminated even when the level of said input signal cannot be distinguished by said variable threshold value; threshold comparing means (146 and 147), operatively connected to said variable threshold value generating means and said constant threshold value generating means, for comparing said variable threshold value and each of said at least one constant theshold values to output a comparison result; switching means (148, 149 and 150), operatively connected to said variable threshold value generating means, said constant threshold value generating means, and said threshold comparing means, for passing only one of said variable threshold value and said at least one constant threshold value as an input digital signal discriminating threshold value, based on the comparison result output from said threshold comparing means, said input digital signal discriminating threshold value being sufficient to discriminate the digital level of said input signal; and comparing means (23), operatively connected to receive said input signal and the output of said switching means, for comparing the level of said input signal and said input digital signal discriminating threshold value to output a discriminated results characterised by: mode setting means (142) for generating a mode setting signal, the mode corresponding to whether a plurality of terminals are to be connected to the receiver circuit; and said mode setting means comprising means for generating an NT mode selecting signal when said receiver circuit is included in a terminal acting as a network terminal in an ISDN network, and further comprising means for generating a TE mode selecting signal when said receiver circuit is included in a terminal acting as terminal equipment in an ISDN network; said switching means being further connected to said mode setting means and responsive to said mode setting signal, for providing the comparing means (23) with said input digital signal discriminating threshold value. A threshold value control system as claimed in claim 1, wherein said receiver circuit is included in one of NT1, NT2, and ISDN terminals in an ISDN network. A threshold value control system as claimed in claim 1, wherein said mode setting means is a decoder for decoding plural bits of a mode selecting signal to generate said mode setting signal. A threshold value control system as claimed in claim 1, further comprising peak holding means (21) for holding the peak level of said input signal. A threshold value control system as claimed in claim 4, wherein said variable threshold value generating means comprises means for generating said variable threshold value which is a predetermined percentage of the peak level of said input signal and which increases in accordance with an increase of the level of said input signal. A threshold value control system as claimed in claim 1, further comprising switch control means (143), operatively connected to said mode setting means and said threshold value comparing means, for generating a switch control signal based on the mode setting signal output from said mode setting means and the compared result output from said threshold comparing means, said input digital signal discriminating threshold value being output from said switching means in response to said switch control signal output from said switch control means. A threshold value control system as claimed in claim 1, wherein said constant threshold value generating means comprises first threshold voltage generating means (144) for generating a first constant threshold value (V 1 ) by which the input digital signal level can be discriminated by said comparing means even when the variable threshold value is increased to be higher than said first constant threshold value so that the input digital signal level cannot be discriminated by the increased variable threshold value due to superimposition of frame signals from a plurality of terminals, and said switching means comprises means for outputting said first threshold value when said variable threshold value is higher than said first constant threshold value and when said mode setting means generates said NT mode selecting signal. A threshold value control system as claimed in claim 7, wherein said constant threshold value generating means comprises second threshold voltage generating means (145) for generating a second constant threshold value (V 2 ) by which the input digital signal level can be discriminated by said comparing means even when the variable threshold value is lower than said second constant threshold value, and said switching means comprises means for outputting said second threshold value when said variable threshold value is lower than said second constant threshold value and when said mode setting means generates said NT mode selecting signal. A threshold value control system as claimed in claim 8, wherein said switching means comprises means for outputting said variable threshold value when said variable threshold value is lower than or equal to said first constant threshold value and higher than or equal to said second constant threshold value (V 2 ), and when said mode setting means generates said NT mode selecting siqnal. A threshold value control system as claimed in claim 8 , wherein said switching means comprises means for outputting said second threshold value when said variable threshold value is lower than said second constant threshold value and when said mode setting means generates said NT mode selecting signal. A threshold value control system as claimed in claim 8 , wherein said switching means comprises means for outputting said variable threshold value when said variable threshold value is higher than or equal to said second constant threshold value and when said mode setting means generates said TE mode selecting signal. A threshold value control system as claimed in claim 8 , wherein said switching means comprises means for outputting said second threshold value when said variable threshold value is lower than said second constant threshold value and when said mode setting means generates said TE mode selecting signal. A threshold value control system as claimed in claim 1 wherein said constant threshold value generating means comprises means (144) for generating a constant threshold value (V 1 ) by which the input digital signal level can be discriminated by said comparing means even when the variable threshold value is increased to be higher than said constant threshold value so that the input digital signal level cannot be discriminated by the increased variable threshold value due to superimposition of frame signals from a plurality of terminals, and said switching means comprises means for outputting said variable threshold value to said comparing means when said variable threshold value is lower than or equal to said constant threshold value, and for outputting said constant threshold value when said variable threshold value is higher than said constant threshold value. A threshold value control system as claimed in claim 1, wherein said constant threshold value generating means comprises means (145) for generating a constant threshold value (V 2 ) by which the input digital signal level can be discriminated by said comparing means even when the variable threshold value is increased to be higher than said constant threshold value, and said switching means comprises means for outputting said variable threshold value to said comparing means when said variable threshold value is higher than or equal to said constant threshold value, and for outputting said constant threshold value when said variable threshold value is lower than said constant threshold value. A threshold value control system as claimed in claim 1, wherein said switching means comprises means for outputting said variable threshold value when said variable threshold value is lower than or equal to a first constant threshold value and higher than or equal to a second constant threshold value, and when said mode setting means generates said NT mode selecting signal; means for outputting said second constant threshold value when said variable threshold value is lower than said second constant threshold value and when said mode setting means generates said NT mode selecting signal; for outputting said variable threshold value when said variable threshold value is higher than or equal to said second constant threshold value and when said mode setting means generates said TE mode selecting signal; and means for outputting said second constant threshold value when said variable threshold value is lower than said second constant threshold value and when said mode setting means generates said TE mode selecting signal.

Inventors: IKEDA KOJI, SHUTOU HIDEKI, IKEDA, KOJI, SHUTOU, HIDEKI, SHUTOU, HIDEKI, KAWAGUCHI APATO 202
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1990
Main classification: H04L25
IPC codes: H04L25, H04M11, H03K5