Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHOD AND APPARATUS FOR SYNCHRONIZING PPM COMMUNICATIONS BETWEEN AN IMPLANTABLE DEVICE AND AN EXTERNAL DEVICE
Document Type and Number:
WIPO Patent Application WO/1996/013919
Kind Code:
A1
Abstract:
A method and apparatus is disclosed for use in an implantable device that communicates with an external device through pulse position modulation. A timing generator is provided as part of said implantable device that determines the phase uncertainty between an external signal and an internal clock signal. The phase uncertainty then is added to the preset delay period to more precisely control the position of the response. The phase uncertainty is measured by a dual slope circuit that varies a state variable (which can be a digital timer, a capacitor voltage, or the like) at a fixed rate with either a positive or negative slope. When the external signal is detected, the state variable is reset and then decreased at a fixed rate until the next positive edge of the clock signal. The state variable then is increased at the same rate until the subsequent positive clock edge. The resulting variable value is proportional to the phase uncertainty. When the delay timer reaches zero, the state variable is again decreased at the same fixed rate until the initial value is reached, at which the output response is generated.

Inventors:
FERNALD KENNETH WILSON
Application Number:
PCT/US1995/014216
Publication Date:
May 09, 1996
Filing Date:
October 31, 1995
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
INTERMEDICS INC (US)
International Classes:
A61B5/00; A61N1/372; G01R25/00; H04L7/00; H04L7/033; H04L25/40; (IPC1-7): H04L7/033; A61N1/372; G01R25/00
Foreign References:
DE3234576A11984-03-22
EP0398174A21990-11-22
EP0262609A21988-04-06
DE3130482A11983-02-10
EP0466413A21992-01-15
US4947407A1990-08-07
Other References:
D. J. MALONE: "Achieving Fast Sync with Minimum Transient for a Particular Phase Discriminator. February 1974.", IBM TECHNICAL DISCLOSURE BULLETIN, vol. 16, no. 9, NEW YORK, US, pages 3019
Download PDF:
Claims:
I CLAIM:
1. A method for measuring asynchronism between an external signal and an internal clock signal, comprising the steps of: initiating a count from an initial value at a fixed rate in response to said external signal; reversing said count at die same fixed rate when a first edge of said clock signal occurs; maintaining said count when a second edge of said clock signal occurs; wherein said count is proportional to the asynchronism between die external signal and the internal clock signal.
2. A method as in claim 1, wherein said first edge of said clock signal is die first rising clock edge after said external signal.
3. A method as in claim 2, wherein said second edge of said clock signal is the second rising clock edge after said external signal.
4. A method as in claim 1, wherein said initial value of said count is zero.
5. A method as in claim 1, wherein a preset period is loaded into a counter, and said counter counts down on each rising clock edge.
6. A method as in claim 5, wherein said preset period defines the preset period for responding to said external signal.
7. A method as in claim 6, wherein, after said preset period expires, said count is re initiated at said fixed rate until said count goes back to said initial value to provide a method for correcting for said asynchronism.
8. A method for measuring phase uncertainty between a trigger signal and an internal clock signal for controlling die period of response in an implantable device after the trigger signal is received, comprising: changing the value of a state variable from an initial value at a first fixed rate after the trigger signal is detected; changing die value of die state variable at a second fixed rate when a first clock edge of said clock signal occurs; beginning to count a preset period when said first clock edge occurs; maintaining die value of the state variable when a second clock edge of said clock signal occurs; completing d e count of said preset period; changing the value of the state variable at said first fixed rate after said count of said preset period is completed; and producing an output signal when said state variable returns to said initial value.
9. A method as in claim 8, wherein said first fixed rate has a slope M, and said second fixed rate has a slope M, so that the first fixed rate has a slope that is the opposite of said second fixed rate.
10. A method as in claim 9, wherein said initial value is zero.
11. A method as in claim 10, wherein said first clock edge is a rising clock edge.
12. A method as in claim 11, wherein said second clock edge is a rising clock edge.
13. A method as in claim 12, wherein said count of said preset period only proceeds at rising clock edges of said clock signal.
14. A method as in claim 10, wherein said first clock edge is a falling clock edge.
15. A method for improving the resolution of pulse position modulation between an implantable medical device and an external medical device, comprising the steps of: measuring phase uncertainty between an external signal and an internal clock signal; loading a preset period into a counter for counting die period for die preset response; storing the phase uncertainty; completing the count of said preset period; and adding an additional delay period equal to the measured phase uncertainty.
16. A timing generator for an implantable medical device for providing a pulse position modulated signal in response to an external signal, comprising: a delay timer which is loaded with a preset delay period, and which is clocked with an internal clock signal; a phase timer for counting up or down at a constant rate; logic circuitry for controlling die direction in which said phase timer counts; and an oscillator providing a fast clock signal to said phase timer to control die rate at which said phase timer counts.
17. A timing generator as in claim 16, wherein said delay timer is loaded with said preset delay period when said external signal is received.
18. A timing generator as in claim 16, wherein said logic circuitry includes a first and second flipflop, and wherein said first and second flipflop are clocked by said internal clock signal.
19. A timing generator as in claim 18, wherein said phase timer measures and stores the phase uncertainty between the external signal and said internal clock signal.
20. A timing generator for an implantable medical device for providing a pulse position modulated signal in response to an external signal, comprising: a delay timer which is loaded with a preset delay period, and which is clocked with an internal clock signal; a capacitor for storing positive or negative voltage that is varied at a constant rate; a first current source for providing a positive voltage rate of change on said capacitor; a second current source for providing a negative voltage rate of change on said capacitor; logic circuitry for controlling which current source connects to said capacitor; and an comparator for comparing the voltage on said capacitor with a reference voltage for determining a period for phase uncertainty between the internal clock signal and said external signal.
21. A method for correcting asynchronism between an external signal and an internal clock signal, comprising the steps of: initiating a count from an initial value at a fixed rate in response to said external signal; maintaining said count when a first edge of said clock signal occurs; after a preset period expires, reversing said count at said fixed rate until said count goes back to said initial value.
22. A method for determining the time between the occurrence of two asynchronous events based upon an internal system clock with a period of Tu, comprising the steps of: detecting a first event; initiating a counter to begin a count at a first rising clock edge of a system clock; measuring the phase uncertainty between the system clock and the first event; detecting said second event; stopping said counter and storing said count; measuring said phase uncertainty between said second event and said internal clock; determining the time between events by multiplying said count by said internal clock period Tax, and adding die difference between said phase uncertainty attributable to said second event from said phase uncertainty attributable to said first event.
23. A method for synchronizing a clock signal to an asynchronous signal, comprising the steps of: changing d e value of a state variable from an initial value at a first fixed rate after the trigger signal is detected; changing die value of the state variable at a second fixed rate when a first clock edge of said clock signal occurs; storing the value of die state variable when a second clock edge of said clock signal occurs; loading d e value of d e state variable into a counter at each subsequent clock edge.
24. A method as in claim 23, wherein the counter counts from the loaded value to zero.
25. A method as in claim 24, wherein d e counter produces an output signal when the count reaches zero.
26. A method as in claim 25, wherein d e output signal from the counter defines a clock signal that is synchronized with the trigger signal.
Description:
Method and Apparatus for Synchroni sing PPM Communicat ons between an Imp . emen table Device and an External Device

BACKGROUND OF THE INVENTION

The present invention relates generally to an implantable medical device capable of communicating with an external device. More particularly, the invention relates to a programmable implantable device that transmits and receives data from an external device via pulse position modulation, and which includes a timing generator to measure the proper delay period for responding to a trigger signal received from an external device. Still more particularly, the present invention relates to a phase measurement technique implemented in a programmable implantable device for synchronizing an asynchronous input signal from an external device to increase the resolution and throughput of the data transfer.

Disruption of natural pacemaking capabilities in the heart as a result of aging or disease is commonly treated by the insertion into a patient of an artificial cardiac pacing device, commonly referred to as a pacemaker. A pacemaker provides rhythmic electrical discharges that are applied to the heart at a desired rate from the implanted artificial pacemaker. In its simplest form, the pacemaker consists of a pulse generator powered by a self-contained battery pack, and a lead including at least one stimulating electrode(s) for delivery of electrical impulses to excitable myocardial tissue in the appropriate chamber(s) in the right side of the patient's heart. However, in some instances epicardial electrodes are implanted by surgically splitting the patient's chest or other well known techniques, and suturing or screwing them in to the epicardium. Typically, the pulse generator is surgically implanted in a subcutaneous pouch in the patient's chest. In operation, the electrical stimuli are delivered to the excitable cardiac tissue via an electrical circuit that includes the stimulating and reference electrodes, and the body tissue and fluids.

Pacemakers range from the simple fixed rate device that provides pacing with no sensing function, to highly complex models implemented to provide fully automatic dual chamber pacing and sensing functions. The latter type of pacemaker is the latest in a progression toward physiologic pacing, that is, the mode of artificial pacing that restores cardiac function as much as possible toward natural pacing.

Historically, pacemakers have been employed primarily for the treatment of brady arrhythmias, but over the past several years cardiac pacing has found significantly increasing usage in the management of tachyarrhythmias. Anti-tachyrhythmia pacemakers take advantage of an inhibitory mechanism that acts on the secondary natural pacemakers to prevent their spontaneous automaticity, sometimes termed "postdrive inhibition" or overdrive inhibition. " In essence, the heart may be driven (stimulated) with faster than normal pacing rate to suppress ectopic activity

in the form of premature atrial or ventricular contractions (extrasystoles) that might otherwise initiate supraventricular or ventricular tachycardia, flutter (typically, a tachyrhythmia exceeding 200 bpm), or fibrillation; or to terminate an existing tachyrhythmia. The pulses delivered to the heart for pacing therapy need only be of sufficient magnitude to stimulate the excitable myocardial tissue in the immediate vicinity of the pacing electrode. In contrast, another technique for terminating tachycardias, termed cardioversion, utilizes apparatus to shock the heart with one or more current or voltage pulses of generally considerably higher energy content than is delivered in pacing pulses. Whether pacing or cardioverting therapy is employed in an effort to terminate a tachycardia, a considerable risk is present that the treatment itself may precipitate fibrillation. Defibrillation ("DF"), the method employed to terminate fibrillation, involves applying one or more high energy " count ershocks" to the heart in an effort to overwhelm the chaotic contractions of individual tissue sections, allow reestablishment of an organized spreading of action potential from cell to cell of the myocardium, and thus restore the synchronized contraction of the mass of tissue. Typically, and as shown in Figure 1, an implantable medical device 12, such as a pacemaker, for example, comprises electrical circuits mat are controlled by processing circuitry 26, such as a central processing unit (CPU) or microprocessor. Because of the implementation of the microprocessor in the pacemaker or other implantable device, the pacemaker can be programmed by a physician through an external device 10 to customize the operation of the device to the patient's conditions. As shown in Figure 1, the pacemaker or other implantable device 12 includes a coil antenna 30 which is capable of communicating through electromagnetic waves to a coil antenna 24 in the external programmer/reader 20 in the external device 10. The pacemaker can be programmed after it is implanted in the patient 14 through electromagnetic signals transmitted by the external programmer. The pacemaker 12 attaches to the patient's heart 16 through electrical leads 18. The pacemaker also includes a communications interface 28 to transmit and receive signals through an antenna 30. Similarly, the external device 10 also includes a communications interface 22 connected to antenna 24.

In addition to the microprocessor, the pacemaker also may include a memory device (not shown), such as random access memory (RAM) chips, for storing signals indicative of the patient's health. The pacemaker may have the capability of monitoring physiological parameters of the patient, such as EKG signals, and may store digital signals representative of these parameters in the memory device. When prompted by the external device, the processing circuitry 26 can transmit the contents of the memory device to the external programmer/reader 20 for analysis by the physician.

Because of the large amount of data that may be transmitted between the pacemaker and the external device, a significant amount of time may be required to complete the data communications. The data transactions could be expedited by the use of higher speed electronics, but the use of such high speed circuitry requires large power supplies. A pacemaker includes a battery (not shown) for operating the circuitry, which preferably has a life of 5-10 years.

Operating the pacemaker circuitry at higher frequencies results in greater power consumption, which could greatly curtail the life of the battery, requiring surgery to replace. Power consumption, therefore, is at a premium in such an implantable device.

In commonly assigned US Application Serial No. 08/058,752, entitled "Apparatus and Method for High Speed Data Communication Between an External Medical Device and an

Implantable Medical Device," the teachings of which are incorporated by reference herein, the assignee of the present invention has developed a pacemaker, capable of high speed data communication, which uses energy from the signal transmitted by the external device to generate a pulse position modulated response. Data is transferred in commonly assigned US Application No. 08/058,752 through the use of pulse position modulation. A trigger signal is transmitted by the external device 10, and the processing circuitry 26 in the pacemaker responds with an output signal that is transmitted to the external device after a certain delay period. The period of delay defmes the response. This is done by allocating certain window periods for a response, so that the time period during which that response occurs determines the data to be conveyed. For example, after the trigger signal is received from the external device, the system might allocate sixteen window periods for a response to represent the transfer of four digital bits (T = 16). The time during which the response is sent indicates the digital data being transferred. Thus, if the response fell in the ninth available window period, a digital 9, or 1001, might be indicated. Subsequent data transfers occur in similar fashion until all data has been transferred. This procedure is implemented by including a digital counter or timing generator in the implantable device. The digital timing generator is initialized on the first rising clock edge following receipt of the trigger signal. The desired delay is loaded into the digital counter, so that when the count reaches zero, an output signal is generated to the external device.

One potential shortcoming with this arrangement is the asynchronism between the external trigger signal and the internal clock signal of the implantable device. As a result, the window periods for the pulse position modulated response cannot be finely resolved. Instead, the window periods must be defined sufficiently broadly to account for delays in detecting the asynchronous trigger signal. This is necessary because the trigger signal is not synchronized with the internal system clock signal which initiates the timing generator, and thus the digital timing generator may not begin counting until a full clock cycle after the trigger signal is transmitted.

The telemetering circuitry in the pacemaker sets the delay counter for the window periods immediately upon receiving the trigger signal. The delay counter, however, does not begin counting until the subsequent rising clock edge, thereby creating a potential delay between transmission of the trigger signal and the start of the digital delay counter. As a result, die timing generator potentially does not begin until almost a full clock signal after the trigger signal. A timing diagram for a digital delay counter is shown in Figure 2. Consequently, when designing a delay counter, the possibility of the trigger occurring asynchronously relative to the internal clock must be considered. The internal clock signal drives the count-down digital timing generator on a clock edge in accordance with conventional techniques. At the clock edge (which for example may be a rising clock edge) following the occurrence of the trigger signal, the digital timing generator begins counting down the preset delay value (expressed as a multiple of the clock period). The output response is then generated when the timing generator value reaches 0, as shown in Figure 2. Because the input trigger can occur at any point within a particular clock period, the actual delay T A is given by:

T Λ = PRESET x T^ - ^

where PRESET is the timer preset value, T- u is the internal clock period, and T E is the phase uncertainty between the clock signal and the input event. The value of T E , which represents the error between the actual delay achieved and the desired delay, can vary from 0 to T o *. Depending on the specifics of the system design, this uncertainty may exceed the required error tolerance, and hence destroy the information integrity.

One way to increase the resolution of the transmission is simply to provide a faster internal clock to minimize the possible phase uncertainty between the internal clock and the trigger input. Unfortunately, this higher clock frequency results in proportionally higher power consumption by the oscillator driving the internal clock and the digital circuitry used in the implantable device. In addition, many digital systems may not be operable at a higher clock frequency due to frequency dependencies already incorporated into their designs.

It would be advantageous, therefore, to develop a system for detecting phase uncertainty between an internal clock and a trigger event to increase the resolution and bandwidth of the data transfer. SUMMARY OF THE INVENTION

The present invention solves the shortcomings and deficiencies of the prior art by constructing an implantable device with a dual slope circuit to measure the phase uncertainty

between the internal clock and the trigger event. The measured phase uncertainty then is added to the desired delay to correct automatically for phase uncertainty.

The present invention can be implemented in a circuit that is capable of varying a state variable at a fixed rate with either a positive or negative slope. When the input trigger is detected, the state variable is reset to a known value, then decreased at a fixed rate (M) until the next positive-edge of the internal clock signal. The state variable then is increased at the same rate until the next positive clock edge. The resulting variable value then is proportional to the phase uncertainty T E . When the digital counter reaches 0, the state variable is again decreased at the same rate (M) until it reaches the initial value, which indicates it is time to generate an output response. The resulting delay achieved T A will then equal the desired delay regardless of the phase uncertainty between the trigger and clock signals.

The timing generator may be implemented with either digital or analog circuitry. In the digital implementation, a fast relaxation oscillator is used as an input clocking signal to a phase timer. The direction in which the phase timer counts is determined by a logic circuit comprised of a pair of D flip-flops. The fast oscillator controls the rate at which the phase timer counts, and only is used when the trigger signal is detected to save power. Conversely, in the analog implementation, a capacitor is used as the phase timer with a pair of current sources to control the rate of change of the voltage on the capacitor.

Other methods also can be employed to measure d e phase uncertainty using similar techniques. For example, both edges of the clock signal may be used to measure the phase uncertainty. After the trigger event is received, the timing generator may count down at a fixed rate until the next clock edge occurs, at which time the timing generator counts up at the same fixed rate. At the subsequent clock edge the state variable in the timing generator remains fixed until the delay timer has expired, after which the timing generator counts down from the fixed state variable value at the fixed rate. When the timing generator count goes to zero, the output is enabled from the implantable device.

The present invention also has application outside of pulse position modulation. For example, the above techniques may be used to synchronize an internal clock to an asynchronous event, or can even be used to measure the time between two asynchronous events. BRIEF DESCRIPTION OF THE DRAWINGS

For a more detailed description of the preferred embodiment of the present invention, reference will now be made to the accompanying drawings, wherein:

Figure 1 is a functional block diagram illustrating the manner in which an implantable medical device communicates with an external device;

Figure 1 A is a functional block diagram of an implantable device constructed in accordance with the preferred embodiment;

Figure 2 depicts a timing diagram illustrating the potential phase uncertainty which may result from using a conventional digital timing generator to produce an output in response to an asynchronous event;

Figure 3 is a timing diagram illustrating die methodology employed in the preferred embodiment;

Figure 4 shows a timing diagram illustrating the operation of an alternative embodiment of Figure 3; Figure 5 shows a timing diagram illustrating yet another alternative embodiment of Figure

3;

Figure 6 is a schematic drawing depicting the preferred construction of a timing generator in accordance with the method of Figure 3;

Figure 7 is a schematic drawing depicting an alternative construction of a timing generator in accordance with the method of Figure 3;

Figure 8 is a timing diagram depicting a method for synchronizing an internal clock to an asynchronous event; and

Figure 9 is a timing diagram for measuring the time between the occurrence of two asynchronous events.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

The present invention is designed specifically for an implantable medical device which communicates with an external device by pulse position modulation. Pulse position modulation is described in the Background of the Invention with respect to Figure 2.

In the preferred embodiment shown in Figure 1A, the implantable medical device 12' generally comprises processing circuitry 26' which includes a CPU 40, an internal clock 37, and a timing generator, which causes the implantable device 12' to respond to a trigger (TRIGGER) signal after a preset delay period. The implantable medical device, which in the preferred embodiment is a pacemaker, also includes a communications interface 28, an antenna 30, and leads

18 connecting the device 12' to a patient's heart. One skilled in the art will understand, however, that the present invention may be used with any implantable device, or in other telemetering situations in which a trigger event occurs asynchronously with a system clock.

As shown in the preferred embodiment of Figure 1A, the processing circuitry 26' of the pacemaker 12' receives as an input a TRIGGER signal, which is received via antenna 30 from an

external device. In response, and after a preset time delay, which is shown as the DELAY signal from CPU 40, the timing generator 75 produces an OUTPUT signal that is transmitted via antenna 30 to an external device. An internal clock 37, such as a crystal oscillator, provides an internal clock (CLOCK) signal to the processing circuitry 26' components. Typical frequencies for the internal clock are 100-200 kHz.

Referring now to Figure 3, the methodology employed in the preferred embodiment of the present invention comprises a technique for automatically measuring phase uncertainty, and adding to the preset delay period an additional delay period representing the phase uncertainty between the trigger event or TRIGGER signal and the internal CLOCK signal. The present invention preferably includes a dual-slope circuit, which is discussed in more detail below, to measure the period (or phase uncertainty) between the rising edge of the clock signal and the trigger event. The measured phase uncertainty then is added to the preset delay period from the digital delay timer, thereby correcting automatically for phase uncertainty.

One manner of performing this method is shown in Figure 3. As shown in Figure 3, a system clock is provided which provides a clock frequency fax (with a period of t__) to the pacemaker circuitry at a preselected frequency. In the preferred embodiment, the digital circuitry in the pacemaker performs operations on the rising edge of the clock signal. A trigger event may occur sometime after the rising edge of a clock signal (this delay period is represented as T E ). As one skilled in the art will understand, the pacemaker circuitry will not respond to the trigger event until the subsequent rising clock edge, thereby introducing a phase uncertainty (T E ) of 0 < T E < ta_- The phase uncertainty (T E ) is represented in Figure 3 as die distance from the previous rising clock edge to the trigger signal. At the subsequent clock edge (following the PRESET period), the digital timer or counter begins counting down the preset value for the pulse position modulated response. At each subsequent rising clock edge, the digital timer is decremented. The present invention also includes a circuit which varies a state variable, which can comprise either a digital timer or a capacitor voltage, at a fixed rate with either a positive or negative slope. When the input trigger is detected, the state variable is reset to a known value (such as zero in the preferred embodiment), then decreased at a fixed rate (M) until the next positive clock edge occurs. The state variable then is preferably increased at the same rate (M) until die subsequent clock edge. The resulting variable value is proportional to the phase uncertainty T E . When the delay timer or counter reaches zero, die state variable again is decreased at the same rate (M) until d e state variable reaches its initial value, at which time the pacemaker is enabled to issue its pulse position modulated response. The resulting delay T A of die modulated response will equal d e preset delay regardless of the phase uncertainty T E between the trigger and the clock signal.

The above method has several advantages when compared to alternative methods. First, it allows die digital delay timer or counter to operate from a standard crystal oscillator, which provides excellent long-term accuracy at a reasonable cost. In addition, because d e crystal oscillator is allowed to run freely, it can also be used by other digital circuitry in the pacemaker, resulting in potential power savings. Moreover, because die same circuit is used to both decrease and increase die state variable, die exact rate of change (or slope) of the variable is irrelevant, as long as the rate is constant. Consequently, d e system is relatively immune to parasitic effects, and eliminates d e necessity of high precision components.

Referring now to Figures 1A and 6, timing generator 75 preferably is constructed to operate in accordance with the methodology of Figure 3. The timing generator 75 of Figure 6 preferably is constructed entirely of digital logic, and includes a delay timer 25, a fast or high speed oscillator 35, a phase timer 50, and first and second D flip-flops 55, 56. The timing generator 75 receives as input signals a clock signal (CLOCK) which is the internal clock signal for the device 12, a trigger input (TRIGGER) from the communications interface 28, and a delay (DELAY) signal which is received from the CPU 30 to set die PRESET period. The timing generator 75 produces an OUTPUT signal, which is provided to communications interface 28 to generate an output signal to the external device 10.

Referring still to Figure 6, the CLOCK signal is provided as an input to the delay timer 25 and as one input to an AND gate 77. The CLOCK signal typically has a frequency in the range of 100-200 kHz. The output of AND gate 77 connects as the clock input to flip-flops 55, 56. The

TRIGGER input is provided as an input to the delay timer 25, as a reset input to the flip-flops 55, 56, and as a reset input to die phase timer 50. The DELAY signal is provided as a preset signal to the delay timer 25.

The output of the delay timer 25 connects as one input of an OR gate 81, which in turn connects to the on gate of the fast oscillator 35. The speed of the fast oscillator need only be fast enough to provide additional resolution to the system clock signal. A 1 MHz oscillator, for example, would provide sufficient resolution for a system clock of 100-200 kHz. Because the fast oscillator only operates when a trigger signal is detected, the speed of this oscillator does not consume a significant amount of power. The fast oscillator 35 preferably comprises a relaxation oscillator which turns on without any significant start-up time.

The output of timer 25 also connects as one input to AND gate 79, which generates the OUTPUT signal for timing generator 75. The fast oscillator 35 produces a clock signal that clocks the phase timer 50. The phase timer 50 includes an up/down input which connects to the Q output of flip-flop 55. The value in phase timer 50 preferably represents die value of the state variable in Figure 3. The Q output of flip-flop 55 also is provided as the data input of flip-flop 56, and is

fed back through invertor 62 to me input of flip-flop 55. The Q output of flip-flop 56 is provided through invertor 64 as the second input to AND gate 77, and as die second input to OR gate 81. In operation, a positive edge on die TRIGGER input causes the delay timer 25 to preset with die value on the DELAY input, and also resets flip-flops 55, 56 and phase timer 50. The low Q output of flip-flop 55 is provided as die up/down input to die phase timer 50, causing d e timer

50 to count down. When flip-flop 56 is reset, the Q output of flip-flop 56 goes low. The Q output is inverted by invertor 64 and provided as an input to OR gate 81, turning on die fast oscillator 35. The fast oscillator 35 provides a clock signal to die phase timer 50, causing die timer 50 to count down at a fixed rate in accordance with Figure 3. On the subsequent rising clock edge of die CLOCK signal, die delay timer 25 begins counting down to zero. The rising edge CLOCK signal also is provided as a second input to AND gate 77, producing a high output signal to d e clock input of flip-flops 55, 56, causing these flip- flops to transfer the signal at its data (D) input to its Q output. As a result, a high output appears at die Q output of flip-flop 55, and a low remains at the Q output of flip-flop 56. The high output of flip-flop 55 causes the phase timer 50 to count up at the fixed rate determined by the fast oscillator, and as shown in Figure 3.

On the subsequent rising edge of the CLOCK signal, the Q output of flip-flop 55 goes low. Substantially concurrently, die Q output of flip-flop 56 goes high, producing a low signal at die input of AND gate 77 and of OR gate 81, thus turning off the CLOCK input to flip-flops 55, 56, and turning off fast oscillator 35. As a result, the value in phase timer 50 is held fixed. This value is proportional to die phase delay T E . On each subsequent rising edge CLOCK signal, die delay timer 25 performs another count until it reaches zero.

When d e delay timer 25 reaches zero, the delay timer 25 produces a high output signal to OR gate 81 and to AND gate 79. The OR gate 81 in turn produces a high output to turn on die fast oscillator 35. Because die up/down input to the phase timer 50 is again low, the phase timer counts down. When the phase timer count reaches zero, a high output signal is driven out of the phase timer 50 to AND gate 79, causing AND gate 79 to produce a high OUTPUT signal. The high OUTPUT signal produces the pulse position modulated response to the external device which is independent of d e phase uncertainty. An alternative implementation for the timing generator is shown in Figure 7. Figure 7 incorporates an analog timing generator 75' for measuring phase uncertainty. Figure 7 is similar to Figure 6 except mat die phase timer is replaced with a capacitor 125, whose voltage represents die state variable. Two matching current sources 95, 96 are used to vary d e voltage of capacitor 125 in either direction in accordance with die method of Figure 3. A comparator 105 compares the voltage across capacitor 125 with a reference, such as 0 volts, and produces an output signal

when the voltage on capacitor 125 crosses zero. In addition, a one shot multivibrator 110 is provided to short out capacitor 125 when die TRIGGER signal is received.

Both timing generator circuits 75 and 75' are meant to be illustrative of techniques for implementing the methodology of Figure 3, and therefore should not be construed as limiting the method. Numerous other circuits and techniques, including software implementations, can be developed to achieve the same result.

An alternative embodiment to the method of Figure 3 is shown in Figure 4. In Figure 4, the state variable is initialized at die rising edge of each clock cycle and increased at a fixed rate. When a trigger event occurs, the state variable remains constant. When die delay timer or counter reaches zero, then the variable is decreased at die same rate to determine die additional delay period. One drawback of this method is that d e circuit which varies the state variable must operate continuously in anticipation of a trigger event. As a result, this method would require more power consumption than the method shown in Figure 3.

Referring now to Figure 5, yet another method is shown in which die state variable circuit is sensitive to both d e rising and falling edge of die system clock. Like Figure 3, this method limits use of the state variable circuit to instances when the trigger event is detected. As shown in Figure 5, the state variable is decreased after a trigger is detected until die first subsequent clock edge (either rising or falling). At that time, the state variable is increased until the subsequent clock edge. This method permits die phase uncertainty T E to be measured in a shorter amount of time and thus reduces power consumption by permitting the state variable circuit to be powered down until d e delay timer reaches zero. This variation, however, requires the clock cycle to have a duty cycle near 50% and die state of the clock when the trigger occurs must be known. The clock signal can be latched by d e trigger event to provide this state information.

The present invention also can be used in situations other than performing pulse position modulation. For example, the present invention can be implemented in applications in which input signals arrive asynchronously with a system clock signal. For example, and as shown in Figure 8, this technique can be used to produce a copy of d e clock signal, which is synchronized with the trigger input signal. Operating a system in this fashion permits e use of a crystal oscillator for high accuracy while maintaining the ability to resynchronize die clock to each input event. Referring still to Figure 8, die phase uncertainty may preferably be measured as shown in

Figure 5. The resulting state variable value then is used to delay each edge of die clock signal, to produce an output clock which is synchronized with d e trigger event. This adaptation requires that the state variable value be stored and reloaded on each clock edge. This output clock signal could then be used to drive any digital circuit which must operate synchronously with a trigger signal.

The techniques of the present invention also may be used to measure the time period between two asynchronous events, as shown in Figure 9. This may be accomplished, as shown in Figure 9, by performing the phase uncertainty measurement for each input event. Instead of using the resulting state variable value to produce a specific output response, however, die value can be stored and subtracted from d e value obtained for die subsequent input event. The resulting difference, combined with die value obtained from a slower digital timer (such as a delay timer in Figure 6), provides a relatively accurate measurement of die time between die two input events, as provided by:

ΗMElEVENTS = nMExT CLr + — --5 ^

" M E

where TIME is the time given by the course digital timer; T a is die period of the digital timer;

M is me actual slope of die state variable;

M E is the estimated slope of the state variable;

T m is die phase uncertainty between event 2 and d e internal clock; and

T EI is d e phase uncertainty between event 1 and the internal clock. If M E does not equal the actual slope M, the time obtained as d e time between events will have some error. Because, however, the slow digital timer provides a course estimate of the actual time, the sensitivity of this error due to M E is reduced relative to alternative methods of measuring the time between asynchronous events.

While a preferred embodiment of d e invention has been shown and described, modifications thereof can be made by one skilled in the art without departing from d e spirit of the invention.