Ah, I just fixed this as you suggest below, fixing the clearing of the timer interrupt bit and it started working! Thanks! Point taken about using the names from the include file, I didn't even realise that there were names in there for all these bits. I shall look through it. Now to make other improvements based on the other comments I've received... I'm learning slowly :) Thanks again Matt > The other thing I > found is you are clearing INTCON bit 3 instead of bit 2 which is > really T0IF. I just popped your code into the simulator and > found it in less than a minute. You really need to look at the > include file and use the assigned names for the register bits. > It will be a lot less confusing as you get deeper into bigger > blocks of code. -- Matt N. Marsh Email: matt@mattmarsh.net Yahoo: marshmn Web: http://www.mattmarsh.net/ Jabber: mattmarsh@jabber.org MSN: matt@mattmarsh.net ICQ: 250467363 AIM: MattMarshUK -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body