2024-11-17 04:43 PM
Option 1:
- Use a 10MHz Timepulse signal from the GPS (Ublox M8N) and connect it to the STM32H7.
- The STM32H7 will count the timer from 0 to 999999.
- To determine when the second has passed and the NMEA signal arrives, check the next timer overflow, which will indicate the exact second.
Option 2:
- Use a 1Hz Timepulse signal from the GPS and synchronize the time with the same as option 1.
I prefer a 10MHz or higher frequency Timepulse signal because I want to use it to trigger the Timer. This will trigger the ADC, ensuring that the ADC aligns with the GPS clock every 1us.