Hello,
We need make a project for continuous and simultaneus read from 10 ports.
We write something like...
static InterruptPort PulsosEje = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di30, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeBoth);
static InterruptPort PulsosCal = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di32, false, Port.ResistorMode.PullDown, Port.InterruptMode.InterruptEdgeBoth);
// Fotocelulas vías
static InterruptPort FotoVia1 = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di2, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
static InterruptPort FotoVia2 = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di3, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
static InterruptPort FotoVia3 = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di4, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
static InterruptPort FotoVia4 = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di5, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
// Fotocelulas Cross
static InterruptPort FotoParadaMesa = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di6, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
static InterruptPort FotoCross1 = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di7, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
static InterruptPort FotoCross2 = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di11, true, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeBoth);
But, we can`t read simultaneusly more than 3 o 4 signals.
have you some suggestions??
thanks in advance.