View Full Version : COM1 and COM2 ports writing
Devil Panther
07-21-2003, 11:05 AM
How can I in C, write to the COM1/2 ports?
Is there a function? or something?
Can I do it with _outp(), if so, what is the address of the COM1 and COM2 ports?
Thanks.
Devil Panther
07-21-2003, 12:32 PM
I'm using the Borland 5.5 C++ compiler, and the win98/2000/XP OS.
Devil Panther
07-21-2003, 01:31 PM
Thanks.
ygfperson
07-21-2003, 06:28 PM
I know ms-dos used some special filenames like lpt1 as fake filenames for printers. How involved was that? Was that just a ms-dos shell thing?
Its because its treated as a file, lpt1 and the COM ports
Quantrizi
08-09-2003, 10:35 AM
www.robbayer.com has a "tutorial" on connecting to serial ports (connecting to COM1, etc... works with this).
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.