Simple Serial Port Program

Discussion in 'C Programming' started by Joel, Jul 31, 2006.

  1. Joel

    Joel Guest

    My project involves an oscillator connected to the DTR pin of
    the serial port, which switches the oscillator on and off using
    a C program.

    Here's what im trying to do:
    a simple program that can turn the "DTR" pin of the serial port on
    and off, that's all. I came across the function outportb() in dos.h,
    can I use this to do the above mentioned?

    Will the function work in Turbo C?

    Kind Regards

    Joel
     
    Joel, Jul 31, 2006
    #1
    1. Advertising

  2. Joel

    Ian Collins Guest

    Joel wrote:
    > My project involves an oscillator connected to the DTR pin of
    > the serial port, which switches the oscillator on and off using
    > a C program.
    >
    > Here's what im trying to do:
    > a simple program that can turn the "DTR" pin of the serial port on
    > and off, that's all. I came across the function outportb() in dos.h,
    > can I use this to do the above mentioned?
    >

    Must be the time of day, this is off topic here, try a group dedicated
    to your OS or compiler.

    --
    Ian Collins.
     
    Ian Collins, Jul 31, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Manoj K.S
    Replies:
    1
    Views:
    707
    127.0.0.1
    Dec 2, 2003
  2. Raine Wang
    Replies:
    0
    Views:
    803
    Raine Wang
    Nov 2, 2004
  3. John T.

    Program for monitoring the serial port

    John T., Sep 1, 2003, in forum: C Programming
    Replies:
    1
    Views:
    403
    Irrwahn Grausewitz
    Sep 1, 2003
  4. Pom
    Replies:
    2
    Views:
    1,723
    Bas-i
    Jan 31, 2007
  5. msalerno
    Replies:
    3
    Views:
    422
    Ilmari Karonen
    Jul 14, 2005
Loading...

Share This Page