I'd like to comment on the idea of measuring the width of the pulse.  My 
experience with creating the 1PPS from an interrupt is that it's fairly 
straightforward how to do the set interrupt:  The interrupt happens, you 
execute one, maybe two instructions to raise the output pin, and you leave the 
interrupt routine.  But, resetting the pin is a different story.  Unless you've 
got a lot of interrupt vectors to play with, the reset part of the 1PPS signal 
is delegated to a general purpose timing interrupt where you're doing a lot of 
other stuff - and it has a somewhat lower priority.  So, you wind up doing a 
number of compares to see if you should reset the pin, which adds some 
ambiguity to the set/reset times.
Granted, I'm doing this on a general purpose PIC, but I have read comments 
about various receivers having some jitter on the reset side of their 1PPS 
pulse.
Bob
 -----------------------------------------------------------------
AE6RV.com

GFS GPSDO list:
groups.yahoo.com/neo/groups/GFS-GPSDOs/info

      From: Chris Albertson <[email protected]>
 To: Discussion of precise time and frequency measurement <[email protected]> 
 Sent: Wednesday, November 9, 2016 10:41 AM
 Subject: Re: [time-nuts] How to get PPS from ublox mini-PCI GPS to APU2 SoC 
serial port for ntpd
   
On Tue, Nov 8, 2016 at 11:08 PM, Hal Murray <[email protected]> wrote:

>
> [email protected] said:
> > Who cares if the PPS is inverted?
>

If the signal is NOT inverted then the raising edge will be within
nanoseconds of the UTC seconds "tick".    The inverted PPS will have the
edge delayed somewhat.  It is not even clear if the length of the delay is
constant.

If using the PPS for timing and the PPS is inverted you will have to
measure the delay length an account for in the config file.




-- 

Chris Albertson
Redondo Beach, California
_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


   
_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to