Forgive me if this is a dumb question - I’m pretty new to this newfangled hardware trickery.
I’m trying to get a PS/2 keyboard working with my Panda II. Originally I was using interrupts in C# but it appears they’re too slow, so I’m now developing an RLP module for it.
PS/2 uses a “packet” size of 11 bits - so I should see 11 interrupts with the following whenever I press down on a key (and then multiples of 11 on releasing the key etc):
RLP_InterruptInputPinArgs ia; ia.GlitchFilterEnable = RLP_FALSE; ia.IntEdge = RLP_GPIO_INT_EDGE_LOW; ia.ResistorState = RLP_GPIO_RESISTOR_PULLUP; RLPext->GPIO.EnableInterruptInputMode(clock_pin, &ia, clock_isr, 0);
Weird thing is, I seem to get exactly 6 interrupts per packet. I’ve tried with two keyboards and it does exactly the same thing - 6 interrupts per packet. (I made the ISR simply increase a counter and added a function to retrieve the counter value.)
I’m using this site for reference: http://www.computer-engineering.org/ps2protocol/
If anyone has any ideas, I’d be grateful!
Thanks for reading.