CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PS2 or USB key board interface with PIC16F877A

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
pic_eater



Joined: 01 Mar 2006
Posts: 1

View user's profile Send private message Send e-mail Yahoo Messenger

PS2 or USB key board interface with PIC16F877A
PostPosted: Mon Aug 13, 2007 9:34 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Aug 13, 2007 2:49 pm     Reply with quote

See this post in the CCS code library:
http://www.ccsinfo.com/forum/viewtopic.php?t=27544
Ttelmah
Guest







PostPosted: Mon Aug 13, 2007 2:51 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group