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 / How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51)

How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51)

|

Microcontroller › 8051 › How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51)

  • This topic has 7 replies, 6 voices, and was last updated 12 years, 9 months ago by Lui Yat Ming.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • March 4, 2012 at 1:40 am #1611
    vids
    Participant

    hey i wanted a program for How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) asap plz…(not C program)

    March 4, 2012 at 10:59 am #7236
    phanindra nath
    Participant

    if not C, den which language you want? assembly?

    March 4, 2012 at 1:02 pm #7239
    vids
    Participant

    yeah i wnt it in assembly lang…. thnkssmiley

    March 4, 2012 at 1:16 pm #7240
    Mehtab Ali
    Participant

    this program sends ‘ear’ serially 9600 baud,8bit data,1 stop bit.

     

                             mov tmod,#20h

                             mov th1,#-3

                             mov scon,#50h

                            setb tr1

    h:                      mov a,#”e”

                             acall t

                           mov a,#”a”

                           acall t

                          mov a,#”r”

                         acall t

                         sjmp h

    t:                     mov sbuf,a

    h1:                   jnb t1,h1

                             clr t1

                             ret

    March 5, 2012 at 2:59 pm #7252
    vids
    Participant

    @Mehtab Ali: hey thnks…vl try out dis 1smiley

    March 31, 2012 at 9:26 am #7365
    anurudh tiwari
    Participant

    the program for serial communication is given is only the tranfer data from microcontroller to the pc…..for the receiver the program is given elow

     

     

    MOV TMOD,#20H 

    MOV TH1,#-3 —9600 BAUD

    MOV SCON ,#50H

    SETBTR1

    CLR RI

    WAIT: JNB RI, WAIT

    MOV A, SBUF

    MOV P0,A  — TO SEND THIS IN PORT 0


     OR U CAN SORE ANY REGISTER OR MEMORY LOCATION…

    END

    May 7, 2012 at 5:18 pm #7607
    santhosh
    Participant

    hi frinds

    i hope somebody will help me to create my dream prject with microcontroler

     (water level indicator)

    me now using analoge controls relays and transistors

    discreption of my project

    when water in tank is botom level motor will start

    when water in tank on top level motor will stop

    when motor started from bottom if inttrupted water flow motor will be stop

    also low voltage or high voltage pevent to start motor

     

    this my project now working well but pcb is big and very

    hard work to create a pcb i think convert this project with microcontroler very easy to made

    please help somebody idon’t know codes and how to transer

    codes to micro controler which progamer need to use

    waiting or repply

    with best regards

     

    August 1, 2012 at 2:49 am #8378
    Lui Yat Ming
    Participant

    Hi, I use Hyperterminal without c code in paper ‘ 

    How to interface computer’s Serial Port (RS232) with 8051 microcontroller (AT89C51) ‘. I do not know why was that?

    Please help!

    Also I do not know the sentance in c code such as P1=value;&

    P2=P1-32; It is for what ?

    Thanks for an explanation.

     

    For more explanation, the Hyperterminal also can type the ‘char’ and display exactly without c code in paper.  
  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • how to work on pcbs that are thick May 18, 2025
  • Actin group needed for effective PCB software tutorials May 18, 2025
  • Kawai KDP 80 Electronic Piano Dead May 18, 2025
  • Doing consultancy work and the Tax situation? May 18, 2025
  • How to repair this plug in connector where wires came loose May 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