> Does anyone know how to write a QBASIC command to transfer a byte > or multiple sequence of bytes to the parallel port of a > PC, and also to read a byte or multiple sequence of bytes from the parallel > port? Also, the same question applies to the serial > port. I would appreciate any information on this software question. > Regards, > Richard > rgrazia1@rochester.rr.com The standard functions are INP(port) where port is a numeric expression between 0 and 65535 inclusive which identifies the port number usage: input_data = INP(0x234) OUT port, data% where port is similar to above and data% is an integer between 0 and 255 inclusive. usage: OUT 0x567, 100 These functions may not work on a Windows machine, since direct I/O to ports is not allowed. The serial functions are COM(n%) ON COM(n%) OFF COM(n%) STOP n% is the port number (1,2) There are additional functions such as ON COM and OPEN COM which set up the ports. Check the documentation for your Basic compiler to see if they are supported. As above, they may not work under Windows. John Power -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body