How to convert PWM signals to PPM signal using Arduino?

Hi all,

I am using a 8 channel R2008SB Futaba radio receiver. I thought of using an Arduino to convert PWM signals to PPM signal.

The PWM signal channel terminals of the radio receiver are connected to the digital pins of the Arduino as inputs. The Arduino outputs PPM signal.

However, I do not know how to code out. I am looking for Arduino code that converts PWM signals to PPM signal. Please help me, I appreciate your time. Thank you.

Joe