STM32F4 Discovery, RTC and GPS PPS synchronisation #571
Replies: 3 comments
-
Posted at 2014-08-25 by @gfwilliams Well, if you want to access the RTC directly, you'll have to use the peek and poke functions. In terms of external synchronisation, I'd really consider just soldering on a 32kHz crystal - that'll save you a whole bunch of time and should be more than accurate enough for pretty much everything. Having said about accessing the RTC directly, on the Espruino Board the value from |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-25 by roy.emmerich
Maybe I didn't explain myself properly @gordon. As far as I understand things, the crystal is there to prevent the clock drifting by making sure the frequency is exactly 2^15 cycles per second. That doesn't help much if the micro RTC is off by an hour to start with or has a completely incorrect date/time (e.g. after losing power). What I am aiming to achieve is to have a datalogger, that is installed in some remote place, automatically update its RTC on start up and then once a day (or more frequently if desired) during long term operation from the GPS timestamp (via serial) and the time pulse pin. As I have applications in the scientific research and energy domains, I'd like to make it autonomous and as accurate as I can to ensure that data collected from a geographically distributed network of my devices can be reliably compared. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-27 by @gfwilliams Well, the way Espruino's In fact you could do it right now - it just wouldn't be quite as accurate right now as it works of the high speed oscillator. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-24 by roy.emmerich
Goal:
I want to accurately update the STM32F4 RTC:
Some background:
I am using the following hardware
which pretty much looks like this:
So far I have integrated the GPS receiver into my project pretty well and have extended the basic GPS module to include configuration commands and a few other features.
The STM32F407 has a highly capable, built-in RTC which I would like to make use of within the Espruino JavaScript environment.
For the inquisitive, the ST manual on how to use the RTC can be found here.
From what I can see I have the following options to synchronise the STM32F4 RTC:
Questions:
References:
Here are a few interesting links that have edified me somewhat:
Beta Was this translation helpful? Give feedback.
All reactions