Shop OBEX P1 Docs P2 Docs Learn Events
Can Prop send PS2 keyboard data? — Parallax Forums

Can Prop send PS2 keyboard data?

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2007-04-08 22:29 in Propeller 1
I'm curious if the Prop can output PS2 keyboard data to say my PC to create my own keyboard interfaces?

Oldbit

Comments

  • cgraceycgracey Posts: 14,133
    edited 2007-04-02 05:02
    It's possible, but there's no current object I know of that will do this. Someone needs to write one, because you are the Nth person to ask about this.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Chip Gracey
    Parallax, Inc.
  • TransistorToasterTransistorToaster Posts: 149
    edited 2007-04-08 22:29
    You need two lines: clock and data. At rest, both clock and data are high. (Double check this, I am 80% sure)

    In a nutshell, the format is
    1 start bit
    8 data bits LSB first
    1 parity bit
    1 stop bit

    The PC samples on falling clock edge, with clock running aorund 10kHz.
    When a key is pressed, the scan code is sent. At the release, $f0 + scan code is sent. So for your case its: scancode , f0, scancode. Special characters take up to bytes. You can google out the AT PS/2 scancode table. For XT, there are some differences.
Sign In or Register to comment.