Re:Com Port Access
You can't use just the port-command for reading, because you don't know if the
com-port has received a new character, or it is the same one that you read the
last time (if the same character was sent multiple times). What you need, is a
interuptdriven software, but it's hard to write your own. I recommend you to buy
a software like Async Professional, which include Borland Pascal-compatible
procedures and classes.
Ingvar
Quote
NLHG wrote:
> Marc Arndt wrote in message <82565g$67...@ctb-nnrp1.saix.net>...
> >Good day.
> >I am trying to write some GPS software in Pascal 7.0 - Could someone please
> >tell me how to access a Com Port so that I can download the tracks from the
> >GPS?
> >Marc Arndt
> >marc.ar...@global.co.za
> >;-)
> com1 address is $3F8
> com2 address is $2F8
> Use the port[] command!
> To write a value to com1
> port[$3F8] := value;
> To read a value from com2
> value ;= port[$2F8];
> I don't know if you'll have to do this but to set up the port do the
> following
> port[com+3] := 128;
> portw[com] := 115200 div baudrate;
> port[com+3] := 3;
> There's more too this... (But i'm really not the expert on this!!!)
> Have fun!
> Bye
|
|
ingvar.isendor.vcf
< 1K
Download
|