Octavio Nogueira wrote : > I can not get the timer to overflow in a correct number > to generate 38KHz. > > Let's supose I program the TIMER0 to count from 230 > then it will overflow in 26 counts. If I have a 4MHz > crystal I would generate 4MHz/4/26=38461.53.. Hz Note that 38.461 KHz *is* equal to 38 KHz when properly rounded. > I just need this generate 38KHz. +/- how much ?? Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist