I’m trying to see why the Keypad 3x4 driver ( http://www.tinyclr.com/forum/topic?id=7877 ) is performing well only on socket 3 of the Cerbuino board. On sockets 1 & 2, there’s no keypad event generated
What I’ve done to check is to connect a Phidget interface kit board, which permits me to see and act on various I/Os.
So, I’ve connected the 4 “outputs” and the 3 “inputs” needed by the keypad on the corresponding places on the Phidget board and ran the following program :
void ProgramStarted()
{
Cpu.Pin P3 = GT.Socket.GetSocket(1, true, null, null).CpuPins[3];
Cpu.Pin P4 = GT.Socket.GetSocket(1, true, null, null).CpuPins[4];
Cpu.Pin P5 = GT.Socket.GetSocket(1, true, null, null).CpuPins[5];
Cpu.Pin P6 = GT.Socket.GetSocket(1, true, null, null).CpuPins[6];
OutputPort Port1 = new OutputPort(P3, false);
OutputPort Port2 = new OutputPort(P4, false);
OutputPort Port3 = new OutputPort(P5, false);
OutputPort Port4 = new OutputPort(P6, false);
while (true)
{
Thread.Sleep(500);
Port1.Write(true);
Port2.Write(true);
Port3.Write(true);
Port4.Write(true);
Thread.Sleep(500);
Port1.Write(false);
Port2.Write(false);
Port3.Write(false);
Port4.Write(false);
}
Goal was to see if all inputs/outputs were reacting as expected. The code snippet doesn’t show inputs because the test was ok and so there’s nothing more to say about them.
Which is not the case for output ports… I’ve run this programm 3 times, each time changing the socket number, from 1 to 3. Here are the results :
Socket 1 : type PSUY
[ul]pins 3 & 4 : blink immediately
pins 5 & 6 : low then stay high[/ul]
Socket 2 : type AIKUY
[ul]pins 3 & 4 : blink immediately
pins 5 & 6 : low then stay high[/ul]
Socket 3 : type AOPY
[ul]pins 3 & 4 : blink immediately
pin 5 : low then stays high
pin 6 : low, then stays high for some time, then blinks as expected (but doesn’t seem to be as accurate timing as pin 3 & 4, though)[/ul]
See this video for socket 2 : http://www.lsp-fr.com/FEZ/cerbuino.mpg
As more or less expected, sockets 1 & 2 do seem to behave differently than socket 3. But it’s not enough to conclude, since I was expecting all four pins to blink, even on socket 3 !
At the beginning, I was thinking that maybe the “U” type may cause problem because both socket 1 & 2 have it, but even if it’s the case, it doesn’t explain why all the pins are not blinking on socket 3…
Right now, I still don’t know what to think about this because what I’ve seen here is not what I was expecting. At least on socket 3
The day will be long, today…
[em]EDIT[/em]
Here’s the same program running on socket 7 of the Hydra : http://www.lsp-fr.com/FEZ/hydra.mpg
As you can see, it’s fine, as all pins are blinking.