The OP
Published on 2022-10-13 17:53
Only look at the author
This post is from Domestic Chip Exchange
Latest reply
How to get accurate timing with LSI:
Analysis of the reasons for inaccurate data:
The default division factor is 32768. If you choose to use the external LSE clock 32.768KHZ, you can get a more accurate 1S clock timing. The calculation method is fLSE/division factor = counting frequency. 32768Hz/32767 is approximately equal to 1Hz.
When LSE is replaced by LSI, the clock of LSI varies between different chips, with a typical value of about 40KHz. You can choose a frequency division that is easy to measure, use the second interrupt to output the divided clock frequency, and invert the accurate LSI. Then adjust the frequency division coefficient based on the calculated LSI to get a relatively accurate 1Hz signal.
1. Use the program provided by the original poster to adjust the frequency division factor to 40. It is estimated that the second interrupt frequency can be around 1KHz. Use an oscilloscope to calculate or make a timer capturer yourself, capture the frequency, and then infer the real frequency of the LSI.
2. Modify the frequency division coefficient according to the actual frequency of LSI to obtain relatively stable RTC clock data
Details
Published on 2022-10-14 18:06
| ||
|
||
lugl4313820
Currently offline
|
2
Published on 2022-10-13 22:19
Only look at the author
This post is from Domestic Chip Exchange
| |
|
||
|
Honghuzaitian
Currently offline
|
3
Published on 2022-10-14 01:05
Only look at the author
This post is from Domestic Chip Exchange
Comments | |
|
||
|
This post is from Domestic Chip Exchange
| ||
|
||
|
5
Published on 2022-10-14 17:51
Only look at the author
This post is from Domestic Chip Exchange
Comments | ||
|
||
|
6
Published on 2022-10-14 18:06
Only look at the author
This post is from Domestic Chip Exchange
Comments | ||
|
||
|
This post is from Domestic Chip Exchange
| ||
|
||
|
This post is from Domestic Chip Exchange
| ||
|
||
|
论坛测评队员
EEWorld Datasheet Technical Support
This post was last edited by music_586 on 2019-4-4 19:06 This content was originally created by EEWORLD forum user musi ...
Based on IPM05F 3Sh board: FOC motor control 400V sensorless and sensory encoder all design data summary (schematic diag ...
I have used or seen quite a lot of domestic chips. I won't mention Shenwei and Loongson. Basically, anyone who works wit ...
I think the M33 core and 16-bit ADC are pretty good.
I received the display module from EE last week and finally used it tonight. HPM6750 acts as a host to read the UVC came ...
When using socket communication, whether it is internal communication within the local machine or communication betwee ...
# NPU conversion and deployment of YOLO V5 model This article takes the YOLO v5s model as an example to detail the conve ...
The technique of improving efficiency when using less output current is called light load mode. It is also called burst ...
Serial port printf output The serial port 1 of Nucleo-U5A5 is connected to the serial port of STlinkV3 to output the pri ...
What are the functions of the five pins INT, MOSI, MISO, SCK, and NCS of the MPU attitude sensor? Is the waveform correc ...
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190