Chen Xiao Fan wrote: > I do not think PR1 will change once you load a literal value > into it. PR1 is the Period Register. TMR1 is the Timer 1 > register and it will count up in timer mode with a rate > depending on the pre-scaler. > > >From the manual: > "The 16-bit timer has the ability to generate an interrupt > on period match. When the timer count matches the > period register, the T1IF bit is asserted and an interrupt > will be generated, if enabled. The T1IF bit must be > cleared in software. The timer interrupt flag T1IF is > located in the IFS0 control register in the Interrupt > Controller." > . Gosh, how dumb can I get! It is perfectly obvious. Just check the T1IF bit! In self-defense, I did RTFM, but missed the implication. Getting old, too much coffee, not enough sleep. Thank you very much, Xiao Fan. John -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist