cancel
Showing results for 
Search instead for 
Did you mean: 

How can I capture external signal? I want an interruption function call on each risign signal edge.

XMarc.1
Associate
 
2 REPLIES 2
XMarc.1
Associate

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

S.Ma
Principal

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