HI,
I use input capture function of S12ZVL32 to detect a falling edge,then I read the Port data register in the interrupt routine.
I find that it is low level;
I use input capture function of S12ZVL32 to detect a rising edge,then I read the Port data register in the interrupt routine.
I find that it is high level;
Problem:when I use the input capture function of S12ZVL32 to detect a edge,then can I judge the edge type by reading the pin level in the ISR? (Of course,hardware fileter is done.)
In the RMV: a digital fileter on each pin prevents short pulses from generating an interrupt. A valid edge on an input is detected if 4 consecutive samples of a passive level are followed by 4 consecutive samples of an active level.
Thanks!