I have a problem with my Panda II board: when capturing a pin I get for a signal regular changes of state (~ 4 per 1.5 secs). The timing remains constant within ±1 ms.
Now I am trying to do the same, using the same pin with an interrupt handler.
Barrier = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di3, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth); Barrier.OnInterrupt += new NativeEventHandler(Barrier_Capture);
Using the interrupt I get roughly every 8 ms an interrupt with no state change of the line. Why?
Tested this on Di0 and Di3. Do I need to use another pin for it? 3-4 changes per sec should not be a problem, I guess. I just want to have a precise time code of the change time.