PIC18F24K42 - CLC with PWM won't play ball
I have a CLC configured in JK mode using a 1s timer to create a 50% pulse. It works perfectly, I can forward to an LED and see the output.
I have a PWM supplying a varying duty cycle but let's say 70%. I have this going to an LED so can see the output.
I now feed the 1st CLC and the PWM into a second CLC, the idea being to use the PWM duty when the 1st CLC has output. The output of CLC #2 goes to another LED.
CLC output is 0. If I configure both inputs to be CLC #1 the LED works, so for some reason it's not accepting the PWM input. I've tried two PWM peripherals and lowered the PWM frequency to ~ 400Hz (as low as possible).