Continue to Site

Welcome to EDAboard.com

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.

What is equivalent if(kbhit()) CCS to MikroC

Status
Not open for further replies.

sacban

Junior Member level 3
Junior Member level 3
Joined
Aug 20, 2015
Messages
29
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
412
Hi There,
I want to know what is equivalent for if(kbhit()) in CCS to MikroC, what funtion for of kbhit in CCS to MikroC.


Sacban.
 

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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top