Richard Going deep into my memory I think you can write to the LPT1 using an OUT statement , or read from it using an INP (or IN ?? ) statement. They are a bit different in syntax from each other but you should be able to find then OK. As far as the serial port is concerned, I think you have to either do a OPEN COM statement and follow it with a READ #, WRITE# or PRINT# to do the actual transfer as required. I don't think you can write directly (e.g OUT, INP) to a serial port unless you manually set up the control registers beforehand. This was with "DOS" based systems - newer operating systems probably won't allow direct access to the ports anyway. Richard P 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 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body