if anyone has any code written for 18f4431 to generate just one pwm signal with an adc input to vary its duty cycle then please post it .