AnsweredAssumed Answered

TPM channel mode: switching from rising edge capture to falling edge capture

Question asked by stefano manca on Jan 24, 2014
Latest reply on Feb 13, 2014 by stefano manca

Hi, I'm trying to measure a pulse so I config TPM0 to generate edge interrupts. When I switch from rising to falling doing TPM0_C0SC = 0x00U; and then TPM0_C0SC = 0x48U; I see NVIC_ISPR=0X00020000, that means call ISR as soon as I exit from it. This behavior look like a glitch, but I don't know how to switch from rising to falling in other way.

 

Any idea?

 

Thank you.

Outcomes