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 / 8051 Serial Rx Seems Stuck?

8051 Serial Rx Seems Stuck?

|

Microcontroller › 8051 › 8051 Serial Rx Seems Stuck?

  • This topic has 1 reply, 2 voices, and was last updated 7 years, 11 months ago by Hari Prasaath K.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 12, 2017 at 6:28 pm #4705
    sneha samrit
    Participant

    Hello, 

    I've been tasked with trying to debug someone's 8051 mcu program. The 8051 interfaces with a max232 serial chip to output and receive values from a keyboard and display messages to a computer monitor. The main problem arises when the program will stop responding to keyboard inputs and the same prompt for user input repeats indefinitely after entering any keyboard value. When I modified the program to output what character it thought it was receiving, I noticed strange results. When the program bugs out, it seems to output the same character even though other keys are being pressed. I'm new to the forums and I would like to ask what more information would help paint a clearer picture of my issue? I'm not so sure where the problem may lie. I've thought that it might be a max232 chip issue, or a buffer that gets "stuck". Could it be a stack overflow issue? I added a counter that increments at the beginning of of each function and decrements at the end of a function to track exactly how deep I am calling functions. It never goes above 3, yet the problem persists. Thanks in advance for any replies.

    December 22, 2017 at 7:16 am #14685
    Hari Prasaath K
    Participant

    Hi,

    Whether you have interfaced keyboard to the microcontroller using ps2 port or whether you are performing the normal serial interfacing operation. 

    Check the below link for further info

    https://www.engineersgarage.com/microcontroller/8051projects/interface-ADC0804-serial-port-AT89C51-circuit 

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • mechanism to shutdown feeding when sensor temperature rises December 13, 2025
  • Oshonsoft MSSP simulation question December 13, 2025
  • Droplet1 December 13, 2025
  • What is involved to convert a small town to fiber optic? December 13, 2025
  • Measuring controller current output with a meter December 13, 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