Thread: Accessing the Serial Port

  1. #1
    Registered User
    Join Date
    Mar 2005

    Question Accessing the Serial Port

    Hello All

    I am trying to access the serial port on the computer using C but i cant work up how to set it up. I know the port has the address 3F8 hex are the addressess from 3F8 3FF regsister to setup the baud parity etc. If so does anybody know where i can get some information on how to set it up using C. Ive tried looking on google and the search on these forums but cant find any info.

    I was just wondring if anybody had any good information/tips/websites they could share with me to help me on my way.

    Iam using windows 98 and mingw compilier

    Thanks in advance

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    I've posted some C++ code that uses the principles described that MSDN article - you may find it usefull.


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 06:52 AM
  2. Can't Read From Serial Port
    By HalNineThousand in forum Linux Programming
    Replies: 14
    Last Post: 03-20-2008, 05:56 PM
  3. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  4. Reading and writing to a serial port
    By SwarfEye in forum C Programming
    Replies: 2
    Last Post: 08-18-2006, 12:28 AM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM