Key Board interface

Thread Starter

Joshua Gobin

Joined Mar 16, 2011
3
Well i need sum help guys.. I am attempting to interface a ps2 key board to a PIC16F877 microcontroller.. I am using the spi module in slave mode .. it recives the data very well but every time i press the same button on the key board the data that cums in is shifted by one bit than the previous... for example if i had recieved 01100001 1st for the space bar then the nex time i press it il get 11000010.. i realy dnt understand y this is happenin.. any advise wod be highly appreciated.. Email at <SNIP>
 
Last edited by a moderator:
Top