Shop OBEX P1 Docs P2 Docs Learn Events
Anyone can give me some codes help in using a USB keyboard? — Parallax Forums

Anyone can give me some codes help in using a USB keyboard?

daniel dingdaniel ding Posts: 52
edited 2011-09-27 06:30 in Propeller 1
Hi everyone, I want to use a USB keyboard on Propeller chip board, but I don't know any codes and circuit about it. Anyone is kindeness enough to give me some help.
Thanks !

Comments

  • RaymanRayman Posts: 14,871
    edited 2011-09-27 05:46
    If you look in OBEX, you'll find some USB code, but you'll need a 6 MHz crystal. I haven't tried it, but it looks good.

    Most people use a PS/2 keyboard, because it's a lot easier to interface with. A lot of USB keyboards come with a little PS/2 adapter...
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-09-27 06:30
    As Ray said, most usb keyboards will still work in ps2 mode. For this there is keyboard code in obex. Two serial resistors of 150R with 10K pullups works. You can see the circuit for the parallax protoboard. A real usb driver takes a lot of processing power so I recommend ps2 mode.
Sign In or Register to comment.