function to generate a PPM output?

@AWOL

OK Let analyse a PWM ... @ 50 Hz Period = 1/50 = 0.02 s or 20 ms @ 200 Hz Period = 1/200 = 0.005 s or 5 ms.

I mean ---> AT 200 Mz Period = ..... I forgot a DOT after 20 ms

I mean : @ 50 Hz Period = 1/50 = 0.02 s or 20 ms
@ 200 Hz Period = 1/200 = 0.005 s or 5 ms

Opps ... :blush:

Sorry that I sound confusing sometime.

I just trying to help the OP. Anyway, RC is Remote Control ? and ESC ?

In a program to generated a PWM or PPM, you still need to control Ton, Toff and the Period.

Edit:

@Erni

Thank for the link. Interresting.