2020-07-06 07:55 AM
2020-07-06 08:01 AM
I'm using STM32F105.
I'm not so expert on timers.
On PA0-WKUP pin a signal of 0-3.3V is demodulated from ASK, on bi-phase encoding. I need to capture the signal on TIM2 (or whatever you consider best option).
By now I configure it like a counter. So each time there is a rising edge, is counting and interruption is made when is getting the minimum number 1: So I'm loosing always one rising edge on each interruption.
How should I configure the timer.
Please any comment will help.
Thanks
Regard
Xavi Marcet
2020-07-06 09:42 AM
use an implementation with as much hw assist to reduce interrupts latency abd frequency, for example timer input capture, or pwm capture. keep the timer free running. you can even dump captures by dma if they fire too frequently