Alan, I decided to send another reply. I don't have any 24Fs. I do have a=20 684 and I see that it has a PWM and I was thinking why not setup the PWM=20 to output a one second pulse when ever it is needed. Again the 20ns or=20 longer reset pulse could be a simple 5 or 10 instruction delay loop. It=20 also has an ADC for reading the POT to control the display time. And if=20 I wanted to hold the gate for longer times to give better resolution for=20 slower counts that could be done with a switch to change the length of=20 the pulse output by the PWM. Also the PIC could control the setting of=20 the decimal point on the display. Correct? Thanks, rich! On 7/18/2014 3:47 AM, alan.b.pearce@stfc.ac.uk wrote: > Creating the pulses you want is made very easy using the Output Compare m= odules in the more recent processors. > > I did a pulse generation system in a PIC24 where we needed three periodic= pulses with known delays between them. Using three Output Compare modules = synchronised to the same reset pulse and clocked together made it real easy= .. You could do a similar thing using two modules, one to generate the one s= econd wide pulse, and the second to generate a one clock wide pulse for the= strobe signal you want, which could be delayed from the one second pulse b= y one clock pulse. > > > >> -----Original Message----- >> From: Richard R. Pope [mailto:mechanic_2@charter.net] >> Sent: 18 July 2014 09:20 >> To: Microcontroller discussion list - Public. >> Subject: Re: [Pic] Making a special timer! >> >> Hello, >> I'm replying to myself because it is the part about controlling th= e one >> second pulse that I just don't know how to do. Do I use a timer or do I = setup >> a set of delay loops. The more accurate the one second pulse the more >> accurate that the frequency being displayed is going to be. A 4MHz clock >> means that 1 megacycles are executed in one second. So, you do the >> initialization, open the gate for one second, read the pot, wait for a t= ime >> that corresponds to the pot setting, send out the reset pulse, open the = gate >> for one second, and repeat these steps forever. >> Correct? >> Thanks, >> rich! >> P.S. This looks like an outline for the program. Correct? >> rich! >> >> On 7/18/2014 3:03 AM, Richard R. Pope wrote: >> --=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 .