Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
If I remember correctly, the kbhit() function looks to see if there is a character in the UART that is connected to the keyboard.
If that is the case, then the easiest solution is to know (from your design) which UART is connected to the keyboard and to look at the status registers to see if there is a value available. Without knowing which PIC MCU us are using, it is not possible to provide any further clues as to how this could be done as there are too many variations across the various families.
Susan
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.