Accessing the Serial Port

This is a discussion on Accessing the Serial Port within the C Programming forums, part of the General Programming Boards category; Hello All I am trying to access the serial port on the computer using C but i cant work up ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    4

    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
    Posts
    5,006
    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
    Posts
    4,676
    I've posted some C++ code that uses the principles described that MSDN article - you may find it usefull.

    Simple RS232 Question

    gg

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 Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 03:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21