Bill, Yeah, it's a bit convoluted like that, but that's just the way that the book I'm using taught me... The way that you put it seems a lot neater though so I will switch to doing it that way. It seems that my book was more interested in saving a few instructions rather than code clarity... Matt On Tuesday 30 March 2004 16:33, William Bross wrote: > Matt, > Upon further investigation, I see that you do have the ISR at > 0x04, albeit a bit convoluted. As Mike mentioned, make sure you > save w and status upon entering the ISR and you pop them back to > their original values upon exiting the ISR. 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. > > Bill -- 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