Simple Serial Port Program

J

Joel

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
 
I

Ian Collins

Joel said:
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top