Keil Programming

Hi everyone,

I am using XC164CS microcontroller. I need some help in keil programming. The operating frequency is 20KHz. The condition is that if the Vin= 0 volt the duty cycle=5% and if Vin=5V then duty cycle= 95% and duty cycle should be vary in between 0 to 5V range. I manually connected 0 to 5V resistor to the CAPCOM pin to check the condition and how quickly it measure.

I have one idea about after every interrupt the voltage level change and duty cycle also change but difficult to find in programming.

Any ideas or thoughts?

Thanks

Vivek

More questions in this forum