PROGRAMMABLE TIMING SYSTEM

Abstract: A programmabie high resolution timing system includes a selectable modulus prescaler counter (16). In one embodi­ ment a high frequency clock (14) is coupled to a prescaler counter (16) which provides an output signal (T A /T M ) every predetermined number of clock pulses. The prescaler (16) is coupled to a period counter (18) which provides a period signal (T O ) after a predetermined number of prescaler output signal pulses. The prescaler (16) and period counter (18) are coupled to a memory (32) which stores data corresponding to the selected modulus of the prescaler (16) and the number of counts by which the period counter (18) output signal is to be delayed. The period resolution is thus made substantially equal to the resolution of the high frequency clock (14) by varying the prescaler (16) modulus at programmable inter­ vals.

Description: The present invention relates generally to systems for generating timing signals, and more particularly to a programmable, high resolution timing system including selectable modulus counting means. Various systems have been used to generate a sequence of timing signals of variable signal-to-signal interval by programming digital counters to produce the timing signals at predetermined counts of a clock. Tapped delay lines have also been used to additionally delay the signals relative to the start of the timing sequence, although the timing signal interval resolution in such systems has been limited by the clock resolution. One solution to this limitation is disclosed in U.S. Patent No. 4,231,104 to St. Clair, entitled "Generating Timing Signals". This system uses a programmable counter in combination with a tapped delay line to produce a chain of pulses which are asynchronous with, i.e., not an integer multiple of, the clock period, wherein the pulse duration and spacing is programmable with a resolution higher than that of the basic clock. The accuracy of such systems, however, is dependent upon the accuracy of the tapped delay lines used therein. The maximum resolution in such systems is generally limited by the required time delay range of the delay line. That is, a higher resolution delay line would have a correspondingly smaller time delay range, or range of settings at which the timing signal period can be set. Further, depending upon the number of delay line taps it may be difficult to obtain certain timing signal period settings. One way to alleviate these shortcomings is to use a higher frequency clock, e.g., a clock having a frequency of at least 500 MHz. However, counters suitable for use at such clock frequencies are complex and costly to fabricate. In addition, the distribution of such a high frequency clock signal throughout a timing system would require a high bandwidth transmission medium. US-A-3,440,609 describes a digital synchronisation system in which pulses from a high frequency clock are applied to a programmable counter and to a second counter, the second counter being enabled to count a predetermined number when the programmable counter resets. Logic means produces an output whenever both counters reach programmed counts. It is an object of the present invention to provide an accurate, stable, high resolution timing system for producing timing signals at programmable intervals. According to the present invention there is provided apparatus for generating timing signals in which clock signals from a clock are applied to a counting means which provides output signals at progammably selectable counts and the output signals from the counting means are applied to programmable delay means which provides the timing signals required, CHARACTERISED IN THAT the counting means includes a first counter for counting the clock signals and providing first output signals at programmably selectable counts, and a second counter for counting the first output signals and providing second output signals at predetermined counts, and that the programmable delay means includes delay counting means for providing signals at programmably selectable counts of the first output signals following the second output signals. BRIEF DESCRIPTION OF THE DRAWINGS Other objects, advantages, and novel features of the invention will become apparent from the following detailed description of the invention when considered in conjunction with the accompanying drawings wherein: FIG. 1 is a block diagram of a timing system according to one embodiment of the present invention; FIG. 2 is a schematic diagram of a high frequency clock employed in the timing system of FIG. 1; FIG. 3 is a timing diagram showing the signals at various points in the timing system of FIG. 1; and FIG. 4 is a schematic diagram of one embodiment of a prescaler circuit included in the present timing system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Referring now to the drawings, there is shown in FIG. 1 a timing system according to one embodiment of the present invention wherein a period generator 10 is coupled to one or more delay generators 12. Period generator 10 is formed of a clock 14 coupled to a prescaler or variable modulus counter 16, the operation of which will be explained in more detail below. Prescaler 16 produces output signals T A and T M which are two of the outputs from period generator 10. T A is also coupled to a period counter 18 whose output T o is also an output of period generator 10. Prescaler 16 and period counter 18 are also coupled to a data register or memory 20 which stores the desired counts which will be decremented by period counter 18, and the modulus of prescaler 16, during each timing period. The contents of memory 20 are updated by a data processor (not shown) depending upon the desired outputs from the timing system. Clock 14 is preferably a single stage, stable, accurate high frequency oscillator, for example, a surface acoustic wave (SAW) resonator. The theory and operation of SAW resonators are described, for example, in the following articles which are incorporated herein by reference: T. Shoquist, "Sink Your Teeth Into A SAW", Electronic Products Magazine , May 1979, pp. 63-66; and R. J. Murray et al., "SAW Components Answer Today's Signal Processing Needs", Electronics, September 8, 1981, pp. 120-124. Referring to FIG. 2, there is shown a SAW oscillator suitable for use with the present timing system wherein a 537 MHz. SAW resonator Y1 and two wideband amplifiers AR1 and AR2 are connected to produce a positive feedback at the resonant frequency of Y1 (2²⁹ Hz.). A quarter wavelength transformer T1 reduces the gain requirements of AR1 and AR2 by matching the output impedance of AR2 to the input impedance of Y1. A delay line DL1, for example, a length of 50 ohm microstrip line, insures a full 360 degree phase shift around the oscillator loop. The high frequency AC signal from AR2 is coupled through a resistor R2 to a buffer amplifier AR3, the output of which is the output of clock 14. Each delay generator 12, referring again to FIG. 1, includes a set delay portion and a reset delay portion coupled to the set and reset inputs, S and R, of a flip-flop 22, the output of which is the timing signal output of the respective delay generator 12. The set portion of delay generator 12 is formed of a delay counter 26 coupled to a tapped delay line 24 or other analog delay means, whose output is coupled to the S input of flip-flop 22. Similarly, the reset portion is formed of a delay counter 28 connected in coupling sequence to a tapped delay line 30 and the R input of flip-flop 22. Delay counters 26, 28 and delay lines 24, 30 are further coupled to a data register or memory 32 which stores the set and reset counts that determine the length of the timing signal pulse output from delay generator 12. Flip-flop 22 is set, and a timing pulse starts, a predetermined delay after the occurrence of a T o pulse, the delay corresponding to the count stored in counter 26 and the selected tap of delay line 24. The timing pulse ends by the resetting of flip-flop 22, which occurs after counter 28 had counted down and the delay introduced by delay line 30 has elapsed. Delay counters 26, 28 may be characterized as a "coarse" adjustment of the timing pulse duration while delay lines 24, 30 operate as a "fine" adjustment, thereby permitting a high resolution setting with only a minimum of analog delay. The operation of period generator 10 will now be described in detail by reference to FIG. 3, which is a timing diagram showing the relationship of the various signals therein. By way of example, it will be assumed that the signals from clock 14 have a frequency of 2²⁹ Hz., or approximately 537 MHz., which corresponds to a period of about 1.86 ns. Prescaler 16 counts the clock pulses and provides an output T A every predetermined number of pulses as determined by the data stored in memory 20. Period counter 18, in turn, counts the T A pulses and provides an output T o every predetermined number of counts. Prescaler 16 and counter 18 together form a two section high resolution counter which is less complex than a single 537 MHz. counter. In one embodiment prescaler 16 is initially programmed by memory 20 as a modulo four counter, i.e., T A occurs every four clock pulses or every 7.45 ns. Counter 18 further divides the T A signals by counting a predetermined number of pulses. For example, if counter 18 is programmed to provide an output after six T A pulses, an output T o will be generated after approximately 45 ns, i.e., the effective frequency of T o is about 22 MHz. If period counter 18 is a 13-bit counter, then T o may be delayed any one of up to 2¹³ or 8192 T A counts, each 7.45 ns apart. Period pulses are provided in the 7.45 ns intervals between synchronous T o pulses by varying the modulus of prescaler 16. For example, if the modulus of prescaler 16 is switched from four to five, the next T A pulse will be delayed one additional clock 14 count, i.e., an additional 1.86 ns. Similarly, if the modulus is switched to six from four, T A is delayed an additional 3.72 ns, and 5.58 ns when the modulus is switched from four to seven. Thus, by varying the modulus of prescaler 16 the resolution of the interval between T o pulses is increased, in this example, from 7.45 ns to 1.86 ns. FIG. 3 shows three modulo four intervals followed by a modulo seven interval. That is, the fourth T A pulse is delayed an additional three T osc cycles, or 5.58 ns. It is to be understood that the specific frequencies and counter moduli in the above-described embodiment are by way of example only and are not intended to limit the scope of the invention thereto. Referring now to FIG. 4, there is shown one embodiment of prescaler 16 formed of six dual input D-type flip-flop circuits A - E and M, NOR gates 34 and 36, and inverter 38. Flip-flops A - E are connected to function as a multi-stage counter, the number of stages depending upon which of the modulus select lines FIVE, SIX or SEVEN is enabled. When all select lines are low, i.e., a logic zero, flip-flops C, D and E are disabled and flip-flops A and B function as a two stage (count by four) counter. At the end of each period interval signal CRY , coupled to the inputs of flip-flops C, D and E, goes low which permits prescaler 16 to count by four, five, six or seven. For example, if modulus select line FIVE is high, i.e. , a logic one, the output of NOR gate 34 goes low and flip-flop C is enabled. With flip-flop C in the counting path the T A output is delayed one clock 14 count, or 1.86 ns. If select line SIX is high when CRY goes low, the outputs of both NOR gates 34 and 36 go low enabling flip-flops C AND D which in turn delays T A two clock counts. Finally, if modulo seven is selected by enabling select line SEVEN, the outputs of NOR gates 34, 36 and the inverter 38 go low, enabling flip-flops C, D and E and delaying T A by three clock counts. Prescaler output T M is provided by flip-flop M, which is derived from the T A signal by delaying the inverted T A output by two cycles of clock 14. The T M signal is used to provide a positive-going pulse to delay generator 12 during the interval that signal T A is delayed. This reduces the time delay range requirements of analog delay lines 24 and 30. In general, the delay line range requirement, T d , is expressed by the equation T d = M max x T osc where T osc is the period of clock 14 and M max is the maximum modulus of prescaler 16. In the described embodiment M max = 7 and T osc = 1.86 ns. Thus, if only T A were used to clock delay generator 12, T d = (7) (1.86) = 13.02 ns By modifying delay counters 26, 28 to run on either T A or T M , T d is reduced to four T osc periods, or 7.45 ns. Therefore, by using two lower frequency delay generator clocking signals the required analog time delay range is reduced by about 40 per cent, which correspondingly improves delay line resolution and accuracy. One means of selecting the modulus of prescaler 16 is to decode the two least significant bits of a 15 bit code stored in memory 20. The 13 most significant bits are then used to select the count of period counter 18 as described above. It will be apparent that the interval between successive T o pulses may be selected merely by loading an appropriate code into memory 20. The present invention thus provides a timing system including a programmable period generator having the resolution capability of a high frequency clock while using lower frequency period and delay counters. A further aspect of the present invention is the use of a SAW resonator as a single stage high frequency oscillator in a high resolution, programmable timing system. Yet another aspect of the present invention is embodied in a programmable timing system including delay generators having a minimum analog delay line time delay range. Obviously, many modifications and variations of the present invention are possible in view of the above teachings. It is therefore to be understood that within the scope of the appended claims the invention may be practiced otherwise than as specifically described herein.

Claims: Apparatus for generating timing signals in which clock signals from a clock (14) are applied to a counting means (16,18) which provides output signals at progammably selectable counts and the output signals from the counting means are applied to programmable delay means (12) which provides the timing signals required, CHARACTERISED IN THAT the counting means includes a first counter (16) for counting the clock signals and providing first output signals at programmably selectable counts, and a second counter (18) for counting the first output signals and providing second output signals at predetermined counts, and that the programmable delay means includes delay counting means (26,28) for providing signals at programmably selectable counts of the first output signals following the second output signals. Apparatus according to claim 1 characterised in that the programmable delay means includes a programmable delay line (24,30) connected to receive the signals from the delay counting means. Apparatus according to claim 1 or claim 2 characterised in that the programmable delay means includes two delay counting means (26,28) and a bistable circuit (22) connected to be set in response to signals from one of the delay counting means and to be reset in response to signals from the other of the delay counting means, the timing signals being provided by the output of the bistable circuit. Apparatus according to claim 1, 2 or 3 characterised in that it includes a plurality of programmable delay means (12), each responsive to the first output signals and the second output signals. Apparatus according to any one of the preceding claims characterised in that the first counter (16) is arranged to produce first output signals (T A ) and additional first output signals (T M ) which are selectively used by the programmable delay means (12). Apparatus according to any one of the preceding claims characterised in that the clock (14) includes surface acoustic wave resonator means (Y1) connected in a positive feedback circuit to determine the repetition frequency of the clock signals.

Inventors: WERKING, PAUL M.
Applicants: TEXAS INSTRUMENTS INCORPORATED
Application year: 1984
Main classification: G06F1
IPC codes: G06F1, H03K23, H03K5