Hello everyone, I'm looking to make a circuit that uses two analogue inputs to drive a PWM. I am trying to make the frequency of the output anywhere from 10 KHz to 250 KHz based on a potentiometer. Also, the duty of the circuit needs to have an approximate 10% duty, but needs to be able to vary, again, based on a potentiometer. I would like to use a 16F87x for this, and in assembly (or if someone could help me find a decent compiler for some other language, that would be simpler). The 16F877 already has a hardware PWM, and I plan to use that, but I'm confused on how to make variable frequency and variable pulsewidth. Any suggestions about where to start, or some example codes would be helpful. Thanks, ~Zack S. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu