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 / Replies / Thank you Sir for replying. I

Thank you Sir for replying. I

|

Microcontroller › 8051 › Problem in serial communication with 89S52 › Thank you Sir for replying. I

November 8, 2013 at 7:14 am #10586
Aniket Kulkarni
Participant

Thank you Sir for replying.

 

I did. And after that tried to run the most basic code to serially transmit the character ‘A’ continuously.  To my surprise what i got is a heart and one more character. On keil simulation, it is perfectly transmitting ‘A’. I have checked the serial to USB converter that I am using by shorting its 2 & 3 pin. It transmits each and every character nicely. As far as the burner is concerned, my other simple code such as blinking LED and so on are working fine. I displayed hello world (basic one, just to check LCD) and worked out well. So I am  quite puzzled now where the problem is. Changed my MAX232 as well thinking it to be the culprit. 
 
By the way, one more question, a strange thing I noticed with another program of getting an ECHO, once a character was received, the SCON value became 0x55(0101 0101) in place of 0x51 (as the RI sets, 0101 0001). Even after clearing RI, the value becomes 0x54 (0101 0100<–cleared RI) thus making all further communication meaning less and it doesn’t understand 8 bit data anymore because of TB8 or RB8 being set. though the problem can be solved by giving SCON 0x50 again and again, but that’s certainly not the solution.
 
please help.
 
 
PS:- It receives ‘c’, ‘d’ and ‘g’ nicely8-O

RSS Recent Posts

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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