Ah, thank you Peter, I was using your OUT_CMP2.C routine from the 16F87X tutorial as a= guide for timer2. All is now clear. Colin -- cdb, bodgy1@optusnet.com.au on 04/08/2002 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu