I am current working on a project controlling 2 RC servos with a pic16f88. I am at a point where I would like to free up the timer0 interrupt for a different use. It is currently generating my 20ms pwm signal for the servos.
I'm thinking of having a single astable 555 generate a 50Hz clock and use monostable 555 timers to generate the servo controlling pulse (between .7ms and 2.3ms).
Is it possible to control the length of a monostable pulse using an ADC output of the PIC processor? If so, what would the circuit look like?
If I had to guess I'd probably be using the ADC output as the threshold on the 555, but of course I'm more of a programmer than an electrical engineer so if I can't find it on Google, I don't know how to do it.
I know there are probably other ways that I could do this, and should be open to other suggestions...but for parts on hand I have plenty of 555 timers to work with.
I'm thinking of having a single astable 555 generate a 50Hz clock and use monostable 555 timers to generate the servo controlling pulse (between .7ms and 2.3ms).
Is it possible to control the length of a monostable pulse using an ADC output of the PIC processor? If so, what would the circuit look like?
If I had to guess I'd probably be using the ADC output as the threshold on the 555, but of course I'm more of a programmer than an electrical engineer so if I can't find it on Google, I don't know how to do it.
I know there are probably other ways that I could do this, and should be open to other suggestions...but for parts on hand I have plenty of 555 timers to work with.