Measuring the Pulse Width of PPM signal programming in c

Hello all,

I need some help regarding programming a microcontroller of family dsPIC33 in C. I have to measure pulse width of PPM signal received by 8 channel receiver. I am using dsPIC33EP64GP504 microcontroller. If anyone can help me with codes then please reply me.

thank you