rtc time faster ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-23 5:49 AM
hi,
I have set internal clock frequency 1Hz but RTC time is faster than the real time
I have stm32l0 rtc clock LSI with 37khzPREDIV_A=125 andPREDIV_S =296
Note: this post was migrated and contained many threaded conversations, some content may be missing.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-23 5:58 AM
Product isn't 37000 is it?
You should perhaps also quantify LSI via MCO pin
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-23 7:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-23 7:09 AM
above image RTC Clock is 37khz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-23 11:30 AM
>>
above image RTC Clock is 37khz
So, does that make the math work any better? 126*293 != 37000
a) You need to determine the frequency the LSI is actually clocking at
b) You need to review your options to trim that
c) You need to understand the gearing that divides that down
Perhaps review the Data Sheet
Typical 38 KHz, with a range 26-56 KHz
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-24 7:40 AM
I have stm32l0 rtc clock LSI with 37khz PREDIV_A=125 and PREDIV_S =296
125*296=37000
same problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-24 7:50 AM
The formula is (
PREDIV_A + 1) * (PREDIV_S + 1), but have you MEASURED the frequency of your device?
If you want more accurate time use a crystal.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-25 10:37 PM
Let me suggest that you wouldn't depend on the accuracy of the processor RTC.
if you want to know the time of day accurately, I would suggest something like DS3232. with a temperature compensated embedded crystal.
http://datasheets.maximintegrated.com/en/ds/DS3232.pdf
also good for Storage of 256bytes of external R/W data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-25 11:01 PM
hi,
frequency of our device is 4Mhz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-26 1:25 AM
hi,
how to solve this problem without external RTC
