Allen, Do I do the reset in main() just before I call the delay routine or=20 should I reset the timer inside the delay routine just before I execute=20 the for loop. Yes, you can leave any number of the required elements out=20 of a for loop and C will figure it for you. But I trying to figure out=20 how to use the interrupt routine. Thanks, rich! On 7/20/2014 12:16 PM, Allen Mulvey wrote: > Richard, > > I think you are getting there but there are a few details you missed. > > I've never seen a for loop used like this but it looks like it should wor= k. > I would reset count and use a while loop to wait for the incrementing. > > What you missed is that resetting count is only part of the reset. This i= s > the 10ths of a second. Meanwhile you don't know where the clock is and wi= ll > --=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 .