Allen, I don't have a 20MHz chip so I dropped back to 4 MHz. The=20 calculator has a choice for a 4MHz frequency and I choose that but the=20 numbers are off by almost 4.5 times. I don't know why but I am getting=20 there. It will count the frequency, wait for x seconds, clear the=20 display, and do it all over again. It works but it isn't accurate yet.=20 The one PIC replaces 8 TTL and CMOS chips. Thanks, rich! On 7/23/2014 1:39 PM, Allen Mulvey wrote: > I gave the code from the MikroC timer calculator but I thought you were > using a 20 MHZ crystal not 4 MHZ. > Sorry about confusing things. > > MikroC apparently uses a different convention for defining an ISR but the > timer start values should be correct. I am using those same values in > another project myself. > > Allen > >> -----Original Message----- >> From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .