kbhit | Microcontroller › PIC › kbhit This topic has 0 replies, 1 voice, and was last updated 10 years, 8 months ago by Luis Morquecho. Viewing 1 post (of 1 total) Author Posts August 17, 2013 at 3:48 pm #2592 Luis MorquechoParticipant 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????? Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In