[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Programming serial (COM1) port on MS-DOS?

Posted on 2003-11-27
3
Medium Priority
?
285 Views
Last Modified: 2010-04-15
Hello,

What is the best way to program a serial port on MS-DOS in C?
For example set protocol to 9600,n,8,1,xon and output "hello world"?

Thanks for your time,
James
0
Comment
Question by:JamesC2020
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 17

Accepted Solution

by:
rstaveley earned 600 total points
ID: 9838140
The best approach is to use an interrupt service routine. I've programmed several of these in the past, but I'd recommend libraries by others :-)

Greenleaf does a commercial library for this if you want to throw money around, but there are a lot of free alternatives on the net.

e.g.
 http://www.programmersheaven.com/zone3/cat411/6719.htm
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question