At 09:11 PM 5/3/2005, Jinx wrote: > > 13.15usec per half cycle. I don't think you have enough time to > > save and restore context and reload timer0 at 4MHz, let alone > > keep track of other timing. > >Maybe put a 32kHz xtal on Timer1 and use that to measure the >5 & 20 second intervals (T1 OSC available only if you use the >internal osc), keeping TMR0 @ 4MHz just for the 38kHz Close - so close. How about putting a 38KHz crystal on TMR1, then turn it on and off as needed? Those 38 KHz crystals are darned cheap - even from Digikey - and you have all the other resources of the '675 available for use. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 21 years of Engineering Innovation (1984 - 2005) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist