Herbert Graf wrote: > > True, for the one with full position feedback (the throttle BTW) I was > thinking of using the "resister and capacitor hanging off a port and timing > the time constant" method, I don't need high accuracy and I believe this > should be "good enough" for that purpose. Aside from that I have no qualms > over adding a chip (got a TON of SPI ADCs lying around in my bins) so my > might just use a real ADC. TTYL Herbert, thinking again of safety, if the PIC fails and locks up, you would expect the output pin to stay LOW or HIGH. I would try and design the driver hardware so that it needs the PWM in a specific range to keep the throttle open, and any sustained high or low at the pin would result in a closed throttle. Then you only have to worry about the very rare fault that may leave the PIC oscillating with the output pin oscillating, but i'm sure you could add extra safeguards around this. -Roman -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads