Low Level I/O Parallel Port

For issues with communication ports, protocols, etc.
Post Reply
squibit
Posts: 16
Joined: Jan 16, 2006 19:44

Low Level I/O Parallel Port

Post by squibit »

Inp32 returns lower byte of part address eg inp32(&h37A) returns 122=7Ahex , inp32(&h77A) returns122

(with help from D.J.Peters) got program to print via parallel port)
squibit
Posts: 16
Joined: Jan 16, 2006 19:44

Re: Low Level I/O Parallel Port

Post by squibit »

My previous post left out many details and was slightly in error. My apologies.
Running 64 bit version of FB on Windows 7 (64 bit).
Have an old dot matrix printer connected to the parallel port.
open lpt "LPT1:" as #2; Print #2, ... works
The port is ECP
Cannot get either inp32 or out32 to work.
Trying to read the status port at &379 via inp32(&h379) produces 121=79 hex.
Similar results for other ports - always get the last byte of the address.

out32 doesn't work at all despite efforts to output signals to do the requisite handshake--either SSP or ECP


One detail that may be important-FB (FBIDE) are not installed as the 64 bit versions do not appear to
come with the installer package
Anyt suggestions?
Post Reply