Problems with serial communication. inportb

V

Vicent

Hi all:

I have an MS-DOS application for serial communications trought COMn,
till now it works fine, but when I began working with Pentium III and
4 I had problems.
The code I use is the next:

outportb(port+2,0xc9); //iir
outportb(port+3,0x80); //lcr
outportb(port,0x0c); //dll
outportb(port+3,0x1e); //lcr
outportb(port+1,0x00); //ier

here stay in loop undefinetly

while(inportb(port+5)&1) inportb(port)

If the machine has MS DOS 6.22 FAILS
if I run since a MS DOS window from W98 FAILS
If I Install W98 and I press F8 turning on the machine and select
"Just system symbol" IT WORKS!!!!

I would like to know why it happens, does somebody has any
suggestions?


Thanks in advance:
Vicent Vidal
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top