Eren Aydemir

TPM Capture Mode

Discussion created by Eren Aydemir on Jul 31, 2012
Latest reply on Aug 1, 2012 by bigmac



I am working on a project that uses TPM Capture mode. My code should increase a counter variable when rising edge came. My problem is I couldnt set capture mode. I have working TPM timer interrupt but it is not capture rising edges. I set TPM1C1SC register for capture mode but it didnt work. What should my TPM interrupt consist and which pins should I use for this purpose? Any advice appreciated.