time-nuts@lists.febo.com

Discussion of precise time and frequency measurement

View all threads

TruePosition and Arduino Progress

MS
Mark Sims
Sun, May 21, 2017 3:09 PM

The 1PPS pulse is very narrow.  You will miss it if it comes in while parsing a time message.  You need to set up an interrupt handler to that triggers on the rising edge of the pulse and sets a flag (which must be declared "volatile").  Check that flag in your loop() instead of waiting for a PPS pulse.  If set, display the time and clear the flag.

The 1PPS pulse is very narrow. You will miss it if it comes in while parsing a time message. You need to set up an interrupt handler to that triggers on the rising edge of the pulse and sets a flag (which must be declared "volatile"). Check that flag in your loop() instead of waiting for a PPS pulse. If set, display the time and clear the flag.