The present invention relates to a digital to analog converter for converting binary words to amplitude values between a negative and a positive maximum potential according to an expansion curve which consists of continuous substantially linear segment, containing equally divided intervals. The bit positions in the binary words indicate the polarity and the segment- and interval-identity of the amplitude value. The converter also contains a register for storing received binary words to be connected and a reference potential source to supply reference potentials necessary for the conversion.
As expansion curves used in PCM-codec-equipments, CCITT (Comite Consultatife International Telephonique) has recommended a so called A and .mu.-law, according to CCITT.REc.G.711-5378/79 and 5380/81, respectively. Common for both laws is that the binary words which are to be converted to amplitude values consist of p + m + n bits with determined positions, whereby p = 1, m = 3 and n = 4, and that the highest amplitude values are obtained for continuous linear segments, where the drop is doubled (e = 2) for subsequent segments and where each segment consists of 2.sup.n equally divided intervals. The positions provided for said p, m and n bits state the polarity, segment- and interval-identity, respectively, of the amplitude value. According to the A-law, r is equal to 6 and the lowest amplitude values are obtained by a further seventh segment, the drop of which is according to the doubling rule, but which consists of 2.sup.n+1 intervals. Because m = 3, it is possible to state 2.sup.3 segment identities. In the A-law, two of the segment identities are used in combination with 2.sup.n possible interval identities, in order to state such further segment and its 2.sup.n+1 intervals. According to the .mu.-law, r is equal to 7 and the lowest amplitude values are obtained by a further eighth segment which also consists of 2.sup.n intervals, but contains two different drops according to the doubling-law, one of which concerns the interval for the lowest amplitude value and the other of which concerns the other 2.sup.n-1 intervals of this further segment. Disregarding the small non linearity due to such two different drops, the .mu.-law defines a complete homogeneous curve with an expansion factor e = 2.
It appears, for example, from an article "Integrated Circuits and Pulse Coding Means New Gains for Telephone" which was published in the periodical "Electronics" Sept. 19, 1966, and from the published Swedish patent applications Nos. 7409928-4 and 7412298-7, that such digital to analog converters are used in PCM-communication systems not only for demodulating of PCM-signals in order to generate analog signals, but also for modulating analog signals in order to generate PCM-signals. In this case, the PCM-coder is provided with a feedback including a digital to analog converter to compare a demodulated PCM-word with the analog input signal. A successive approximation is carried out to obtain equality between the input and demodulation signal by means of as few comparisons as possible. To use the same digital to analog converter equipment both upon modulation and demodulation guarantees that the compression inserted on the sender side of a system corresponds exactly to the expansion inserted on the receiver side. The more PCM-communication systems extend towards the actual subscriber stations, the larger the number of Codec equipments and the more the quality of the system depends on the tolerances allowed for mass-production of the digital to analog converter arranged for example in digital telephone apparatuses.
The above-mentioned publications show digital to analog converters in which the expansion, for example, is achieved by means of a digital-digital expandor and which comprise a linear digital to analog converter. Linear digital to analog conversion is, in a known manner, obtained by, for example, a R-2R resistor ladder wherein constant currents are supplied to as many of its inputs as the respective PCM-word contains a determined binary value, for example binary "1". Linear digital to analog conversion is obtained in a likewise known manner by a ramp coder. Steps lead up along a linear amplitude value ramp until the step number is equal to the binary word. Said publications state that the expensive digital-digital expandor can be avoided with ramp segments whose drops correspond to the expansion curve, the different drops being obtained with different stepping rates or with different reference voltages for the amplitude value change per interval valid for the respective segment.
To sum up, the drawback with the known devices is that they need at least one reference voltage per segment, that they comprise switches whose internal impedance influences the conversion result, that they, due to the climbing process, are too slow to be used for successive approximations, and that they above all are quite unsuitable for a LSI (Large Scale Integration) technique of mass-production.
The present invention, the characteristics of which appear from the following claims, avoids such drawbacks. To carry out, for example, a conversion according to the A-law only one reference voltage is used which is always equally loaded. All 2.sup.n+m digital to analog conversions are achieved in the manner that only two switches are switched per conversion. The internal impedance of the switches does not significantly influence the amplitude value result which is obtained directly, i.e. without the climbing process. The converter according to the invention incudes as a main part a resistor ladder network connected to switch groups the ladder network switches being very well suited for a LSI mass-production.
The converter according to the invention will now be described with reference to the accompanying drawings;
FIG. 1 shows the block circuit of the converter according to the invention;
FIGS. 2-4 show a resistor ladder network for a .mu.-law and an A-law expansion curve; and
FIG. 5 shows logical circuits for an A-law converter.
In FIG. 1 a register R for the storage of the binary words to be connected has its output connected to a decoding logic DL. The expansion curve under consideration is homogeneous or according to the .mu.-law so that the decoding logic consists of three decoders PDEC, SDEC and IDEC, connected to the p, m and n fields of the register and which per word generate one of two polarity signals p.sub.1 and p.sub.2, one of 2.sup.m segment identity signals s.sub.1 to s.sub.8 and one of the 2.sup.n interval identity signals i.sub.1 to i.sub.16, where increasing number designations in the identity signals are presumed to belong to increasing amplitude values according to the curve. If the expansion curve is according to the A-law, the decoding logic is provided with 7 outputs for the segment-identity signals and with 32 outputs for the interval-identity signals, as will be described in connection with FIGS. 4 and 5.
A reference potential source PS supplies: on its output GR a ground potential which is transferred to the first output OUT1 of the converter, and supplies on its outputs PM equal amplitude positive and negative maximum voltage potentials to achieve a digital to analog conversion which is symmetrical in relation to the ground potential. In a homogeneous or a .mu.-law curve the reference potential source supplies on its outputs PK a positive and a negative compensation potential which is transferred via a first gate pair GK to an input TK of a resistor ladder network L described more in detail below. The compensation potential differs somewhat from the ground potential as will hereinafter be described. The polarity signals p 1 and p 2 activate the first gate pair GK and a second gate pair GM so that either the positive maximum potential together with the negative compensation potential or the negative maximum potential together with the positive compensation potential is transferred to the resistor ladder network. In an A-law curve the compensation potential is replaced by the ground potential, therefore in such case no first gate pair GK is needed.
Each of the interval- and segment-identity signals s1 to s8 and i 1 to i8 activates a switch in a first and second switch group SG1, SG2, respectively, which switches are symbolized in FIG. 1 by AND-gates. The gate outputs of the first group SG1 are connected to the second output OUT2 of the converter. The gate inputs of the second group are connected through the second gate pair GM to the outputs PM of the reference potential source PS. The resistor ladder network L is provided with potential output terminals H.sub.x each of which is connected to a gate input in the first switch group SG1, and with potential input terminals T.sub.x each of which is connected to a gate output in the second switch group SG2, SG1 increasing x-designations being assumed to relate to increasing amplitude values according to the expansion curve.
FIG. 2 shows a ladder network, the one side of which is terminated by a final transverse resistor RF. The ladder consists of equal longitudinal resistors RL and, with the exception of final resistor, equal transverse resistors RT. The first terminals of the transverse resistors are mutually connected to input TK. As is known, an output voltage received through an arbitrary transverse resistor RTH is changed by an expansion factor e if an input voltage is moved between any two transverse resistors which are connected to one of the longitudinal resistors, RF = RL(e-1) and RT = RL.multidot.e(e-1).sup.2 being valid for the resistor values. Each of a number of transverse resistors have their second terminals connected to a potential input terminal T.sub.x. Furthermore it is known that the input voltage source is loaded with the same resulting resistance value independently of to which input terminal it is connected. To achieve increasing output voltages in correspondance to the increasing number designations of the input terminals, the general rule fulfilled in FIG. 2 is valid, i.e., that the number of longitudinal resistors between the transversal resistor RTH and the input terminals gradually decrease for an increasing number designations. Concerning thi rule, the most practical realizations shown in FIGS. 3 and 4 is a ladder network terminated at both sides, all transverse resistors being connected to the input terminals, the output voltage being obtained through the one final transverse resistor, the input terminal of which is related to the segment containing the highest amplitude values.
According to FIG. 2 said output transverse resistor RTH comprises a series connection of a divider resistor RD which is cconnected to the first terminals of the transverse resistors, and a chain which consists of 2.sup.n -1 equal chain resistors RC. The 2.sup.n outer and inner terminals of the resistor chain are connected to the potential output terminals H.sub.x, the number of chain resistors between the divider resistor and the output terminals gradually increasing for increasing number designations. If 2.sup.n .multidot.RC = (e-1) RD is valid for the resistance values of the series connection, then two subsequent intervals which belong to different segments are related to the outer terminals of the resistor chain. The sum of the resistance values of the series connection may maximally be the same as the resistance value of the transverse resistor RTH. If the resistance value is less for the series connection than for the transverse resistor such a supplement resistor RS is arranged between the resistor chain and the respective longitudinal resistors that the mutual resistance relation of the resistor ladder remains uninfluenced. In the embodiment for a .mu.-law and an A-law expansion curve shown in FIG. 3 and FIG. 4, respectively, such output resistor as mentioned above is constituted by a final transverse resistor and due to the expansion factor e = 2 the following mutual resistance relation is obtained: RF = RL and RT = 2.multidot.RL. For the divider resistor a resistance is chosen RD = RF/2, and, consequently, it is determined that the resistanc value of the chain resistors and the supplement resistor is RC = RS = RF/2.sup.n+1.
In a digital to analog converter which is provided with a resistor ladder network according to FIGS. 2 and 3 is there obtained the minimum amplitude value between the converter outputs OUT1 and OUT2 if the maximum potential is transferred to the input terminal T.sub.1 and if the output OUT2 is connected to the output terminal H.sub.1. To displace this minimum amplitude value so that it corresponds to the minimum value prescribed according to the expansion curve the input TK of the resistor ladder is fed with said compensation potential. Even the nonlinearity in the segment with the lowest amplitude values according to a .mu.-law expansion curve explained in the introduction is achieved with a suitable compensation potential.
In the ladder network shown in FIG. 4 for an A-law expansion curve the amplitude values are achieved for the segment consisting of 32 intervals, mentioned in the introduction, by making the whole respectiv final transverse resistor as one resistor chain which consists of 32 equal chain resistors RC = RF/32 and which is connectedto 32 potential output terminals H.sub.1 and H.sub.32. The terminals H.sub.1 to H.sub.16 are only used for the lowest amplitude values of this expansion curve in combination with a supply of potential to the inpt terminal T.sub.1. The terminals H.sub.17 to H.sub.32 are used in combination with one of the potential input terminals T.sub.1 to T.sub.7. In this case the divider resistor is a part of the resistor chain. Consequently no compensation potential is needed and therefore input TK of the ladder network is directly connected to the output GR of the reference potential source to be supplied with said ground potential.
FIG. 5 shows logical gates which are included in decoding logic DL of FIG. 1 and with the help of which the 7 segment- and 32 interval-identity signals are generated which are required according to the A-law expansion. In the segment decoder SDEC the outputs A and B, respectively, which are related to the binary contents zero and one, respectively, of said m-positions, are connected to an OR-gate OR, on the output of which is obtained the segment-identity signal s.sub.1. The other segment-identity signals s.sub.2 to s.sub.7 are obtained on the other outputs of the segment decoder SDEC. The interval-identity signals i.sub.1 to i.sub.32 are obtained on the outputs of 16 AND-gate pairs AND1 to AND16, each of which having one input connected to output A of the segment decoder and another input to an output of the interval decoder IDEC. Each AND-gate pair is provided with an inverting input so that an activated and unactivated output A, respectively, results in the interval-identity signals i.sub.1 to i.sub.16 and i.sub.17 to i.sub.32, respectively.