Filippo Damiani

HCS08: Hot to set TPM in Input Capture on falling edge only

Discussion created by Filippo Damiani on Jun 19, 2008
Latest reply on Jun 24, 2008 by Filippo Damiani
Hi all,
I'm tryng to set channel 1 of TPM2 in input capture mode and to set the interrupt on falling edge only.
I set the control and status register in this way:

TPM2C1SC = 0x48;

My problem is that the interrupt flag is set on both edge and not only on falling edge...

Someone can help me???

regards,
filippo

Outcomes