> I am having hard time to generate accurate 46.27 microseconds > interrupt If you need each interrupt pair to have exactly that spacing you will likely need a weird xtal frequency. But if you only need the average frequency to be that value you could use a corrective technique (is that what is called a phase accumulator?) to get an interrupt every 46 us and every now and then postpone then next interrupt one ms more. But I think you will need to use a counter as RTC to do check the interrupt moments against real time, because of the varying interrupt latency. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body