[0001] The invention relates to a step waveform generator and in particular but not exclusively
               to a vertical timebase circuit for a raster-scanned cathode ray tube (CRT) incorporating
               such a circuit.
 
            [0002] The advantages of a stepped vertical timebase for a CRT over the customary voltage
               ramp circuit are explained in our co-pending European Patent Application No 82306865.5
               (Docket No UK9-82-015). Briefly, when a CRT display employs voltage ramps to raster-scan
               the screen, problems arise due, for example, to variations in beam velocity during
               the scan, or variations in sync pulse frequency. Either of these irregularities can
               cause inconsistencies in scan line spacing over the face of the screen. For the same
               reasons inaccuracies are experienced when varying the display format for example to
               set a top margin for the display, or provide multiple line skips at selected locations
               on the screen. Furthermore, in interlaced displays variation in beam velocity or distortion
               of the ramp voltage by scan induced noise can cause the starting points for the interlaced
               field scans to be mispositioned leading to a visual phenomenon known as line pairing.
 
            [0003] These problems are overcome by the use of a stepped voltage generator in place of
               the conventional ramp voltage generator. The output voltage level of the generator
               is increased by one step on receipt of each horizontal sync pulse and, provided the
               step height is accurately defined, the resulting line spacing is constant over the
               entire screen surface. Multiple line skips are accurately defined by controlling the
               generator to produce integral multiples of voltage steps as required. Finally, accurate
               interlace is achieved by providing a half step at the beginning of the stepped (or
               staircase) voltage waveform.
 
            [0004] The stepped vertical timebase circuit described in the aforementioned European Patent
               Application includes a staircase generator which employs a so-called 'cup and bucket'
               circuit to generate the stepped output voltage waveform. In this circuit the charge
               on a bucket capacitor is incrementally increased by the repetitive addition of small
               constant amounts of charge supplied from a cup capacitor. The cup capacitor is itself
               charged by a predetermined amount in response to receipt of each horizontal sync pulse.
               The value of the charge is determined by a voltage, derived from a reference voltage
               circuit, and connected across the capacitor each time the horizontal sync pulse is
               generated during the scanning operation. At the termination of each sync pulse, the
               cup capacitor is discharged into the bucket capacitor. An operational amplifier connected
               to the bucket capacitor stabilises the voltage on the bucket capacitor. A reset circuit
               responsive to the vertical or field sync pulse periodically discharges the bucket
               capacitor to zero so that the process starts again on each new field scan.
 
            [0005] A disadvantage with the circuit employed in the aforesaid European application is
               that portions of the circuit, for example the reference voltage circuit are temperature
               dependent and although the circuit is regarded as being perfectly adequate for most
               applications, under certain conditions it may not produce voltage steps of sufficiently
               close tolerance to assure a picture of high enough quality. Furthermore, whilst line
               skip and interlace can be achieved with this circuit, in practice difficult tolerancing
               problems may be experienced.
 
            [0006] In the circuit subject of the present invention, use is made of an operational amplifier
               to control the charging and discharging of the cup capacitor in such a way that the
               value of its charge is temperature independent. By duplicating the cup capacitor discharge
               current using one or more current mirrors, the step height transferred to the bucket
               capacitor is also made temperature independent. Multiple line skip, top and interlace
               are all provided by using an appropriate combination of multiplying or dividing current
               mirrors feeding the bucket capacitor.
 
            [0007] In order that the invention may be fully understood, a preferred embodiment thereof
               will now be described with reference to the accompanying drawings, in which:
               
               
Figure 1 shows a CRT vertical timebase incorporating a stepped waveform generator
                  according to the invention; and
               Figure 2 shows voltage waveforms at various nodes in the circuit.
 
            [0008] The operation of the circuit will be described in two parts. The first part will
               deal with the input section of the circuit including the charge and discharge of a
               cup capacitor in response to horizontal sync pulses supplied to the input of the circuit.
               The second part will deal with output section of the circuit including the incremental
               transfer of charge to a bucket capacitor in order to provide the required stepped
               waveform at the output of the circuit.
 
            [0009] An input terminal 1 is connected to the base electrode of transistor Tl connected
               in series with resistor Rl between a supply voltage V STEP and ground. As the name
               implies, it is the value of this supply voltage that ultimately determines the magnitude
               of each incremental voltage step used to construct the stepped waveform supplied at
               the output of the circuit. A cup capacitor Cl has one electrode connected to the output
               of transistor Tl and the other to the anode of diode Dl; the collector of transistor
               T2 (forming one limb of long-tail pair switching transistors T2 and T3); and the inverting
               input of operational amplifier 2. A current source Il is connected in the tail of
               longtail pair transistor T2 and T3, the bases of which are interconnected by a diode
               D2. The biassing arrangement is such that transistor T2 is normally cut-off with the
               constant current Il flowing through transistor T3.
 
            [0010] The output from operational amplifier 2 is connected to the base of transistor T4
               (one transistor of further long-tail pair switching transistors T4 and T5). A current
               source I2 is connected in the tail of long-tail pair transistors T4 and T5, the bases
               of which are interconnected by a diode D3. The biassing arrangement is such that transistor
               T4 is normally cut-off with the constant current I2 flowing through transistor T5.
               A feedback path is provided from the collector of transistor T4 via a current mirroring
               arrangement formed from pnp transistors T7 and T6 to the non-inverting input of operational
               amplifier 2.
 
            [0011] In operation, positive going horizontal sync pulses derived by the CRT scan mechanism
               (not shown) are supplied as input to the circuit at input terminal 1. Each sync pulse,
               shown as waveform (a) in Figure 2, turns on transistor Tl and drives it into saturation.
               The voltage on the output of transistor Tl, that is at node A, falls from VSTEP to
               ground as shown by waveform (b) in Figure 2. Initially, the voltage on the other side
               of capacitor Cl, that is at node B, follows this excursion falling from ground to-VSTEP
               as shown in waveform (c) in Figure 2. Diode Dl becomes reversed biassed and the output
               from operational amplifier 2, that is node C, goes more positive than the voltage
               V RE
F 2 on the base of transistor T5, as shown by waveform (d), switching the long-tail
               pair transistors T4 and T5 and diverting the constant current I2 from transistor T5
               to transistor T4. This constant current 12 is mirrored by transistors T7 and T6 and
               fed back to the non-inverting input of the amplifier to discharge the cup capacitor
               C1 and linearly to restore the voltage at node B to virtual ground.
 
            [0012] Upon termination of the horizontal sync pulse when the input voltage is returned
               to ground, transistor Tl is cut-off and the charge restored on capacitor Cl initially
               through resistor Rl and diode D1. As node B goes positive, so node C is driven negative
               and constant current I1, normally flowing through transistor T3, is diverted through
               transistor T2. This continues until node B is restored to virtual ground at which
               time the collector current of transistor T2 will gradually reduce until capacitor
               Cl is completely charged. The input stage of the operational amplifier uses pnp transistors
               which require a small bias current to be drawn from the input pin. Hence the circuit
               settles with the amplifier input bias being supplied by transistor T2. By making VSTEP
               large compared with any temperature variation in the saturation voltage of transistor
               Tl (a voltage of 1 volt is sufficient for V STEP) and by using characteristics of
               good temperature independence exhibited by current mirrors, the step height is well
               controlled. This process of discharging and charging the cup capacitor with a precisely
               controlled amount of charge is repeated for each input sync pulse.
 
            [0013] The charging current I2 flowing in response to the occurrence of a horizontal sync
               pulse at the input 1 to the circuit is duplicated and added to bucket capacitor C2
               by the combined effect of two current mirrors formed from pnp transistors T8 and T9
               each with emitter resistances twice the resistive value of the emitter resistance
               of transistors T7 and T6. Each mirror therefore generates a charging current 12/2
               for the bucket capacitor C2 in response to a charging current of I2 for cup capacitor
               Cl. Normally, switch 81 is in the left-hand position as shown in Figure 1 so that
               the full charging current 12 is duplicated in the bucket capacitor. The incrementally
               increasing voltage on the capacitor C2 is supplied as input to operational amplifier
               3 with unity gain to provide the stepped output voltage waveform at output terminal
               4.
 
            [0014] For interlace displays, switch S1 is opened for one line scan at the start of alternate
               fields in order to divert the 12/2 current through transistor T9 and thereby provide
               a half step to the output voltage waveform.
 
            [0015] A further current mirror formed from pnp transistor T10 with emitter resistance half
               the resistive value of the emitter resistance of transistor T7 generates a charging
               current 212 in response to a current I2 through transistor T7. Normally the current
               2I2 is diverted to ground through switch S2 in its left-hand position as shown in
               Figure 1. Where a three line skip is required however, the switch S2 is moved to its
               right hand position and the combined charging currents from transistors T8, T9 and
               T10 supplied to capacitor C2. Clearly this technique can be expanded by appropriate
               use of selected multiplying and dividing current mirrors to provide multiple field
               interlace and multiple line skips as required.
 
            [0016] In order to set the top margin of the scan a voltage VTM of the appropriate magnitude
               is applied to the input of operational amplifier 3 through switch S3. Although in
               Figure 1 only one value of VTM is shown, clearly other values could be supplied if
               different size of top margin spacing is required.
 
          
         
            
            1. A step waveform generator comprising a cup and bucket charge circuit in which a
               cup capacitor Cl is alternately charged and discharged in response to each pulse of
               an input pulse train (waveform (a)) supplied thereto and increments of charge from
               said cup capacitor are transferred successively to a bucket capacitor C2 where they
               are accumulated, characterised in that the circuit includes an operational amplifier
               2 connected to monitor voltage across the cup capacitor Cl and operable in response
               to a voltage of one polarity to switch a first current source I2 into a first feedback
               loop (T4, T7, T6) in order to discharge the cup capacitor or in response to a voltage
               of the opposite polarity to switch a second current source Il into a second feedback
               loop (T2) in order to charge the cup capacitor.
 
            2. A step waveform generator as claimed in claim 1, in which charging (or discharging)
               currents providing each individual unit of charge are duplicated by a further current
               mirror arrangement (T8 and T9) and each duplicated current is used to add charge sequentially
               to the bucket capacitor.
 
            3. A step waveform generator as claimed in claim 1 or claim 2, in which charging (or
               discharging) currents are supplied simultaneously to a predetermined combination of
               current mirrors. dividing mirrors, and multiplying mirrors (T8, T9, T10), the output
               currents of which are selectively gated to provide charging current to the bucket
               capacitor having a magnitude equal to, or a multiple or sub-multiple of, the charging
               (or discharging) current of the cup capacitor from which it was derived.
 
            4. A CRT vertical timebase circuit incorporating a step waveform generator as claimed
               in claim 1, claim 2 or claim 3, operable in response to CRT horizontal sync pulses
               supplied thereto.