You should not be using inp() or outp() in any of the 32bit windows versions. Microsoft have a rich set of API's for working with the serial port. They even let you setup evens so that activity on the port can notify your application and then you can do some action. I.E. it is equilatent to interrupts. Also, using the API allows you to use the parallel port so long as your device works with one of the 5 modes of operation(Compatibility,Byte,Nibble,EPP or ECP). Byte and Nibble modes allow you to read from the parallel port while Compatibility allows you to write to the port. ECP and EPP modes allow both forward and reverse data flow. The nice thing is that everything works on Windows NT/2000 as well as 95/98/ME and the soon coming XP. Regards, James -----Original Message----- From: Olin Lathrop [mailto:olin_piclist@EMBEDINC.COM] Sent: Thursday, May 31, 2001 6:53 AM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [EE]:controlling serial port from windows NT >> Have made a little PIC thing that communicates with a computer through the serial port. This works fine with windows 95 but doesn't transfer to NT because NT does not allow use of the _inp() and _outp() functions. What can be done that doesn't require either brains or money? << Not much, of course. If you're not willing to spend either money or effort, then any effort on my part to answer the question is just a waste of time. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu