Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
Just a nested question. It is clear for me that that PPS signal is extremely accurate in the long term. However, is it also assured that it has a very low jitter? (so, does it retain its accuracy down to the very short term of one cycle?) Does that signal come out of an MCU pin, or directly from a divider coupled to a PLL? – Telaclavo Apr 26 '12 at 17:40
The PPS signal has extremely low (near zero) DC jitter, but its high-frequency jitter cannot be assumed to be at the same standard. It's best used to use it to synchronize an oscillator like those described by Russell McMahon below – antijon Apr 26 '12 at 21:29

5 Answers

up vote 17 down vote accepted

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.

share|improve this answer
+1, and see my elaboration – vicatcu Apr 26 '12 at 16:10
GPS satellites have atomic clocks, which is why the PPS signal is so accurate. Even if the output is instantaneously accurate to only 1 ms, it will never accumulate more than 1 ms of error relative to the actual number of seconds that have elapsed. – ajs410 Apr 26 '12 at 16:38
1  
How come that very accurate 1PPS signal doesn't get disturbed while its travelling on its way from outer space or some other circuitry doesn't disturb it? – abdullah kahraman Apr 27 '12 at 22:56
3  
@abdullahkahraman The 1 ppm output doesn't come directly from a satellite. It comes from the receivers own internal clock. That clock is synchronized with the satellites. The 1 pps output doesn't go away if the receiver looses reception (it just gets less accurate). – David Kessner Apr 28 '12 at 3:37
Ah, got it. Thank you :) – abdullah kahraman Apr 28 '12 at 6:53

I think you need to read up on the unit you have (as some are different) but I would guess that it is to be used as a time sync. Ie you get a message saying next Pulse will come at timeInUTC.

"The GPSClock 200 has an RS-232 output that provides NMEA time codes and a PPS output signal. About a half-second before, it outputs the time of the next PPS pulse in either GPRMC or GPZDA format. Within one microsecond of the beginning of the UTC second, it brings the PPS output high for about 500 ms."

share|improve this answer

@DavidKessner's answer is in line with what I'm about to say, but I wanted to elaborate, and this is a bit more than a comment.

This output could be used to, say, wake the MCU (from a deep sleep mode) once per second (to within a couple nano-seconds) in an application where you cared about the MCU doing something on a particular second, within great accuracy.

An MCU could also use this signal to calculate it's own timing accuracy and compensate for it in software. So the MCU could "measure" the pulse duration, and assume that it is a "perfect" 1s interval. In doing so it could effectively determine the time stretching or squeezing it is experiencing, say due to temperature effects on its crystal or whatever, and apply that timing factor to any measurements it is taking.

share|improve this answer

Long term the 1 Hz signal is probably the most accurate time, and so also frequency, reference that you will ever encounter.

You are effectively obtaining something like a cesium clock time reference for the cost of a GPS module. A bargain. You can buy commercial "disciplined oscillator" units and designs for DIY ones are available. A DO is not frequency locked per se but is gently kicked into lock by error signals between a 1 H signal generated by local and GPS clocks.

Disciplined oscillators

Standard time anywhere They say -

  • Ovenized Quartz Crystal Oscillators When a single (OCXO) or double (DOCXO) temperature-controlling oven is wrapped around the crystal and its oscillating circuitry, the frequency stability may be improved two to four orders of magnitude relative to that of the TCXO. Such oscillators are used in laboratory and communications grade applications and often have the means to adjust their output frequency via electronic frequency control. In this way they may be "disciplined" to match the frequency of a GPS or Loran-C reference receiver.

    GPS-disciplined DOCXOs are the Stratum I Primary Reference Sources (PRS) for many of the world's wired telecommunications systems. They are also widely deployed as GPS time and frequency references for the basestations operating under the IS-95 standard for the Code Division Multiple Access (CDMA) cellular mobile phone systems originated by Qualcomm. The sheer volume of these basestation applications has profoundly affected the OCXO market by driving prices down and consolidating vendors.

Super simple DIY DO

Brooks Shera DO

Working out how well you've done

Commercial module - 0.1 parts per billion per day.

enter image description here

Commercial with graphs

UTC tracker

share|improve this answer

Having designed ruggedized OCXO for harsh rocket environments and tracking floating weather stations before GPS .. actually after only 1st GPS (GOES 1) was launched, it brings back fond memories.

The importance of stability depends on outages and how much error you can tolerate during outage or LOS (loss of signal) as well as capture time. When you multiply f by N by PLL divider you also multiply phase error. So care to minimize drift and phase noise is essential.

In my OCXO I chose 10MHz for the OCXO, 100KHz for the rocket's FM sub-carrier telemetry and 10KHz for the mixer ground station to track the rocket's position. The range for vehicle travel is simply the phase difference using the difference frequency and phase of the telemetry sub-carrier and the ground station at the chosen f with Δλ=c/f with Δposition=Δλ + cycle counts. The frequency error represents velocity as in radar speed. So with 1 PPS (1Hz) clock you can support a large range and time interval without cycle skips or counts on precise phase difference. Note that a cycle skip in phase error could be N cycles which means ambiguity of accumulated error.. assuming LOS error is important.

Redundancy is key for reliability if you have choice and ranking of sources from Stratum 1,2,& 3 clocks in case of outage. Telecom synchronous high speed networks depend on precise clocks as do licensed radios. Networks use intelligent error logging for ranking references of Stratum clock sources.

Of course that takes uber diligence in the design of your DO. Volumes of books on standards define these rules.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.