- This topic has 0 replies, 1 voice, and was last updated 11 years, 8 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › kbhit
Problems with kbhit in CCS when you try to read one character in serial port
kbhit() does not work OK if you have any delay_ms
I have serial port configurated correctely both in my PC and in my PIC.
If you have a loop like this
while(1)
{
any_function();
delay_ms(5);
if kbhit() get(variable);
}
If inside “any_function()” there are any “delay_ms()” or in the loop there are any “delay_ms()” It does not work.
Are there somebody who have solved this?????