1. Field of the Invention
The invention relates generally to devices for generating and capturing electronic timing events and for capturing software timing events. More specifically, the invention is a system and method for precise absolute time event generation and capture.
2. State of the Art
Many devices use local clocks to provide internal time synchronization between subsystems that are connected electrically. Computers, for example, may have a master clock used by other electronic devices to synchronize various operations, such as data transfers, within the computer. Typically, all of the electronic devices in the computer have an electrical connection to the master clock.
Time synchronization between instruments that cannot be connected by timing cables is a requirement common to many applications. A related requirement is time synchronization to an absolute global time standard.
Thus, it would be desirable to have a flexible system and method configured for wirelessly generating and capturing precise timing events. It would be advantageous if such a system could operate over global distances. It would be further advantageous to have a system capable of synchronizing to an absolute clock standard, such as the global positioning system (GPS) clock.
An embodiment of a system for precise absolute time event generation and capture is disclosed. The system may include a timing event generator for generating output timing events, wherein the output timing events may be a rising edge, a falling edge or any combination of a rising or falling edge. The system may further include a timing event receiver for sensing input timing events, wherein the input timing events may be a rising edge, a falling edge or any combination of a rising edge or falling edge. The system may further include a universal clock receiver for obtaining an absolute time clock signal and a processor in communication with the timing event generator, the timing event receiver and the universal clock receiver.
An embodiment of a method for capturing absolute timing events is disclosed. The method may include tracking absolute time. The method may further include capturing timing events. The method may further include time stamping the captured timing events relative to the absolute time and measuring elapsed time between the time stamped events.
An embodiment of a method for generating electronic timing events is disclosed. The method may include tracking absolute time. The method may further include defining a timing pulse sequence. The method may further include calibrating the defined timing pulse sequence to the absolute time and outputting the absolute time calibrated timing pulse sequence.
An embodiment of a system for precise absolute time event generation and capture is disclosed. The system may include an input device, an output device, a memory device and an absolute time event generator and capture circuit. The system may further include a processor in communication with the input device, the output device, the memory device and the absolute time event generator and capture circuit.
An embodiment of a system for precise absolute time event generation and capture is disclosed. The system may include a circuit card. The circuit card may include an oscillator, a global positioning system (GPS) engine for receiving a GPS clock, a plurality of timing event inputs, a plurality of timing event outputs, a host bus interface and time event generation and capture logic in communication with the oscillator, the GPS engine, the plurality of timing event inputs and outputs and the host bus interface. The system may further include a software device driver configured for controlling the circuit card through the host bus interface and time-stamping the plurality of timing event inputs and outputs with absolute time based on the GPS clock.
An embodiment of a system for calibrating cosmic ray detectors is disclosed. The system may include a plurality of lasers and a timing event generator in communication with the plurality of lasers, the timing event generator configured for generating a plurality of precisely timed digital trigger pulses to fire the plurality of lasers.
The following drawings illustrate exemplary embodiments for carrying out the invention. Like reference numerals refer to like parts in different views or embodiments of the present invention in the drawings.
A system and method for precise absolute time event generation and capture is disclosed. A system embodiment of the present invention, including a programmable hardware module and the software device driver is also disclosed. The systems and methods disclosed herein have broad application and may be used virtually anywhere that requires precise digital timing events registered to an absolute time clock. Exemplary embodiments of the system and method of the present invention are disclosed herein. However, it will be understood that the exemplary embodiments are intended to merely illustrate the potential scope of the invention and are not intended to be limiting of the scope of the present invention.
According to another embodiment of system 100, the timing event generator 102 may include pulse edge logic (not shown in
According to another embodiment of system 100, the timing event generator 102 may be configured to independently generate the output timing events on a plurality of output channels 110 (arrow with slash through it). It will be understood that any number of output channels 110 may be employed depending on the application. For example, according to one embodiment of system 100, the timing event generator 102 may be configured for generating the output timing events on eight output channels 110.
According to another embodiment of system 100, the timing event receiver 104 may be configured to independently receive input timing events on a plurality of input channels 112 (arrow with slash through it). It will be understood that any number of input channels 112 may be employed depending on the application. For example, according to one embodiment of system 100, the timing event receiver 104 may be configured for receiving the input timing events on eight input channels 112.
Accuracy of timing events generated and captured by system 100 and measurements relative to such timing events may be limited by various parameters including, for example, internal clock speeds, logic delays, loading, etc. According to one embodiment of system 100, the timing event generation and capture comprises a timing measurement error of about 25 ns or less. According to another embodiment of system 100, the timing event generation and capture comprises a timing measurement error of about 12.5 ns or less. It will be understood that these nominal accuracies are exemplary and not to be considered limiting of the present invention.
According to another embodiment of system 100, the universal clock receiver 106 may be configured to provide a GPS timing signal. According to yet another embodiment of system 100, the universal clock receiver 106 comprises a GPS engine.
System 200 may further include an absolute time event generator and capture circuit 208. System 200 may further include a processor 210 in communication with the input device 202, the output device 204, the memory device 206 and the absolute time event generator and capture circuit 208. System 200 may further include a GPS engine 212 in communication with the absolute time event generator and capture circuit 208. The GPS engine 212 may be configured to provide system 200 with an absolute time signal. The GPS engine 212 may include an integral or attached antenna 214 for receiving GPS signals and in particular a GPS timing signal.
According to an embodiment of system 200, the memory device 206 may include computer-readable instructions for implementing a method for capturing absolute timing events. The method for capturing absolute timing events stored in memory device 206 may be method 300 as described below. According to another embodiment of system 200, the memory device 206 may include computer-readable instructions for implementing a method for generating electronic timing events. The method for generating absolute timing events stored in memory device 206 may be method 400 as described below.
Referring again to
A circuit card embodiment of system 500 may be a programmable hardware module for transistor-transistor logic (TTL) pulse generation and capture in absolute time. The nominal accuracy of the programmable hardware module is 25 ns. The global or absolute time reference may be, for example and not by way of limitation, an on-board GPS receiver. This particular programmable hardware module embodiment may be configured to generate eight independently programmable timing event outputs and capture timing events on eight independently programmable inputs. This particular hardware embodiment described herein is configured for a standard PC104 layout for use with embedded computer systems.
Referring again to
Referring again to
To generate pulse-edge sequences, the device driver software on the host processor uses the captured GPS one-second events to compute a list of free-running scaler values for each output pulse rising and falling edge. This list, along with 16-bit control words that define the required rising/falling edge action for each of the eight outputs, is written to a “256” entry pulse FIFO 532. When the free-running scaler matches the FIFO output scaler value, the action defined by the associated control-word is performed by the pulse-edge logic 520 and the next FIFO entry is read. The pulse-mode register 534 allows enabling or disabling any specific action on each output. If a pulse-edge sequence has already been loaded into the pulse-output FIFO 532, the output can still be enabled or disabled to an “off” state without truncating pulses by specifically enabling or disabling either rising or falling edges for the selected output.
The Motorola™ M12+ Timing GPS receiver (GPS engine 510) uses an RS-232 serial port for configuration and status messages. System 500 translates these serial input and output streams via a universal asynchronous receiver/transmitter (UART) to a simple byte stream that the host processor can access through I/O registers. The UART is buffered by 16 byte FIFOs for both the receiver and transmitter.
The capture input FIFO 524, the pulse output FIFO 532, and the GPS serial receive 536 and GPS serial transmit 538 FIFOs are all interrupt driven. The host processor does not need to poll the FIFO status to find out when a FIFO is ready for reading or writing. Four other “error” interrupts may also be generated: (1) watch-dog timeouts on the GPS one-second pulse, (2) over-run errors on the pulse-edge capture, (3) over-run errors on the GPS serial receive FIFOs and (4) framing errors on the GPS serial input. All of these interrupts can be individually enabled with the interrupt-mask register 540 and monitored with the interrupt-flags register 542.
The module configuration register 530 allows dynamic selection of the interrupt request number and allows various subsections of the module to be enabled or disabled for low power applications. If the GPS receiver is not currently needed, it can be powered off and the serial UART circuit disabled. If the pulse outputs are not needed, the pulse output driver can be disabled with high-impedance outputs. System 500 can be effectively shutdown to a very low power state by turning off the clock oscillator when system 500 functionality is not required. For diagnostics, the serial UART can be put in loop-back mode and the free-running scaler 522, the capture-input FIFO 524 and pulse-output FIFO 530 may be cleared individually.
System 500 uses 16 bytes of I/O space on the PC/104 (ISA signal compatible) bus. The system 500 I/O space address is jumper selectable from 0x0000 through 0x03F0 in 16 byte steps. Also jumper selectable is the GPS antenna preamplifier voltage to either 3.0V or 5.0V, 50Ω termination to ground on each of the eight capture inputs 512 and 50Ω series termination on each of the eight pulse outputs 514.
The circuit card embodiment of system 500 conforms to the 16-bit PC/104 bus version 2.4 mechanical and electrical specification. The disclosed embodiment of system 500 logic is primarily implemented in a Xilinx Spartan2 Field Programmable Gate Array (FPGA). The FPGA and its configuration ROM can be in-circuit programmed through a JTAG standard interface connector. The JTAG port also allows in-circuit probing of all the FPGA I/O pins for debugging purposes.
Embodiments of the present invention may be used in triggering external light sources, particularly flash-lamp pumped lasers at specific times for calibration of cosmic-ray observatories. Embodiments of the present invention may be used to synchronize the firing times of lasers, see, e.g., F. A. Aqueros et al., Proc 29th ICRC, 8, 335 (2005) and M. Chikawa et al., Proc 29th ICRC, 8, 137 (2005), used to calibrate large-aperture cosmic ray detectors, see J. Boyer et al., NIMA 482 (2002) 457 (2002) and The Pierre Auger Collaboration, NIMA, 532, 50 (2004). These large-aperture cosmic ray detectors record the passage of extensive air-showers in the atmosphere, see R. Abbasi, et al., Astropart. Phys. J., 25, 74 (2006). The same large-aperture cosmic ray detectors can also record tracks produced by light scattered out of pulsed laser beams fired into the sky. Physical separations between the lasers and the detectors can exceed 30 km. A flash-lamp pumped yttrium aluminum garnet (YAG) laser is the typical laser used for such applications. It requires two precisely timed digital trigger pulses to produce light at a specific time. The first pulse triggers the flash lamp. The second pulse triggers a high-speed optical switch (Q-Switch) on the laser causing light emission. For this application, embodiments of the present invention may be configured to generate laser light pulses at specific times so that the resulting laser tracks could be distinguished from cosmic-ray candidate tracks without ambiguity.
Those of ordinary skill in the art will readily recognize that the potential applications for the embodiments of the present invention are considerably broader than the timing of laser firings described above. For example, any application that requires a general purpose timing device for control of timing signals synchronized to global clock signals over significant distances without hardwiring may benefit from the present invention.
A detailed description of a software embodiment of the present invention is disclosed. The software embodiment of the present invention has been implemented in a Linux software device driver interface featuring an extensive set of user commands. A block diagram of an embodiment of a device driver 800 is shown in
The command set shown in Table 1, above, allows considerable flexibility in configuration and operation of circuit card embodiment of system 500 (
The device driver 800 of the present invention also supports a stack machine language, see Table 2, below.
Referring to
The device driver 800 also provides an ASCII text character-device interface (see Tables 1 and 2, above) for application software. The device driver 800 interface accepts human-readable ASCII commands on its character-device input and responds to commands, capture events and hardware exceptions with human-readable messages to its character-device output. Standard Portable Operating System Interface for Unix (POSIX) file I/O functions are employed in this particular embodiment. The device driver 800 can be loaded dynamically into a running Linux operating system kernel.
The Event Tasklet (
For the external capture events, (see Table 1, above) the absolute time of the capture is computed with nanosecond resolution. The time interval and the number of scaler clocks are known between the two nearest GPS 1 pps reference events. The number of scaler counts of an external capture event relative to the previous 1 pps reference event is divided by the calibrated frequency to yield the absolute time of the external capture event.
For output pulse generation, a list of ASCII byte-code sequence expressions is evaluated each second by a stack machine interpreter. The stack machine interpreter must receive sequence expressions at least two seconds before the output pulses are to be generated. The stack machine interpreter can perform basic arithmetic and logical calculations with a predefined set of variables. The sequence expression defines the pulse sequence attributes (pulse width, period, count and offset from start of second or first pulse) and a sequence start trigger based on the current date and time. If evaluation of the sequence start trigger is true, a time sorted list of pulse rising and falling-edge events with the absolute nanosecond precision times is computed from the pulse sequence attributes. Overlapping pulses in any output channel are combined with a simple “OR” algorithm. After all of the sequence expressions have been evaluated and the list of edge events is complete, the pulse edge times for the next second period are then converted to scaler values by extrapolating from the most recent GPS 1 pps time reference event and the calibrated scaler frequency, and fed to system 500 output pulse FIFO 532. Edge events after the next second period are retained and accumulated into the pulse edge event list for the next second.
The Serial Tasklet extracts GPS status messages from the GPS receiver serial stream. GPS status messages are in a Motorola™ binary protocol serial stream. Extracted messages are written into GPS status record data structures. The Event Tasklet reads these data structures to calibrate reference events. The command parser also reads these data structures in response to GPS status queries from the user program.
Exception conditions are monitored by the Exception Tasklet and converted to human readable messages. The software device driver handles some exception conditions. For example, if GPS 1 pps events are missing, a 1 pps watchdog exception will be generated. If this happens too often, the Exception Tasklet will enable the internally generated (40 million scaler count) 1 pps signal for the reference event. If this condition occurs, an error message is sent to the user program.
Upon initialization, system 500 uses the internal clock 508. For precision timing, the user must request that the system 500 enter survey mode. If the current position has already been stored in the internal memory of the GPS receiver, or if the GPS receiver has calculated its position (completed survey mode and switched to position hold mode), system 500 will use the 1 pps as the reference clock. A message is sent to the user program when this condition is satisfied.
Commands that can be sent to the driver module include GPS control and status commands, system 500 hardware control commands and pulse sequence expression and attribute commands. The device driver module responds to all commands with a message indicating the current control value or status.
A set of commands also provides a simplified interface for generating pulses to trigger flash-lamp type lasers. These commands define two output pulse sequences. Pulses from the first sequence trigger the laser flash-lamp at a specific time offset before pulses from the second sequence trigger the laser Q-Switch.
The software implementation of device driver 800 is described in Table 4, below.
It will be understood that the present invention may be embodied in other specific forms without departing from its spirit or essential characteristics disclosed herein. The described embodiments are to be considered in all respects only as illustrative and not restrictive. Various other configurations may be understood by those skilled in the art based upon the material disclosed herein. The scope of the invention is therefore indicated by the appended claims rather than by the foregoing description. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope as well.
This nonprovisional patent application claims benefit and priority under 35 U.S.C. §119(e) of the filing of U.S. Provisional Patent Application Ser. No. 60/806,047 filed Jun. 28, 2006, titled: “SYSTEM AND METHOD FOR PRECISE ABSOLUTE TIME EVENT GENERATION AND CAPTURE”, the contents of which are incorporated herein by reference for all purposes.
The U.S. Government has a paid-up license in this invention and the right in limited circumstances to require the patent owner to license others on reasonable terms as provided for in the terms of grants PHY-9322298, 9974537, 9904048, 0140688 awarded by the National Science Foundation (NSF).
Number | Name | Date | Kind |
---|---|---|---|
5548562 | Helgerud et al. | Aug 1996 | A |
5689689 | Meyers et al. | Nov 1997 | A |
6209090 | Aisenberg et al. | Mar 2001 | B1 |
6226762 | Foote et al. | May 2001 | B1 |
6433734 | Krasner | Aug 2002 | B1 |
6778136 | Gronemeyer | Aug 2004 | B2 |
6903681 | Faris et al. | Jun 2005 | B2 |
7109475 | Hardman et al. | Sep 2006 | B1 |
20020069076 | Faris et al. | Jun 2002 | A1 |
20050062643 | Pande et al. | Mar 2005 | A1 |
20060109107 | Staton et al. | May 2006 | A1 |
20060209941 | Kroeger | Sep 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20080016384 A1 | Jan 2008 | US |
Number | Date | Country | |
---|---|---|---|
60806047 | Jun 2006 | US |