PWM and ADC are working in a minimal state where a single sample can be taken and the PWM output changed based on the input voltage.  This has allowed a setup where a sinusoidal source can drive the brightness of an LED.  High frequency inputs cause a bit of an issue with the PWM.