piclist 2001\04\20\190834a >
Thread: Newbie - RC receiver to 2xPWM outputs with a 16F84
picon face BY : Mike Evans email (remove spam text)

This is my first ever post the list, I've been sitting listen for a few months now.... You all seem like a helpful lot.

I'm trying to write some code that takes two radio control servo inputs (forward/reverse on one channel, left/right on the other) and mixes them together to provide two PWM outputs suitable for driving FET H-bridges for a small radio-controlled robot.

I've got as far as measuring the pulse length of one servo input and using an ISR I can generate a PWM signal from this, my problem is adding the second channel - the timing goes to pot! (My ISR generates the PWM to give a fixed-frequency, but this means my main loop that measures the servo input gets interrupted a hell of a lot - am I doing this the right way round?)

I feel like I'm almost there, but I'm also convinced that someone _must_ have done this before. I've checked the archives and found nothing.

I suppose my question is: Is generating two PWMs whilst reading two inputs too much for one 16F84 to cope with or am I looking in the wrong place for the solution?
Any help appreciated. Mike.

http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spamBeGonelistservKILLspamspamspamBeGonemitvma.mit.edu with SET PICList DIGEST in the body

<LAW2-OE52F83Emd59fc00002a7a@hotmail.com> quoted-printable

See also: www.piclist.com/techref/microchip/begin.htm?key=pwm
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Newbie - RC receiver to 2xPWM outputs with a 16F84

month overview.

new search...