Report
1 year, 7 months ago.

nucleo f429zi TIM2 configuration

Hi to all the community. I've some problems to configure the hardware timer TIM2 to manage a signal. In particular i'd like to reset the timer at each rise edge of the signal and than generate an interrupt only if its value is grater than 350us. I think that I need the compare mode but I've no example to start with.

I noted that 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.

The signal is like that one: /media/uploads/capriele/img.jpg

Thanks for any help!

Comment on this question
Be the first to answer this question.

You need to log in to post a question