I am working on a project and I'm trying to figure out how I'm going to write to the serial port. Since my laptop does not have a serial port, I have purchased a USB to serial adapter. Now I need to send data from my C program to the serial port but I do not know how to address the port. Does anyone have any idea how this is done?
When I had worked on a Windows 98 I used outportb()
to address the parallel port but this will not work on Windows 7.
(I am using Windows 7 64 bit.)