Hi!
Days ago, I posted a query about bioscom() function in c++[turbo c], in reference with serial port programming. Though I was unable to get through with that problem but instead found outportb(), inportb() functions in c for the same purpose.
Following are the serial port settings which I copy pasted into my code and it worked. Now I want to understand these settings (i.e. the code)...
Please help me.
#define PORT1 0x3F8
outportb(PORT1 + 1 , 0);
outportb(PORT1 + 3 , 0x80);
outportb(PORT1 + 0 , 0x0c);
outportb(PORT1 + 1 , 0x00);
outportb(PORT1 + 3 , 0x03);
outportb(PORT1 + 2 , 0xC7);
outportb(PORT1 + 4 , 0x0B);
Days ago, I posted a query about bioscom() function in c++[turbo c], in reference with serial port programming. Though I was unable to get through with that problem but instead found outportb(), inportb() functions in c for the same purpose.
Following are the serial port settings which I copy pasted into my code and it worked. Now I want to understand these settings (i.e. the code)...
Please help me.
#define PORT1 0x3F8
outportb(PORT1 + 1 , 0);
outportb(PORT1 + 3 , 0x80);
outportb(PORT1 + 0 , 0x0c);
outportb(PORT1 + 1 , 0x00);
outportb(PORT1 + 3 , 0x03);
outportb(PORT1 + 2 , 0xC7);
outportb(PORT1 + 4 , 0x0B);