[fpc-pascal] Access to RS232 ports with fpc

Holger Bruns holger.bruns at gmx.net
Mon Nov 2 14:36:51 CET 2009


Felipe Monteiro de Carvalho schrieb:
> It may be useful to know that there is a serial communication example
> using Synaser here:
>
> http://wiki.lazarus.freepascal.org/Hardware_Access#Serial_Communication
>   
Yes, thank you. I checked this out. The procedure reccvbyte, as used in 
this manner:

 Write(IntToHex(ser.RecvByte(1000), 2), ' ');

reads every incoming character as zero. Simply, is does not work.
> It's much easier to use then using the lower level routines yourself.
>
>   
I try to implement a direct port access. If this also leads to access 
errors, I should give it up. Embarassing.

Holger






More information about the fpc-pascal mailing list