Ramp generator

Abstract: A ramp generator has an integrator (1), which provides a ramp output, and a counter (20), which counts a clock signal during the rise period. The counter (20) and clock (22) are arranged so that when the actual rise time is equal to the desired rise time, the counter (20) overflows and returns to zero. If the rise time is too slow, the counter (20) will contain a count at the end of the rise period. A register (21) is connected to receive this count and an adder (23) adds the contents of the register to the contents of the adder generated. The adder (23) has an output connected to the input of the integrator (1) and, each time the adder (23) overflows, supplies a correction pulse to the integrator (1) so that its rise rate is increased.

Description: This invention relates to ramp generators of the kind having an integrator that provides a ramp output, a circuit for measuring the difference between the rise time of the ramp output to reach an upper limit and the desired rise time to reach the limit, the circuit being arranged to alter the rise time of the integrator to reduce the difference The integrator is usually an operational amplifier integrator circuit that charges and discharges a capacitor. Because capacitors tend to have large tolerances and values that vary with change in temperature, it is difficult to produce an accurate and constant rise time. In US 3893036 there is described a ramp generator according to the preamble of claim 1, with a phase detector circuit that applies a correction to the input of an integrator to maintain the rise time of the ramp at a desired value. It is an object of the present invention to provide an improved ramp generator. According to one aspect of the present invention there is provided ramp generator of the above-specified kind, characterised in that the circuit includes a cyclic counter and an adder as defined in claim 1. The capacity of the counter and the clock rate of the clock signal are preferably selected such that the counter overflows and returns to a start value when the rise time equals the desired rise time. The output from the adder to the input of the integrator is preferably arranged to increase the rate of rise of the integrator. The generator preferably includes a register that stores the count of the counter at the end of the rise period and retains this count until the end of the following rise period. The rise time of the ramp output before altering the rise time is preferably set to be greater than the desired rise time. A ramp generator and its method of operation, in accordance with the present invention, will now be described, by way of example, with reference to the accompanying drawings, in which: Figure 1 is a schematic diagram of the generator; Figure 2 shows a part of the waveform of the output of the generator; and Figure 3 shows another part of the waveform of the output of the generator. The generator includes an operational amplifier integrator 1 that provides a ramp output on line 2 to the output 3 of the generator. The ramp output is also supplied to one input of each of two comparators 4 and 5. One comparator 4 has the ramp output supplied to its negative input and has its positive input connected to a source 6 of reference voltage defining the upper limit of the ramp. The other comparator 5 has the ramp output supplied to its positive input and has its negative input connected to a source 7 of reference voltage defining the lower limit of the ramp. The outputs of the two comparators 4 and 5 are supplied to a limit detect logic unit 10 having three outputs 11, 12 and 13 connected to a circuit for measuring the difference between the actual rise time and the desired rise time and altering the rise time to reduce the difference. More particularly, the output 11 is connected to an input of the integrator 1 and provides a signal to the integrator when the upper limit is reached. The output on line 12 is connected to a counter 20 and provides an enable signal during the ramp rise period. The output on line 13 is connected to a register 21 and provides a store signal to the register at the end of the rise period. The counter 20 is connected to receive a clock signal from a clock 22 and provides an output to the register 21. The register 21, in turn, is connected to an adder 23 that also receives the clock signal from the clock 22 via line 24. The adder 23 has an output connected to an input of the integrator via line 25. In operation, the voltage of the output of the integrator 1 rises, in the manner shown in Figure 2, as a straight line, from its lower limit V L to its upper limit V u , as set by the comparator 4. When the upper limit is reached, the output of the comparator 4 changes, thereby causing the unit 10 to provide an output on line 11, which triggers the integrator 1 to switch from a rise to a rapid fall. During the rise period t r of the ramp, the counter 20 is enabled by the output on line 12, so that it counts the clock pulses produced by the clock 22. When the rise of the ramp ceases, the output on line 12 also ceases, causing the counter 20 to stop counting. The capacity of the counter 20 and the clock rate of the clock 22 are chosen so that the counter will overflow once and return to its zero or start value if the rise time t r of the ramp signal is equal to the target or desired time t d . If, however, the rise time t r is shorter or longer (as illustrated in Figure 2) than desired, the counter 20 will contain a count different from the zero or start value, when counting ceases at the end of the ramp rise. The contents of the counter 20 are passed to the register 21 and are stored in the register by a signal on line 13 at the end of the rise period. The count value is held in the register 21 during the next ramp rise but the counter 20 resumes counting during the next rise, from its previous value. The adder 23 adds the contents of the register 21 to the adder's previous value each time that it receives a clock pulse on line 24. When the adder 23 overflows, it produces a carry signal on line 25 to the integrator 1. Initially, the contents of the adder might be zero and, if the ramp time t r were equal to the desired value t d , the register contents would also be zero. In this case, the contents of the adder 23 would remain zero for each clock pulse and no output would be supplied to the integrator on line 25. If, however, the ramp rise time t r were to depart from the desired time t d , this would cause a count to be entered in the register 21 the value of which would depend on the extent of deviation of the rise time from the target. The adder 23 would then add the value of the register 21 repeatedly for each clock pulse and, when it overflowed, it would provide a correction pulse signal on line 25 to the integrator 1. The result of this would be to increase momentarily the rate of rise of the ramp as shown by the points P 1 and P 2 in Figure 3. The frequency with which the adder 23 supplies correction pulses to the integrator 1 is dependent on the extent of deviation of the rise time t r from the desired time t d . Figure 3 illustrates only two correction pulses P 1 and P 2 but, in general, a larger number of smaller pulses would be used. When the correction pulses reduce the rise time t r to the desired time t d , the value of counter 20, and hence the contents of the register 21, at the end of the rise period will be the same as that at the end of the previous period. The adder 23, therefore, will continue producing the correction pulses on line 25 with the same frequency. The frequency of these digital correction pulses rapidly stabilizes at a value that sets the ramp rise time t r to the desired time t d . The rise time t r of the integrator 1, without correction, is chosen to be longer than desired because the correction pulses will increase the rise rate and thereby reduce the rise time. The rise time t r could fall below the desired rise time t d , as a result of too many correction pulses from the adder 23. If this should happen, the count of the counter 20 at the end of the rise period would be less than that of the previous period. This would cause a lower value in the register 21 and hence reduce the frequency of the correction pulses produced by the adder 23 until the rise time is increased to t d . The resolution of the counter 20, register 21 and adder 23 are chosen to give the ramp generator the required accuracy.

Claims: A ramp generator having an integrator (1) that provides a ramp output (3), a circuit (4 to 25) for measuring the difference between a rise time (t r ) of the ramp output to reach an upper limit and a desired rise time (t d ) to reach the limit, the circuit being arranged to alter the rise time of the integrator (1) to reduce the difference, characterised in that the circuit includes a cyclic counter (20) that counts clock signal pulses during the rise time of the ramp output, and an adder (23) arranged to add the contents of the counter (20) at the end of the rise period to the previous content of the adder (23) repeatedly for each clock signal pulse, so as to generate overflow signals to the integrator (1) to reduce the difference between the actual and desired rise times. A ramp generator according to Claim 1, characterised in that the capacity of the counter (20) and the clock rate of the clock signal are selected such that the counter (20) overflows and returns to a start value when the rise time equals the desired rise time. A ramp generator according to Claim 1 or 2, characterised in that output from the adder (23) to the input of the integrator (1) ) is arranged to increase the rate of rise of the integrator. A ramp generator according to any one of the preceding claims, characterised in that the generator includes a register (21), and that the register stores the count of the counter (20) at the end of the rise period and retains this count until the end of the following rise period. A ramp generator according to any one of the preceding claims, characterised in that the rise time of the ramp output before altering the rise time is set to be greater than the desired rise time.

Inventors: CAPENER PAUL HENRY, FARRANCE DAVID STUART, CAPENER, PAUL HENRY, FARRANCE, DAVID STUART
Applicants: SMITHS INDUSTRIES PLC, SMITHS INDUSTRIES PUBLIC LIMITED COMPANY
Application year: 1994
Main classification: H03K4
IPC codes: H03K4