I'm reading through Microchip's AN1171 (Touch switch setup), and one example for setting up Timer 2 (on a 16F with CapSense) shows this... T2CON = 0x04; // T2ON, prescaler & postscaler = 1:1 T2CON = 0x01; // adjust prescaler PR2 = 0xB4; // w/pres.1:1, 0xB4 sets 125us scan rate. TMR2IF = 0x00; TMR2IE = 0x01; ... Is there a reason for the second line? T2CON is set, then immediately changed again? I figured I'd ask in case there's some errata I missed where perhaps the prescaler is supposed to be set to 1:1 while switching on T2, etc. Or maybe this is some C-specific workaround? Or am I reading too far into what is really a typo? Cheers, -Neil. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist