GPS PPS信号

pps :pulse per second

GPS PPS信号_第1张图片

几个问题:

1) 精度

ns级别

2)精度这么高的原因?

GPS使用原子钟(原子钟,是一种计时装置,精度可以达到每2000万年才误差1秒)

 

 

 

 

pulse per second (PPS or 1PPS) is an electrical signal that has a width of less than one second and a sharply rising or abruptly falling edge that accurately repeats once per second. PPS signals are output by radio beacons, frequency standards, other types of precision oscillators and some GPS receivers.[1] Precision clocks are sometimes manufactured by interfacing a PPS signal generator to processing equipment that aligns the PPS signal to the UTC second and converts it to a useful display. Atomic clocks usually have an external PPS output, although internally they may operate at 9,192,631,770 Hz. PPS signals have an accuracy ranging from a 12 picoseconds to a few microseconds per second, or 2.0 nanoseconds to a few milliseconds per day based on the resolution and accuracy of the device generating the signal.

 

Why do GPS receivers have a 1 PPS output?

I was surprised to see that the GPS receiver I'm working with has a pin reserved for outputting a 1 PPS (Pulse Per Second) signal. What is the point of this? Can't the microcontroller easily generate its own 1 PPS signal?

--The 1 PPS output has a much lower jitter than anything a MCU can do. In some more demanding applications you can use that pulse can be used to time things very accurately. With some scientific grade GPS's this 1 PPS output might be accurate to better than 1 nS.

http://mtnstormdaq.com/blog/2012/10/gps-pps-use-as-a-time-reference/

GPS PPS use as a time reference

Posted on October 11, 2012 by jbattles

Most GPS modules today have an output called PPS.  PPS stands for Pulse Per Second and is a digital output signal which changes value on the 1 sec. boundary for UTC (Universal Coordinated) time.  This signal can be used to reset internal counters in a DAQ system that count the number of clock ticks from the second boundary.  The signal polarity and length is usually programmable in the GPS.

A few notes on using this PPS signal:

  1. There are two measures of the signal: one is the signal accuracy and the other is its precision.  Accuracy is how close the signal edge is to the actual UTC boundary.  Some mfgrs. do not give you this value.  It can often be a few microseconds off from the actual UTC boundary.  The good news is that this offset error is usually fixed for a given firmware version/product.  The second measurement is the precision, which is how much the PPS signal edge changes from one second to the other.  This value can be from the 10s of nanoseconds to a few few microseconds.
  2. The PPS signal edge and rise time are very important if you are using it to reset a counter.  If the rise time is slow due to a large input capacitance, long signal length, etc. this will add an offset to the accuracy that will need to be calibrated out.  If the signal is noisy from long trace lengths, unshielded cables, or other noise sources, the reset circuit may see more than one edge or a variable delay on the offset time where the counter is reset.
  3. Many GPS have precision in the 10’s of nanoseconds.  The PPS can be used to calibrate crystal oscillators which have errors generally in the 20-100 ppm.  A 100 ns precision gives an error of about 1 PPB.   The biggest problem is the precision of the GPS can vary due to many factors which cannot be easily measured.  The error can change from one PPS to the next.  So a trick is to create either a median filter or moving average of several PPS counts to determine the actual count value.
  4. FPGA’s can very easily synchronize a clock count time to the PPS edge boundary and then measure the time of an event like a trigger.
  5. Microcontrollers can also use the PPS to sync. a counter to UTC second time, but are less flexible and generally less accurate in measuring event times, especially when interrupts are used instead of h/w timers.
  6. GPS systems need to be able to view the sky to work properly.  This can be a big problem if the system is indoors and shielded.  An antenna would have to be run to the outside.
  7. The GPS serial data can be used to set the system date and time.   The data come out of the GPS some time usually from 100-500 ms after the PPS edge.

The GPS PPS signal, when properly handled, can provide a very good time reference for DAQ systems.

 

你可能感兴趣的:(嵌入式)