On 9/09/2011 1:23 PM, Josh Koffman wrote: > On Thu, Sep 8, 2011 at 11:09 PM, David Duffy (AVD) > wrote: >>> Ok, that's what I figured. Is there a clever way to save a timer and >>> integrate it all into one? That's where I was headed with my comments >>> before. I don't know if this is possible, but could you have say TMR3 >>> generating the 20mS interrupt, then use the CCP module on TMR3 to >>> generate the pulse width? I haven't had the time to do the math to see >>> if that would work, but I have no idea if it's even within the realm >>> of possibility. >> I guess you could subtract the sum of the 8 servo on-times from 20ms and >> use that for a 9th time period. > Sorry, I didn't mean for use as a 9th output. I plan to get a single > servo working, then expand if needed. I think I understand what you're > talking about, I was talking about saving timer peripherals in general > though. > I meant use the n+1 time to give you the overall 20ms cycle period using=20 the same timer. So the total time is S1 + S2 ... Sn + Gap Time, each timed sequentally. David... --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .