You didn't say what make of C compiler you're looking for code= for. Most programs written for any of the 16F series would only need= minor conversions for the 877. There is C code in the PICLIST archives. I have one somewhere for= a VFD display using a 628 would only require the CMCON to be= changed to ADCON1 and recompiled. colin -- cdb, bodgy1@optusnet.com.au on 01/07/2002 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu