Search found 8 matches
- Thu Feb 06, 2020 8:01 am
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
Thanks ag123. Sure, i will implement a code to get time from serial to set time for RTC and discuss about it soon..
- Thu Feb 06, 2020 7:25 am
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
Ok, i will see all the links soon..
In the previous code, i done modifications.
here is the code
#include <RTClock.h>
RTClock rtclock (RTCSEL_LSE); // initialise Low speed External clock for RTCclock
uint32 tt;
tm_t mtt;
uint32 last_ms = 0;
uint32 period = 0;
#define LED_PIN PC13
double count ...
In the previous code, i done modifications.
here is the code
#include <RTClock.h>
RTClock rtclock (RTCSEL_LSE); // initialise Low speed External clock for RTCclock
uint32 tt;
tm_t mtt;
uint32 last_ms = 0;
uint32 period = 0;
#define LED_PIN PC13
double count ...
- Wed Feb 05, 2020 7:29 am
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
yes,it works. When i referred datasheet, i came across backup registers that works with VBAT supply. May i know the usage of backup registers and its working..? where can i find backup register's configuration, working procedure and explanations, ?.. it may be helpful for me..
In datasheet, i can ...
In datasheet, i can ...
- Wed Feb 05, 2020 6:38 am
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
In bluepill, i connected 3.3v supply from another arduinouno microcontroller to VBAT pin of bluepill and i connected both controllers ground. I used Arduinouno instead of coin battery and uploaded the previous code. I set the initial time as 1580903310.
Soon after i disconnected the bluepill's main ...
Soon after i disconnected the bluepill's main ...
- Tue Feb 04, 2020 12:29 pm
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
Thanks. I tried your modified code with bluepill. It works well as you mentioned above and i tried without removing PC14 and PC15 Pins. It is very accurate too. This is accurate only with power supply condition. But incase of 0v main supply , the RTC should work as it is, for precise time and date ...
- Sat Feb 01, 2020 7:47 am
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
You have to remove the pins on PC14 and PC15 in order to have correct RTC times.
Sir,I read STM32F103xxxx datasheet. In that, the RTC clock can be supplied by any of these three HSE or LSI or LSE.. I have used LSE in the code. You can see it in program as
RTClock rt (RTCSEL_LSE);
Also in ...
- Fri Jan 31, 2020 1:26 pm
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
Re: STM32F103C8T6 RTC to get date and time
if i'm not wrong stm32f103 rtc keeps time to the nearest second. i'd guess between the variations of ms differences it would after all be still the same second or so?
No. It changes. Initially i set the time as 1580480000, when i upload the code for first time, i could see the second has ...
- Fri Jan 31, 2020 6:26 am
- Forum: General discussion
- Topic: STM32F103C8T6 RTC to get date and time
- Replies: 19
- Views: 33022
STM32F103C8T6 RTC to get date and time
hi, I am using STM32F103C8T6 microcontroller to get current Time and date. I am using Arduino IDE for this project. Since the microcontroller has in-buid RTC, i am using it. I used RTClock.h library. I used the example program "Test_RTClock" . In the setup function, i initially set the epoch time by ...