EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / kbhit

kbhit

|

Microcontroller › PIC › kbhit

  • This topic has 0 replies, 1 voice, and was last updated 12 years, 3 months ago by Luis Morquecho.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • August 17, 2013 at 3:48 pm #2592
    Luis Morquecho
    Participant

    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

RSS Recent Posts

  • Need to solder a really delicate ribbon for an electric reel need advice November 19, 2025
  • Need Help Troubleshooting a PCB Assembly Issue November 19, 2025
  • Solar tracker simulation November 19, 2025
  • need help in photodetection TIA circuit November 19, 2025
  • Help please! BLDC driver circuit using the IR2136s and the STP80NF06 MOSFETS November 18, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise