titz
asked on
D3 and serial port under W98/NT
hi,
i have done a nice working program which works with the serial port under W98/NT in D3.
for some tests i need to know the status of (nearly) every pin of the serial port, not only CTS or RTS. These i can get by CLEARCOMMERROR and the COMSTAT-Field.
GETCOMMMODEMSTATUS too is not the right one.
but it should not be in assembler!! i need it in D3 (or D4)!
thanks
titz
i have done a nice working program which works with the serial port under W98/NT in D3.
for some tests i need to know the status of (nearly) every pin of the serial port, not only CTS or RTS. These i can get by CLEARCOMMERROR and the COMSTAT-Field.
GETCOMMMODEMSTATUS too is not the right one.
but it should not be in assembler!! i need it in D3 (or D4)!
thanks
titz
Can you post what are you looking for?
Here is some assembler even thought you said not to use assembler...
//Read port
function ReadPortB( wPort : Word ) : Byte;
begin
asm
mov dx, wPort
in al, dx
mov result, al
end;
end;
//Write To Port
procedure WritePortB( wPort : Word; bValue : Byte );
begin
asm
mov dx, wPort
mov al, bValue
out dx, al
end;
end;
Anyway, I hope you find it useful some how... =)
Regards,
Viktor Ivanov
//Read port
function ReadPortB( wPort : Word ) : Byte;
begin
asm
mov dx, wPort
in al, dx
mov result, al
end;
end;
//Write To Port
procedure WritePortB( wPort : Word; bValue : Byte );
begin
asm
mov dx, wPort
mov al, bValue
out dx, al
end;
end;
Anyway, I hope you find it useful some how... =)
Regards,
Viktor Ivanov
viktornet,
nice but doesn't work with winNT... There are little freeware components for NT, but I don't know where you can get them and how their name is.
Regards, Madshi.
nice but doesn't work with winNT... There are little freeware components for NT, but I don't know where you can get them and how their name is.
Regards, Madshi.
I have a comm component that check the Break, CTS, DRS, Error, Ring, Rlsd, RxChar, RxFlag, TxEmpty and its freeware. Send me an e-mail if you want it.
whoops.
lopez -
would u do me a favour & send it to me, too?
andreas.naguschewski@vt.si emens.de
Black Death.
lopez -
would u do me a favour & send it to me, too?
andreas.naguschewski@vt.si
Black Death.
ASKER
hi clopez,
my email adress is
peter.helm@t-online.de
send it to me and you will have the points.
my email adress is
peter.helm@t-online.de
send it to me and you will have the points.
ASKER
hi victornet,
i do not want to use assembler, for it will work now under perhaps WIN95. but i fear, that it will not work under microsofts next system. and it will not work under win nt.
therefore i will use the API.
tnx !
titz
i do not want to use assembler, for it will work now under perhaps WIN95. but i fear, that it will not work under microsofts next system. and it will not work under win nt.
therefore i will use the API.
tnx !
titz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi clopez,
thanks for th quick posting of the Conn-Component.
titz
thanks for th quick posting of the Conn-Component.
titz