Lutron Electronics interview question

Write a driver for dimming an LED.

Interview Answer

Anonymous

23 Feb 2024

I used a timer counter and PWM, with an interrupt on match turning the led off and an interrupt on overflow turning the led on.