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

Status
Not open for further replies.

sacban

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…