+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Banned
    Points: 598, Level: 5

    Join Date
    Sep 2013
    Location
    Ahmedabad
    Posts
    104
    Helped
    0 / 0
    Points
    598
    Level
    5

    want to communicate to RS232 with at89c51

    I want to communicate at89c51 to computer so i am using rs232.
    As i am new to this communication please help me that what i have to do for communication and can anyone give simple example program to just send simple message or data from controller to pc.
    Also i need one information that if i have to program each for transmit and receive than how i have to dump it into controller. i mean in single hex file or how?

    i am using keil ide.
    i have joint to male and female's only 3 pin(2nd, 3rd and 5th) of 9 pin RS232 in wire. is that enough connection?


    How about MODE that i have to select in programming. i coundn't undertand that what happen with mode selection actually.
    i.e. MODE 0, 1, 2, 3
    Last edited by jay_3189; 25th October 2013 at 12:07.

    •   Alt25th October 2013, 10:22

      advertising

        
       

  2. #2
    Full Member level 2
    Points: 1,179, Level: 7

    Join Date
    Sep 2013
    Location
    Chennai
    Posts
    122
    Helped
    2 / 2
    Points
    1,179
    Level
    7

    Re: want to communicate to RS232 with at89c51

    Quote Originally Posted by jay_3189 View Post
    I want to communicate at89c51 to computer so i am using rs232.
    As i am new to this communication please help me that what i have to do for communication and can anyone give simple example program to just send simple message or data from controller to pc.
    Also i need one information that if i have to program each for transmit and receive than how i have to dump it into controller. i mean in single hex file or how?

    i am using keil ide.
    i have joint to male and female's only 3 pin(2nd, 3rd and 5th) of 9 pin RS232 in wire. is that enough connection?

    Had u gotten a clear idea about UART Protocol?how to configure the protocol?


    1 members found this post helpful.

    •   Alt25th October 2013, 10:39

      advertising

        
       

  3. #3
    Banned
    Points: 23,048, Level: 36

    Join Date
    Dec 2012
    Location
    Bangalore, India
    Posts
    4,294
    Helped
    826 / 826
    Points
    23,048
    Level
    36

    Re: want to communicate to RS232 with at89c51

    Yes. 3 pins is enough. Take code from "8051 Microcontroller and Embedded Systems: Using Assembly and C bu Muhammed Ali Mazidi"

    Codes can be downloaded from mazidi's website.

    http://www.atmel.in/tools/CODEEXAMPLESFOR8051UART.aspx

    http://www.pantechsolutions.net/micr...th-8051-primer

    http://saeedsolutions.blogspot.in/20...t-of-8051.html


    1 members found this post helpful.

--[[ ]]--