Richard, Your description is a bit confusing. 1 - Are the one second pulse and the second short pulse on the same wire? 2 - what is the delay between the short pulse and the next one second pulse= ? 1 sec =97 15 sec =97 short pulse =97 ??? =97 1 sec =97 15 sec =97 short pul= se =97 ??? =85. Please advise, Jean-Paul AC9GH On Jul 18, 2014, at 11:39 AM, Richard R. Pope wrot= e: > Bob, > OK. But how do I do this? I want to put out a one second high pulse=20 > and then pull it low. Then I want to wait for 15 seconds. Next I want to= =20 > output a high for at least 20ns. Output the one second pulse, wait for=20 > 15 seconds, output the 20+ns pulse, output the one second pulse, and=20 > continue doing this forever. > Thanks, > rich! > P.S. I will eventually add an ADC to control how long we wait before we=20 > output the 20+ns reset pulse and then the one second gating pulse. > rich! >=20 > On 7/18/2014 10:09 AM, Bob Ammerman wrote: >> Why are we talking about timers at all? It is a pain in the next to get = an >> instruction cycle accurate pulse when using a timer. It is much easier t= o >> generate a pulse of an exact number of instruction cycles using a delay >> loop. >>=20 >> ~ Bob Ammerman >> RAm Systems >>=20 >> -----Original Message----- >> From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf= Of >> Allen Mulvey >> Sent: Friday, July 18, 2014 10:40 AM >> To: 'Microcontroller discussion list - Public.' >> Subject: RE: [Pic] Making a special timer! >>=20 >> MikroElektronika has a free Timer Calculator that you can use to get the >> code to set up your timer. I don't understand why anyone would want to u= se a >> PWM when the timer is so easy and quite accurate. Check this out: >> http://www.libstock.com/projects/view/398/timer-calculator >>=20 >>=20 >=20 > --=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 --=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 .