cancel
Showing results for 
Search instead for 
Did you mean: 

timer How to detect a signal I useSTM32CubeMX 6.6.1 and STM32CubeIDE 1.8.0 I'm using a microcontroller.stm32f103c6 I need a way to capture the signal. to calculate the speed of rotation Can someone give me some advice, thanks.

somkid
Associate III
 
4 REPLIES 4
AScha.3
Chief

timer can capture full hi/lo pulse , just see my IR-receiver input:

0693W00000WIqQPQA1.pngi choose the timer5 clk+ prescaler, to get 1us tics; so on timer5 INT i get us count for hi and lo time of every incoming pulse.

perfect... right?

If you feel a post has answered your question, please click "Accept as Solution".

What microcode do you use?

https://en.wikipedia.org/wiki/Microcode

Totally unrelated...

The advice was given. If you do not understand how timers work, open the reference manual and start learning!

I can't find what you told me, please guide me.

>>open the reference manual and start learning!<<