cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429ZI TIM2 timer compare + slave mode (reset)

Alberto Petrucci
Associate
Posted on December 03, 2017 at 11:17

Hi to all the community.

I've some problems to configure the hardware timer TIM2 to manage a signal.

The signal is like that one:

0690X00000604BwQAI.jpg

In particular i'd like to reset the timer at each rise edge of the signal and than generate an interrupt (that will enable another interrupt that manage the signal data) only if its value is equal or grater than 2ms.

I think that I need the compare mode plus the slave mode (reset mode) but I've no example to start with.

I noted that at the beginning of the signal there is a 2ms enable than start the real datas.

In particular if the signal stay up for at least 300us it rapresents a logical 0;

instead if it remains high for at least 600us it rapresents a logical 1.

Thanks for any help!

#stm32-f4 #timer #nucleo-144-stm32f429zi #timer-interrupts
0 REPLIES 0