mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 08:10:21 +00:00
The interval and the width of the pulse train of the PPS output were programmed as the number of increments of the system time minus one, but the MAC takes them as they are. Each period was one increment (10 ns with HCLK at 200 MHz) shorter than a second, so the pulses came 10 ns early each second, about 36 us in an hour, and the output drifted away from the system time. Program the interval and the width without subtracting one. On a run of 8.2 hours against a grandmaster clock the pulse moved 0.29 ms ahead of the system time, which is 10 ns per second, while the system time stayed within 1 us of the grandmaster. With the change, a run of 11 hours showed no drift of the pulse against the system time, within 3 us per hour on samples of 1 ms of resolution. Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com> Assisted-by: Claude:claude-sonnet-5 |
||
|---|---|---|
| .. | ||
| arm | ||
| arm64 | ||
| avr | ||
| ceva | ||
| dummy | ||
| hc | ||
| mips | ||
| misoc | ||
| or1k | ||
| renesas | ||
| risc-v | ||
| sim | ||
| sparc | ||
| tricore | ||
| x86 | ||
| x86_64 | ||
| xtensa | ||
| z16 | ||
| z80 | ||
| CMakeLists.txt | ||
| Kconfig | ||