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 / serial data transmission to pc with 89s51

serial data transmission to pc with 89s51

|

Microcontroller › 8051 › serial data transmission to pc with 89s51

  • This topic has 3 replies, 4 voices, and was last updated 11 years, 4 months ago by Ashutosh Bhatt.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 26, 2014 at 11:19 am #2825
    usman ali butt
    Participant
    Can i use 89s51 for serial data transmission to pc using hyperterminal? I am unable to do so…. Receiving garbage characters on the hyperterminal… Can any one help me? All the sites having content according to this project are using 89c51 microcontroller….. Does 89s51 is capable of generating baud rate’s…. 
     
    My project code is below…
     
    #include<reg51.h>
     
    void main()
    {
    char A[]=”usman ali butt”;
    int i=0;
     
    TMOD=0x20; // Timer1 Mode2 8 bit auto reload
    TH1=0xFD; // 9600 bps
    SCON=0x50; // 8 Data bit, 1 start bit, 1 stop bit 
    TR1=1; // Timer1 ON
    while(1)
    {
    while(A!=’’){
    SBUF=A;
    while(TI==0); // It automatically poles up to 1 when character is transmitted
    TI=0;
    i++;
                     }
    i=0;
    }
     
    }
    January 27, 2014 at 5:26 am #10895
    AJISH ALFRED
    Participant

    Hi Usman,

    I hope this is what you were looking for

    http://www.engineersgarage.com/microcontroller/8051projects/interface-serialport-RS232-AT89C51-circuit

    February 25, 2014 at 5:36 am #11102
    SHAH DISHANT H.
    Participant

    Hi,

     

    Test the hyperterminal settings also.

     

    If you are sending ASCII values then configure hyperterminal in ASCII mode.

     

    All the best.

    February 25, 2014 at 5:37 pm #11111
    Ashutosh Bhatt
    Participant

    just check for your crystal frequency

    it should bot be 12 MHz

    it must be 11.059 MHz.

    only this crystal value will give you exact 9600 baud rate

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

RSS Recent Posts

  • Pic18f25q10 osccon1 settings swordfish basic July 18, 2025
  • Sump pit water alarm - Kicad 9 July 18, 2025
  • Anyone jumped from Easyeda std to Easyeda pro? July 17, 2025
  • turbo jet fan - feedback appreciated. July 17, 2025
  • More fun with ws2812 this time XC8 and CLC July 17, 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