Perhaps casting and shifting is causing the problem. What does the asm code look like? Colin :: Does anyone see anything wrong with this code: :: :: //Set page 103 for details regarding the +2 :: tmr0l = (unsigned char)65000; :: tmr0h = (unsigned char)(65000 >> 8); //Right shift so the top :: byte :: becomes the bottom byte -- cdb, colin@btech-online.co.uk on 15/11/2006 . -- No virus found in this outgoing message. Checked by AVG. Version: 7.5.431 / Virus Database: 268.14.5/534 - Release Date: 11/14/2006 3:58 PM -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist