If you look at the samples that come with the Hi-Tech C compiler, there is a file called serial.C which sounds like almost exactly what you need. (You can download it off their web site. http://www.htsoft.com Good luck! -Alan +--------------- | Alan G. Smith | ags@poboxes.com | http://www.innovatus.com/ags