Key Board interface

Discussion in 'Embedded Systems and Microcontrollers' started by Joshua Gobin, Jun 30, 2011.

  1. Joshua Gobin

    Thread Starter New Member

    Mar 16, 2011
    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: Jun 30, 2011
  2. bertus


    Apr 5, 2008