David Pilling |
Main »
STM32 RTCStarted 7th February 2016 The STM32 board I used has a 32768 Hz crystal to allow operation of the the real time clock. To make use of this it is necessary to connect a 3 V battery to the VB (or VBAT) pin. I used a CR2032 and bearing in mind the warnings [2], connected it via a BAS 85 Schottky diode. With the USB power disconnected current was 1.3 μA. Time keeping seems around a second per day. The sketch below allows reading and setting the clock. With a serial connection, various commands can be used. rt wy <year> wn <month> wd <day> wh <hour> wm <minute> ws <second>
I used a lot of freely available software. Credit to the people who wrote it and made it available. Software sources:
|
David Pilling's Wiki Set view |
Page last modified on December 06, 2016, at 02:39 AM - Powered by PmWiki pmwiki-2.3.31 (pmwiki-2.3.31) |