Search found 15 matches
- Thu Apr 10, 2025 6:31 pm
- Forum: General discussion
- Topic: Pulse Counter
- Replies: 9
- Views: 629
Re: Pulse Counter
So I want to do this on a hardware timer, but there is little information on Arduino
- Thu Apr 10, 2025 10:30 am
- Forum: General discussion
- Topic: Pulse Counter
- Replies: 9
- Views: 629
Re: Pulse Counter
You didn't understand me.
We need to count the pulses:
1. Either interrupt every 10th pulse and get the time during which the pulses arrived. But if the pulse didn't arrive, then we won't know the number
2. Or interrupt every 1 second and get the number of pulses. But then we don't know whether the ...
We need to count the pulses:
1. Either interrupt every 10th pulse and get the time during which the pulses arrived. But if the pulse didn't arrive, then we won't know the number
2. Or interrupt every 1 second and get the number of pulses. But then we don't know whether the ...
- Fri Apr 04, 2025 10:58 am
- Forum: General discussion
- Topic: Pulse Counter
- Replies: 9
- Views: 629
Re: Pulse Counter
The task is, pulses come from the sensor, pulses can come with different frequencies. The fastest are 1413 Hz, the slowest are 0.1 Hz. Although this is not the limit.
It is necessary to know the presence of a pulse, as well as the pulse time. In extreme cases, the total time in which X pulses ...
It is necessary to know the presence of a pulse, as well as the pulse time. In extreme cases, the total time in which X pulses ...
- Sun Mar 30, 2025 7:48 pm
- Forum: General discussion
- Topic: Pulse Counter
- Replies: 9
- Views: 629
Pulse Counter
Tell me how to count pulses in hardware so that when the value X is reached, an event/interrupt is executed
- Sun Oct 13, 2024 3:52 pm
- Forum: General discussion
- Topic: Calibration of stm32f103 clock
- Replies: 8
- Views: 4416
Re: Calibration of stm32f103 clock
That's the thing, the code calibrates the pointer upwards, here are the lines that control the quartz frequency and the additional coefficient to calculate the time faster.
And the question is exactly how to combine the simplicity of the RTC library control and the given code. As far as I ...
And the question is exactly how to combine the simplicity of the RTC library control and the given code. As far as I ...
- Sat Oct 12, 2024 7:02 am
- Forum: General discussion
- Topic: Calibration of stm32f103 clock
- Replies: 8
- Views: 4416
Re: Calibration of stm32f103 clock
well, there is an appnote for it
https://www.st.com/resource/en/application_note/an2604-stm32f101xx-and-stm32f103xx-rtc-calibration-stmicroelectronics.pdf
And of course cross reference the ref manual rm0008.
It is based on this guide that I provided the code in the first post, the question is ...
- Mon Oct 07, 2024 7:46 pm
- Forum: General discussion
- Topic: Calibration of stm32f103 clock
- Replies: 8
- Views: 4416
Re: Calibration of stm32f103 clock
And the code I gave above won't work?
Can you show an example of how you propose to do it?
Also, clarify the order of using the library and calibration. That is, at what point, which registers can be edited. Can I initialize the clock, and then do the calibration or should this be done immediately ...
Can you show an example of how you propose to do it?
Also, clarify the order of using the library and calibration. That is, at what point, which registers can be edited. Can I initialize the clock, and then do the calibration or should this be done immediately ...
- Sun Oct 06, 2024 6:59 am
- Forum: General discussion
- Topic: Calibration of stm32f103 clock
- Replies: 8
- Views: 4416
Calibration of stm32f103 clock
Tell me how to calibrate the clock in stm32f103.
Now I work like this:
#include <STM32RTC.h>
STM32RTC& rtc = STM32RTC::getInstance();
setup() {
rtc.setClockSource(STM32RTC::LSE_CLOCK);
rtc.begin(); // initialize RTC 24H format
}
Calibration and initialization seem to be done like this:
if ((RCC ...
Now I work like this:
#include <STM32RTC.h>
STM32RTC& rtc = STM32RTC::getInstance();
setup() {
rtc.setClockSource(STM32RTC::LSE_CLOCK);
rtc.begin(); // initialize RTC 24H format
}
Calibration and initialization seem to be done like this:
if ((RCC ...
- Wed May 01, 2024 9:56 am
- Forum: USB bootloader
- Topic: Flash and Serial usb f103
- Replies: 7
- Views: 24930
Re: Flash and Serial usb f103
1. Flash https://github.com/rogerclarkmelbourne/STM32duino-bootloader/blob/master/binaries/generic_boot20_pc13.bin.
I flashed using ST-Link,
BOOT0 -0,
BOOT1 -0
2. Then flash it through Arduino, only using Maple DFU Bootloader 2.0 .
If after step 1 you flash it using ST-Link, then Maple DFU ...
I flashed using ST-Link,
BOOT0 -0,
BOOT1 -0
2. Then flash it through Arduino, only using Maple DFU Bootloader 2.0 .
If after step 1 you flash it using ST-Link, then Maple DFU ...
- Wed May 01, 2024 7:24 am
- Forum: USB bootloader
- Topic: Flash and Serial usb f103
- Replies: 7
- Views: 24930
Re: Flash and Serial usb f103
Yes, if you specify the Arduino settings correctly and upload the Roger bootloader, it works. But not on all boards. At some point, Serial is there, but does not want to be attached, the bootloader breaks