Skip to main content
SM.31
Associate
May 18, 2020
Question

Want to discipline the RTC time with respect to UTC with the aid of UBLOX GPS module. what are the different ways I could do this?

  • May 18, 2020
  • 1 reply
  • 1104 views

1. Use 1pps as external interrupt and count the number of pulses of RTC clock, then use sub second shift feature of RTC.

2. Supply the time pulse output of the UBLOX to the reference clock detection and configure the time pulse to be 60PPS and may be adjust duty cycle to 50 percent?

Im using a STM32H7 series Mcu- 5ppm RTC crystal 32.768khz , a Ublox neo M8 std modules.

Things I am looking for

Loss of GPS signal impact on time pulse signal and consequently on the RTC timing

RTC crystal ageing

For the reference clock detection I only found references to using it using mains supply

Pros and cons of each approach, any better approaches if any

Thanks

This topic has been closed for replies.

1 reply

SM.31
SM.31Author
Associate
May 18, 2020

@clive1 (NFA Crew) Can you please help me out?

Tesla DeLorean
Guru
May 27, 2020

Can't say I've dug into the H7 options here, but​

Should be able to export LSE via MCO pin(s)

Receiver has TIMEMARK input. Could measure pulse(s) from STM32 side.

Should be able to measure LSE with a TIM. Could measure 8x cycles against PLL.

Should be able to sample RTC via TIM/DMA trigger.

Could perhaps clock HSE from TP1/TP2.

Ethernet 1PPS input might be exploitable.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..