HELLO
I am trying to read data from a PS2 device. The PS2 device has a clock and data line being interfaced with the PIC. The PS2 device always generates the clock ( high) . The clock line have to controlled by the PIC i.e clock have to be brought high and low for a period of 50 microseconds . The PS2 port has serial transmission protocol with one start bit , 8 data bits and one stop bits. SO I have to read the 8 data bits at the falling edge of each clock pulse.
My question is how to use the interrupt to read data at the falling edge once the timer has overflowed. Can anyone help in this either by giving me a sample code or guiding me.
thanks.