Thread: Input via the serial port for a C program

  1. #1
    Registered User
    Join Date
    Jul 2005

    Question Input via the serial port for a C program

    I am doing a electronics cource at the moment and have done some C++ programming but not alot, what I need to know is whats requried for a C program to read data from the serial port, I know about reading data from a file.

    The reason I ask is because I would like to send data from a 8051 to the com port and have a C program read and store the data.

    Any information or links would be helpful.
    Thanks Anthony

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    I've just done a board search
    "serial port" Showing results 1 to 25 of 207
    Which of those is confusing you?

    Oh, and next time mention your OS and compiler.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Windows Xp
    microsoft Visual C++ 4.0

    I did a search and using "serial port" and your right there is a heap of information.
    I'll start reading

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Serial Port Questions
    By valaris in forum Tech Board
    Replies: 2
    Last Post: 05-22-2009, 08:26 AM
  2. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  3. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM