Peter House

908GP32 - Timer Input Pin Access During Interrupt

Discussion created by Peter House on Sep 12, 2007
Latest reply on Sep 16, 2007 by Peter House

I am using the Timer Input Capture pin to generate an interrupt on BOTH rising and falling edges.  How do you determine which edge is causing the interrupt ???

The following code ALWAYS branches to JumpLabel:

    BRSET   6, PTD, JumpLabel   ; Port D bit 6 is Timer 2 CH 0 Input

I am really surprised the input is not accessible when configured for use as a timer input.

I have a workaround where I change between rising and falling edge INSIDE the interrupt handler but this code seems more complicated.


Peter House

Alban Edit: Please always include FSL Part Number in Message Subject line.

Message Edited by Alban on 2007-09-12 02:21 PM