thanks a lot for this. i will go over this in the next few days. this is very helpful. On Sun, Jan 18, 2009 at 12:49 AM, Jinx wrote: > Error in the comments > >> movlw high(irq_count) ;set counter to - d3906 >> movwf ticks_hi ;ticks high set to 0x0f >> movlw low(irq_count) >> movwf ticks_lo ;ticks_lo set to 0x42 > > ticks_hi = 0xf0 > ticks_lo = 0xbe > > In other words, -d3906 = 0xf0be (= 0x10000 - 0x0f42) > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist