Jean-Paul, Sorry about that. No the one second gating pulse is on one pin and=20 the 20+ns reset pulse is on a second pin. There doesn't need to be any=20 delay between the reset pulse and the gating pulse. Then after the=20 gating pulse we wait for 15 seconds or so before sending the next reset=20 pulse and doing the whole thing all over again. Thanks, rich! On 7/18/2014 11:16 AM, Jean-Paul Louis wrote: > 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 pul= se? > > 1 sec =97 15 sec =97 short pulse =97 ??? =97 1 sec =97 15 sec =97 short p= ulse =97 ??? =85. > > Please advise, > > Jean-Paul > AC9GH > > > > On Jul 18, 2014, at 11:39 AM, Richard R. Pope wr= ote: > >> Bob, >> OK. But how do I do this? I want to put out a one second high pulse >> and then pull it low. Then I want to wait for 15 seconds. Next I want to >> output a high for at least 20ns. Output the one second pulse, wait for >> 15 seconds, output the 20+ns pulse, output the one second pulse, and >> continue doing this forever. >> Thanks, >> rich! >> P.S. I will eventually add an ADC to control how long we wait before we >> output the 20+ns reset pulse and then the one second gating pulse. >> rich! >> >> 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 = to >>> generate a pulse of an exact number of instruction cycles using a delay >>> loop. >>> >>> ~ Bob Ammerman >>> RAm Systems >>> >>> -----Original Message----- >>> From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behal= f Of >>> Allen Mulvey >>> Sent: Friday, July 18, 2014 10:40 AM >>> To: 'Microcontroller discussion list - Public.' >>> Subject: RE: [Pic] Making a special timer! >>> >>> MikroElektronika has a free Timer Calculator that you can use to get th= e >>> code to set up your timer. I don't understand why anyone would want to = use a >>> PWM when the timer is so easy and quite accurate. Check this out: >>> http://www.libstock.com/projects/view/398/timer-calculator >>> >>> >> --=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 .