Interfacing a microcontroller with a PC using serial port

Discussion in 'Embedded Systems and Microcontrollers' started by hammy, Mar 8, 2007.

  1. hammy

    hammy Thread Starter New Member

    Joined:
    Mar 8, 2007
    Messages:
    2
    Hi friends,
    I'm doing a project on data acquisition where i need to interface an ADC with a microcontroller and then this microcontroller with a PC where in the values are to be displayed.
    The first part is finished but i have very little idea about interfacing 8051, which i'm using with the PC. I know C language
    (alas! never did microcontroller programming) and have 10 days time in my hand to learn and implement. I need to develop the code where in the data obtained is displayed on the PC in real time. I'm planning to go for RS232 communication using MAX 232 IC.I'm using the 89c51 IC.
    I'd be grateful to anyone who can help me with this.
  2. beenthere

    beenthere Retired Moderator

    Joined:
    Apr 20, 2004
    Messages:
    15,815
    Location:
    Missouri, USA (GMT -6)
    1. Tell the ADC to convert.
    2. Get the number from the ADC.
    3. (optional) Convert or scale the number to engineering units.
    4. Send the data to the MAX233, which should then be set up to transmit to the PC.

    Look for example porgrams the work with ADC's and that send serial data.
  3. jasonhaykin

    jasonhaykin Member

    Joined:
    Mar 8, 2007
    Messages:
    23
  4. hammy

    hammy Thread Starter New Member

    Joined:
    Mar 8, 2007
    Messages:
    2
    Thank u friends for the replies ...as i have said the interfacing of the ADC with the microcontroller is finished....
    The problem is interfacing the microcontroller to the PC and display the data transmitted from the 89C51 (which i'm using) on the monitor...
  5. beenthere

    beenthere Retired Moderator

    Joined:
    Apr 20, 2004
    Messages:
    15,815
    Location:
    Missouri, USA (GMT -6)
    You may need to investigate serial I/F chips, like the MAX232. There are many available.
  6. Arm_n_Legs

    Arm_n_Legs Active Member

    Joined:
    Mar 7, 2007
    Messages:
    183
    Location:
    Singapore
    Interfacing microcontroller to the PC? Thought you have mentioned using RS232 communincation. Just hook up the 8051 Tx pin to the Tin of the MAX232 and the Rx pin to the Rin of the MAX232. Connect these to pin (2) and (3) of the PC D-9 connector.
  7. Pete77

    Pete77 New Member

    Joined:
    Sep 15, 2011
    Messages:
    1
  8. nicsnicolan

    nicsnicolan New Member

    Joined:
    Sep 15, 2011
    Messages:
    12
    sir just wanna ask how did you able to interface the adc to the microcontroller??
Similar Threads
Forum Title Date
Embedded Systems and Microcontrollers AD7490 Interfacing with Microcontroller Sep 22, 2014
Embedded Systems and Microcontrollers Interfacing 2 5-phase stepper motor drives with any Microcontroller Jul 26, 2013
Embedded Systems and Microcontrollers Microcontroller for USB interfacing Mar 8, 2013
Embedded Systems and Microcontrollers Interfacing microcontroller to PC Nov 26, 2012
Embedded Systems and Microcontrollers interfacing pic microcontroller with small printer Jul 17, 2012

Related Site Pages

Section Title
Worksheet Digital communication
Worksheet Shift registers
Video Lecture Hardware: IO, RTC, PS - Microprocessors

Share This Page