View previous topic :: View next topic |
Author |
Message |
pic_eater
Joined: 01 Mar 2006 Posts: 1
|
PS2 or USB key board interface with PIC16F877A |
Posted: Mon Aug 13, 2007 9:34 am |
|
|
Hi every body
how can I get characters from a PS2 or USB keyboard with a PIC16F877A
is it possible?
I try to make a remote control unit with many commands so I would like to use a keyboard;
when I press a key the character will be send through the RS232
with any baud rate
anybody please help me if u know about this.
thanks
Sera _________________ Sera |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
Ttelmah Guest
|
|
Posted: Mon Aug 13, 2007 2:51 pm |
|
|
PS/2, yes. USB almost impossible.
Neither is easy. There is an example in a Microchip application note, of how to make a PIC itself behave as if _it_ is a PS/2 keyboard, and this would need to be 'reversed' . How complex this will be, will depend on whether you want to actually 'decode' the key (return it as ASCII), or just return the key number, and operation (key number and up/down).
Much easier to just scan a smaller keypad, as is normally used on a remote control. Example of such scanning, are in the examples supplied with the compiler.
Best Wishes |
|
|
|