I recently dropped TMR0 (I need the prescaler for the wdt) and started using TMR2 for the program time base. I noticed that TMR2's interrupt flag won't clear unless it is disabled, the flag cleared, and TMR2 enabled again. It works OK, but I am wondering why it wasn't necessary with TMR0. I tried it on the '74 and the '77. -- Friendly Regards Tjaart van der Walt mailto:tjaart@wasp.co.za _____________________________________________________________ | WASP International http://www.wasp.co.za/~tjaart/index.html | | R&D Engineer : GSM peripheral services development | | Vehicle tracking | Telemetry systems | GSM data transfer | | Voice : +27-(0)11-622-8686 | Fax : +27-(0)11-622-8973 | | WGS-84 : 26010.52'S 28006.19'E | |_____________________________________________________________|