# Patent

## Title
Solid state keyboard

## Abstract

A double-ended code converter (10) contains three or more like-configured amplifiers (T.sub.O -T.sub.M+1). Each has a first flow electrode (E1), a second flow electrode (E2), and a control electrode (CE) for receiving a signal to control charge carriers moving from the first electrode to the second. The first electrodes are coupled to a circuit supply (12) which may be a current source or a voltage supply. The second electrodes are selectively coupled to one or the other of a pair of lines (L.sub.B and L.sub.BN) which are coupled to respective load elements (14.sub.B and 14.sub.BN) to provide a pair of complementary signals (V.sub.B and V.sub.BN).

## Background
This invention relates to code converters suitable for use in devices such as analog-to-digital (A/D) converters.

Speed, component count, and accuracy are important considerations in designing an A/D converter. Parallel converters provide the greatest speed in converting an analog input voltage (generally referred to as "37 V.sub.I ") into an n-bit digital code. A typical parallel A/D converter, such as that described in Nordstrom et al, UK Pat. No. 1,547,918, or Fujita, EPO Publication 120,424, has 2.sup.n input comparators for comparing V.sub.I with a like number of reference voltages.

The comparators are differential devices. For example, each comparator in Nordstrom et al employs a pair of NPN transistors whose emitters are tied to a current source. The bases of the pair follow V.sub.I and a corresponding one of the reference voltages. The collectors provide complementary signals on a pair of lines connected to respective load elements. Each comparator is in one of two states. As V.sub.I traverses an input voltage range in one direction, a progressively greater number of the comparators provide outputs representing a particular one of the states.

A logic network operates on the "thermometer" output supplied by the comparators to generate 2.sup.n circuit signals. Each circuit signal is normally logical low and reaches logical high only when V.sub.I is in a designated portion of the input range. The designated portion for each signal is separate from (i.e., does not overlap) the designated portion for each other signal. The designated portions are also spread out at approximately equal intervals across the input range. In this way, all the circuit signals are low at any time except for the one corresponding to the current value of V.sub.I.

A code converter transforms the circuit signals into the digital code which is supplied on n output lines. In Nordstrom et al, the code converter consists of 2.sup.n NPN transistors. Each has one or more emitters connected selectively to the output lines according to the desired coding. The code converter in Fujita is an array of like-polarity field-effect transistors (FET's) whose sources are grounded. The drains of the FET's are selectively connected to the output lines. Since the code converter in Fujita or Nordstrom et al is single ended, a reference must be used to determine whether each bit of the output code is logical low or logical high.

The main disadvantage of a parallel A/D converter is a high component count due to the large number of input comparators. The device requires a large chip area when implemented as an integrated circuit.

One of the more promising means for cutting component count is a "folding" system. See: van de Grift et al, "A Monolithic 8-Bit Video A/D Converter," IEEE JSSC, June 1984,  pp. 374-378; and van de Plassche et al, "A High-Speed 7 Bit A/D Converter," IEEE JSSC, Dec. 1979, pp. 938-943. As described in each of these references, a folding A/D converter contains a coarse parallel A/D converter, a folding circuit, and a fine parallel A/D converter. The coarse converter operates directly on V.sub.I to generate the m most significant bits of the digital code. The folding circuit contains a set of input amplifiers that compare V.sub.I with at least four different reference voltages supplied from a voltage divider. The amplifiers are interconnected in such a way as to directly generate one or more pairs of complementary waveforms having a repetitive rounded triangular shape as a function of V.sub.I. Extreme values of each waveform occur at V.sub.I values dependent on selected ones of the reference voltages. The fine converter operates on these waveforms to produce the remaining n-m bits.

A folding A/D converter utilizes considerably less comparators, including input amplifiers, than an equivalent parallel converter. Chip area is reduced dramatically. However, generation of the repetitive rounded triangular waveforms in the unitary way described above makes the folding converter unduly sensitive to noise. It would be desirable to have a simple technique for overcoming this problem.

The central feature of this invention is a circuit that converts an input code into an output code consisting of one or more pairs of complementary signals. Due to the double-ended nature of the present code converter, there is no need to use a reference for ascertaining whether each bit of the output code is at a high level or a low level. Accuracy is thus better than that of the single-ended code converters discussed above. Frequency response is also better.

In one aspect of the invention, the present code converter employs three or more like-configured amplifiers respectively corresponding to a like number of different circuit signals that provide the input code. Each amplifier has a first flow electrode, a second flow electrode, and a control electrode for receiving the corresponding circuit signal. Charge carriers that move between the flow electrodes of each amplifier originate at its first electrode and terminate at its second electrode under control of its control electrode. The first electrodes are coupled to a current source. The second electrodes are selectively coupled to one or the other of a pair of lines in such a manner that each line is coupled to at least one of the second electrodes. In turn, the lines are coupled to respective load elements to provide a pair of largely complementary signals that constitute the output code.

In another aspect of the invention, the code converter is part of a circuit having a thermometer input section which generates the input code in response to an input parameter that varies across an input range. The input code is formed with three or more different circuit signals. Each reaches a high-level value when the parameter is in a designated portion of the input range separate from the designated portion for each other circuit signal. The designated portions are spread out at largely equal intervals across the input range. The code converter again utilizes three or more like-configured amplifiers of the type described above. The control electrode of each amplifier receives the corresponding circuit signal. When that signal reaches its high-level value, the amplifier becomes maximally conductive. The first electrodes are coupled to a voltage supply. The second electrodes are coupled in the manner disclosed above to a pair of lines coupled to respective load elements. The lines provide the complementary output code.

The instant code converter is useful in the folding circuit of a folding A/D converter. In contrast to the unitary folding circuits of prior art folding A/D converters, the folding circuit in the present A/D converter utilizes a pair of functionally different portions for generating the repetitive triangular-like waveforms. The division into two portions reduces sensitivity to noise, thereby improving accuracy.

One of the portions produces three or more circuit signals respectively associated with different pairs of four or more reference voltages. The waveform for each circuit signal has a rounded triangular shape that reaches a high-level value when the input voltage is between the associated pair of reference voltages. The other portion employes the present code converter for selectively combining these waveforms to produce the repetitive triangular waveforms.

FIG. 1 is a block diagram of a circuit consisting of an encoder and a double-ended code converter according to the invention.

FIG. 2 is a circuit diagram of an expanded embodiment of the circuit of FIG. 1 in which the encoder produces digital signals;

FIGS. 3a and 3b are graphs of waveforms for certain signals in this embodiment.

FIG. 4 is a circuit diagram of an expanded embodiment of the circuit of FIG. 1 in which the encoder produces linear signals;

FIG. 5 is a graph of the waveforms for certain signals in this embodiment.

FIG. 6 is a block diagram of a folding A/D converter utilizing the encoding and code converting circuitry of FIG. 4;

FIGS. 7a and 7b are graphs of waveforms for the respective input and output codes of the code converting circuitry.

Referring to the drawings, FIG. 1 illustrates a circuit containing a code converter 10 which transforms an input code consisting of M+2 circuit voltages V.sub.A0, V.sub.A1, . . . V.sub.AM+1 into an output code consisting of largely complementary main voltages V.sub.B and V.sub.BN. M is 1 or more. Voltages V.sub.A0 -V.sub.AM+1 are often referred to collectively as the "V.sub.A " signals. Likewise, voltages V.sub.B and V.sub.BN are often referred to collectively as the "V.sub.B " signals.

Code converter 10 is formed with M+2 like-configured three-electrode amplifiers T.sub.0, T.sub.1, . . . T.sub.M+1, often referred to collectively as the "T" amplifiers. Each amplifier T.sub.j (where j runs from 0 to M+1) has a first flow electrode (E1), a second flow electrode (E2), and a control electrode (CE) for controlling current flow between the flow electrodes (E1 and E2). Charge carriers moving between the flow electrodes originate at the first electrode and terminate at the second electrode.

Each amplifier T.sub.j may be embodied with a single transistor. In the case of a bipolar transistor, its emitter, collector, and base are respectively the first, second, and control electrodes. These are the source, drain, and gate for an FET of either the insulated-gate or junction type. Amplifier T.sub.j could, however, consist of more than a single transistor. One example is a bipolar Darlington circuit in which the emitter of an input transistor is connected to the base of a trailing transistor. In this instance, the control electrode is the base of the input transistor, while the first and second flow electrodes are the emitter and collector of the trailing transistor.

As used in describing the T amplifiers, "like-configured" means that they have corresponding elements interconnected in the same way and that each set of corresponding elements is of the same semiconductor polarity. For example, the T amplifiers would generally be "like-configured" if they all are NPN transistors (even though of differing sizes), but not if some are NPN transistors while others are PNP devices. Likewise, Darlington circuits are "like-configured" as long as the input transistors are of the same polarity and the trailing transistors are of the same polarity (even if different from that of the input transistors).

Voltages V.sub.A0 -V.sub.AM+1 are respectively supplied as input signals to the control electrodes of amplifiers T.sub.0 -T.sub.M+1. Their first electrodes are all connected to a circuit supply 12 which may be a current source or a voltage supply. The second electrodes of selected ones of the T amplifiers are connected to an output line L.sub.B which is connected to a load element 14.sub.B to provide voltage V.sub.B. The second electrodes of the remainder are connected to an output line L.sub.BN which is similarly connected to a load element 14.sub.BN to provide voltage V.sub.BN. The particular connections of the second electrodes depend on the desired output code.

Each voltage V.sub.Aj varies between a low-level value and a high-level value. The adjectives "low-level" and "high-level" are used to distinguish two different signal levels. The actual voltage of the "high-level" value may be greater than or less than that of the "low-level" value, depending on the internal characteristics of the T amplifiers. For convenience, the low-level and high-level values are respectively referred to as "0" and "1". When V.sub.Aj is at "0", amplifier T.sub.j is substantially non-conductive. Amplifier T.sub.j is maximally conductive when V.sub.Aj is at "1".

The input code is normally chosen such that only one of the V.sub.A signals is at "1" at any time, the remainder all being at "0". As a result, only one of the T amplifiers is maximally conductive at any time. The maximally conductive amplifier draws current through the particular line L.sub.B or L.sub.BN connected to its second electrode. This pulls the corresponding main signal V.sub.B or V.sub.BN to a low-level value also referred to here as "0". The remainder of the T amplifiers are all turned off so that no current flows through the other line L.sub.BN or L.sub.B. The other main signal V.sub.BN or V.sub.B is at a high-level value again denoted as "1". V.sub.B and V.sub.BN are complementary because their sum is "1".

Each of a pair of the V.sub.A signals may lie between "0" and "1" such that the sum of the two signals is "1". The remainder of the V.sub.A signals are all at "0". The corresponding pair of the T amplifiers are partially conductive. The pair form a differential device operating in its "linear" range. If the second electrodes of both of the partially conductive amplifiers are connected to the same line L.sub.B or L.sub.BN, it conducts current to pull the corresponding signal V.sub.B or V.sub.BN to "0". No current flows through the other line L.sub.BN or L.sub.B. Its signal V.sub.BN or V.sub.B is at "1". If the second electrode of one of the partially conductive pair is connected to line L.sub.B while the second electrode of the other is connected to line L.sub.BN, V.sub.B and V.sub.BN lie between "0"  and "1". Their actual values depend on the relative values of the two "non-zero" V.sub.Aj signals. The sum of V.sub.B and V.sub.BN is, however, still "1".

There are several further limitations which usually must be satisfied for V.sub.B and V.sub.BN to be complementary. If supply 12 is a current source that provides a substantially constant supply current, the sum of V.sub.B and V.sub.BN is fixed by the supply current. The current source therefore should be fully conductive. Otherwise, the sum of V.sub.B and V.sub.BN will differ from "1" because insufficient current flows through lines L.sub.B and L.sub.BN. The T amplifiers normally need not be identical. However, they should be identical if supply 12 is a voltage supply, particularly when they are embodied with FET's.

An input encoder 16 generates the V.sub.A signals in response to an input parameter which varies across an input range. The input parameter is denoted generally as "V.sub.I ". Encoder 16 preferably sets each signal V.sub.Aj at "1" only when V.sub.I is in a single portion of the input range. This portion is separate from the portions of the input range where the other V.sub.A signals reach "1".

FIG. 2 shows an expanded version of FIG. 1 in which the V.sub.A signals are "digital" signals. The circuit of FIG. 2 contains two code converters 10.sub.X and 10.sub.Y. Each is a bipolar embodiment of converter 10 for which M is at least 2. Converters 10.sub.X and 10.sub.Y receive the same V.sub.A input code but have different second electrode (collector) connections so as to produce different V.sub.B output codes.

Dropping the subscript "X" or "Y" that distinguishes the elements of converter 10.sub.X from those of converter 10.sub.Y, each amplifier T.sub.j of FIG. 1 is an NPN transistor Q.sub.j in FIG. 2. Supply 12 is a current source I.sub.B that provides a substantially constant supply current. Each load element 14.sub.B or 14.sub.BN is a load resistor R.sub.L. Terminals V.sub.CC and V.sub.EE respectively provide high and low supply voltages.

Input encoder 16 in FIG. 2 consists of a thermometer encoder 18 and M logical AND gates G.sub.1 -G.sub.M. In response to parameter V.sub.I, encoder 18 generates M+1 digital signals S.sub.1 -S.sub.M+1 that have a "thermometer" variation of the type indicated in FIG. 3a. As V.sub.I moves in the positive direction through the input range extending here from 0 to M+1, each signal S.sub.j switches in sequence from logical "0" to logical "1". The S.sub.j transitions are very sharp. Encoder 18 also generates the respective digital complements S.sub.N1 -S.sub.NM+1 of signals S.sub.1 -S.sub.M+1. For j running from 1 to M, each gate G.sub.j logically "AND's" signals S.sub.j and S.sub.Nj+1 to produce voltage V.sub.Aj. V.sub.A0 and V.sub.AM+1 are supplied directly as signals S.sub.N1 and S.sub.M+1.

FIG. 3b illustrates how the V.sub.A signals vary as a function of V.sub.I. Except for V.sub.A0 and V.sub.AM+1, each V.sub.Aj waveform sequentially rises sharply from "0" to "1", stays at "1" for a specified interval which is largely the same for all of waveforms V.sub.A1 -V.sub.AM, and falls sharply to "0" as the next signal V.sub.Aj+1 rises from "0" to "1". FIG. 3b also shows the resulting waveforms for signals V.sub.BX and V.sub.BNX for the particular collector connections depicted in FIG. 2 for converter 10.sub.X.

FIG. 4 illustrates an expanded version of FIG. 1 in which the V.sub.A signals are "linear" signals. The circuit of FIG. 4 contains an array 20 consisting of P code converters 10.sub.1 -10.sub.p. Each converter 10.sub.k (where k runs from 1 to P) is an embodiment of converter 10 utilizing the same elements as converter 10.sub.X or 10.sub.Y of FIG. 2. Converters 10.sub.1 -10.sub.p have the same second electrode (collector) connections relative to one another but receive different V.sub.A input codes and thereby produce different V.sub.B output codes.

In FIG. 4, an input amplifier circuit 22 operates on parameter V.sub.I, which is here an analog input voltage, to produce the V.sub.A signals. Circuit 22 is formed with a resistive voltage divider 24 and an array 26 consisting of P groups 26.sub.1 -26.sub.p of differential amplifiers A.sub.jk. In turn, divider 24 consists of (M+1)P-1 resistors R.sub.D connected in series between low voltage V.sub.R11 and high voltage V.sub.RM+1P. Including these two voltages, divider 24 provides amplifier array 26 with (M+1)P reference voltages V.sub.R11 -V.sub.R1P . . . V.sub.RM+11 -V.sub.RM+1P. Each amplifier group 26.sub.k consists of M+1 input amplifiers A.sub.1k -A.sub.M+1k that jointly provide M+2 voltages V.sub.A0K -V.sub.AM+1k to respective transistors Q.sub.0k -Q.sub.M+1k in converter 10.sub.k. Each amplifier 26.sub.k in combination with divider 24 is thus an embodiment of encoder 16.

Each amplifier A.sub.jk amplifies the difference between voltages V.sub.I and V.sub.Rjk. The core of amplifier A.sub.jk is a pair of NPN transistors Q.sub.L and Q.sub.R whose emitters are connected to a constant current source I.sub.EE. Voltages V.sub.I and V.sub.Rjk are supplied to the bases of transistors Q.sub.L and Q.sub.R. Their collectors are connected to respective load resistors R.sub.C.

The non-inverted output of amplifier A.sub.jk would normally be available at the Q.sub.R collector. The Q.sub.L collector would normally provide the inverted (or complementary) output. For j running from 1 to M, each signal V.sub.Ajk is taken from a connection of the Q.sub.R collector in amplifier A.sub.jk to the Q.sub.L collector in amplifier A.sub.j+1k. This acts to "linearly AND" the non-inverted A.sub.jk output and the inverted A.sub.j+1k output. Components 24 and 26.sub.k thus perform a "linear" function similar to the "digital" function performed by components 18 and G.sub.1 -G.sub.M in FIG. 2.

FIG. 5 generally illustrates how V.sub.A0 -V.sub.AM+1k vary with V.sub.I. Except for voltages V.sub.A0k and V.sub.AM+1k, each voltage V.sub.Ajk sequentially rises from "0" to "1" in a transition portion of the input range centered around V.sub.Rjk, stays at "1" in a main portion of the V.sub.I range extending from slightly above V.sub.Rjk to slightly below V.sub.Rj+1k, and then falls to "0" in another transition portion centered around V.sub.Rj+1k as the next voltage V.sub.Aj+1k rises from "0" to "1". Voltages V.sub.A0k and V.sub.AM+1k, which each make only a single transition, respectively account for underflow and overflow. Each transistor Q.sub.jk becomes progressively more conductive as its input voltage V.sub.jk moves from "0" to "1" and vice versa. The transitions in V.sub.A0k -V.sub.AM+1k are thereby reflected in V.sub.Bk and V.sub.BNk as shown in FIG. 5.

Resistors R.sub.D preferably all have the same value. Consequently, the "main" portions of the V.sub.I range all have approximately the same pulse width and are spread out at approximately equal intervals from one another. By suitably adjusting the R.sub.D values, each main portion can be compressed to a single point.

FIG. 6 illustrates an application of the encoding and code converting circuitry of FIG. 4 to an A/D converter of the multiple-folding type. This device converts analog voltage V.sub.I into an 8-bit digital code. M and P are both 8 here. The input section to the A/D converter is circuit 22 in which divider 24 provides 72 reference voltages V.sub.R11 -V.sub.R98. Amplifier array 26 in circuit 22 compares V.sub.I with each of V.sub.R11 -V.sub.R98 to produce 80 circuit voltages V.sub.A01 -V.sub.A98. Components 20 and 22 may include some additional circuitry to assume that the V.sub.A signals produce the necessary shapes for the V.sub.B signals at the low and high ends of the V.sub.I range.

For j and k each running from 1 to 8, FIG. 7a illustrates the general shape for V.sub.Ajk as a function of V.sub.I. Each V.sub.Ajk waveform would ideally have the triangular shape shown in dashed line. Due to practical amplifier characteristics, V.sub.Ajk varies according to the more rounded shape indicated in solid line. V.sub.Ajk reaches a maximum when V.sub.I is approximately half way between V.sub.Rjk and V.sub.Rj+1k.

Circuit 20, here acting as a folding array, electrically combines selected V.sub.A signals in the manner described above to generate 8 voltages V.sub.B1 -V.sub.B8 and their complements V.sub.BN1 -V.sub.BN8. FIG. 7b depicts part of the resulting V.sub.B waveforms. V.sub.B1 is shown in thicker line. The remaining waveforms have the same shape and spacing as those illustrated. Due to the roundings of the tips of the V.sub.A waveforms, each V.sub.B waveform has a repetitive rounded triangular shape. Each voltage V.sub.Bk or V.sub.BNk reaches extreme values when V.sub.I is approximately halfway between each pair of voltages V.sub.Rjk and V.sub.Rj+1k.

Returning to FIG. 6, an interpolation circuit 28 interpolates by a factor of 4 between each pair of consecutive V.sub.B signals to generate 32 interpolated signals V.sub.B1 -V.sub.B32 and their complements V.sub.NB1 -V.sub.NB32. Applicant's pending U.S. Pat. application Ser. No. 809,453, filed Dec. 16, 1985, discloses a suitable resistive interpolation circuit for this purpose. A group of comparators 30 compares V.sub.B1 -V.sub.B32 respectively with V.sub.NB1 -V.sub.NB32 to produce a string of 32 bits D1-D32. A code converter 32, which may be conventional or may follow the teachings of this invention, converts the bit string into the five least significant bits MSB-3-MSV-7 of the digital code.

The final part of the A/D converter is a group of comparators 34 which generate the three most significant bits MSB-MSB-2 in response to three pairs of substantially complementary further signals V.sub.C. For convenience, FIG. 6 indicates that array 20 provides the V.sub.C signals.

While the invention has been described with reference to particular embodiments, this description is solely for the purpose of illustration and is not to be construed as limiting the scope of the invention claimed below. For example, some or all of the V.sub.A signals could rise to their high-level values at two or more separate places in the input range. Various changes, modifications, and applications may thus be made by those skilled in the art without departing from the true scope and spirit of the invention as defined by the appended claims.

## Claims

1. An electronic circuit comprising a current source, two load elements respectively coupled to two lines, and at least three like-configured amplifiers respectively corresponding to a like number of different circuit signals, each amplifier having a first flow electrode, a second flow electrode, and a control electrode for receiving the corresponding circuit signal, charge carriers that move between the flow electrodes of each amplifier originating at its first electrode and terminating at its second electrode under control of its control electrode, the first electrodes of a specified pair of the amplifiers coupled to the current source, the second electrodes of the specified pair respectively coupled to the lines which provide respective signals that are largely complementary substantially whenever the current source is fully conductive, characterized in that a third specified one of the amplifiers has its first electrode coupled to the current source and its second electrode coupled to a selected one of the lines.

2. A circuit as in claim 1 characterized in that a fourth specified one of the amplifiers has its first electrode coupled to the current source and its second electrode coupled to a selected one of the lines.

3. A circuit as in claim 1 characterized in that each amplifier comprises a bipolar transistor having an emitter, a collector, and a base, which are respectively the first, second, and control electrodes of that amplifier.

4. A circuit as in claim 1 characterized in that each amplifier comprises a field-effect transistor having a source, a drain, and a gate which are respectively the first, second, and control electrodes of that amplifier.

5. A circuit as in claim 1 characterized in that the circuit signal to each specified amplifier is substantially a digital signal switching between a low-level value at which the amplifier is turned off and a high-level value at which the amplifier is turned on, only one of the circuit signals to the specified amplifiers being at its high-level value at any time, whereby substantially only one of the specified amplifiers is turned on at any time.

6. A circuit as in claim 1 characterized in that each specified amplifier becomes progressively more conductive as its circuit signal moves from a low-level value where the amplifier is substantially non-conductive to a high-level value where the amplifier is maximally conductive, the circuit signals to the specified amplifiers are linear signals dependent on an input parameter which varies across an input range, each linear signal reaches its high-level value when the parameter is in a designated portion of the input range and moves to its low-level value as the parameter traverses either of a pair of transition portions sandwiched about the designated portion which is spaced apart from the designated portion for each other linear signal, and each transition portion except the two most distant transition portions overlaps precisely one of the other transition portions, whereby two of the specified amplifiers may be conductive at any time.

7. A circuit as in claim 1 characterized in that the circuit signals depend on an input parameter which varies across an input range, each amplifier is maximally conductive when its circuit signal is at a high-level value occurring when the parameter is in a designated portion of the input range separate from the designated portion for each other circuit signal, and the designated portions are spread out at largely equal intervals across the input range.

8. A circuit as in claim 1 characterized by a further current source and two load elements respectively coupled to two further lines, the first electrodes of three further ones of the amplifiers coupled to the further current source, the second electrodes of the further amplifiers selectively coupled to one or the other of the further lines in such a manner that each further line is coupled to the second electrode of at least one of the further amplifiers, the further lines providing respective signals which are largely complementary substantially whenever the further current source is fully conductive.

9. An electronic circuit in which an input section provides at least three different circuit signals that vary between a high-level value and a low-level value in response to an input parameter which varies across an input range, each circuit signal reaches the high-level value when the parameter is in a designated portion of the input range separate from the designated portion for each other circuit signal, and the designated portions are spread out at largely equal intervals across the input range, characterized by: two load elements respectively coupled to two lines; and at least three like-configured amplifiers respectively corresponding to the circuit signals, each amplifier having a first flow electrode, a second flow electrode, and a control electrode for receiving the corresponding circuit signal so as to cause the amplifier to become maximally conductive when that signal is at the high-level value, charge carriers that move between the flow electrodes of each amplifier originating at its first electrode and terminating at its second electrode under the control of its control electrode, the first electrodes coupled to a source of a supply voltage, the second electrodes selectively coupled to one or the other of the lines in such a manner that each line is coupled to at least one of the second electrodes, the designated portions being sufficiently close to one another that the lines provide largely complementary signals.

10. A circuit as in claim 9 characterized in that the amplifiers are substantially identical.

11. A circuit as in claim 10 characterized in that each amplifier comprises a field-effect transistor having a source, a drain, and a gate which are respectively the first, second, and control electrodes of that amplifier.

12. An electronic circuit for converting an analog input voltage which varies across an input range into a digital code, there being: reference means for providing at least four different reference voltages spread out across the input range; means responsive to the input and reference voltages for generating at least one pair of largely complementary main signals, the voltage waveform for each main signal as a function of the input voltage being of a repetitive rounded triangular shape with extreme values occurring at values of the input voltage dependent on selected ones of the reference voltages; and means for operating on the main signals to generate at least part of the digital code; characterized in that the means for generating comprises: with different pairs of the reference voltages, the voltage waveform for each circuit signal as a function of the input voltage reaching a high-level value when the input voltage is at a specified value between the associated pair of reference voltages and moving to a low-level value as the input voltage moves away from the specified value; and circuit signals, each amplifier having a first flow electrode, a second flow electrode, and a control electrode for receiving the corresponding circuit signal, charge carriers that move between the flow electrodes of each amplifier originating at its first electrode and terminating at its second electrode under control of its control electrode, the first electrodes of three specified ones of the amplifiers coupled to the supply, the second electrodes of the specified amplifiers selectively coupled to one or the other of the lines in such a manner that each line is coupled to the second electrode of at least one of the specified amplifiers, the lines providing a pair of the main signals.

13. A circuit as in claim 12 characterized that each amplifier is a bipolar transistor having an emitter, a collector, and a base which are respectively the first, second, and control electrodes of that amplifier.

14. A circuit as in claim 13 characterized in that each circuit supply is a current source.