shsn
Junior Member level 3
Hi,
I'm aware that PIC microcontrollers are capable of detecting PWM input signal with so-called CCP module. I was wondering whether PICs can measure the duty cycle of a 10kHz PWM signal and program it to drive a few LEDs depending on the duty cycle.
Is it possible? or is it better to use an RC filter to convert the PWM to DC and use ADC to control the LEDs?
Thanks!
Eric.a
I'm aware that PIC microcontrollers are capable of detecting PWM input signal with so-called CCP module. I was wondering whether PICs can measure the duty cycle of a 10kHz PWM signal and program it to drive a few LEDs depending on the duty cycle.
Is it possible? or is it better to use an RC filter to convert the PWM to DC and use ADC to control the LEDs?
Thanks!
Eric.a