Gamma correction is used to correct for the nonlinear relationship between luminance and brightness. This application note presents an assembly program written for the MAXQ2000 microcontroller (µC) that uses gamma correction with a fixed-frequency PWM signal to linearly increase and decrease the brightness of an LED. The PWM duty cycles, stored in a Lookup Table (LUT) located in Utility ROM memory, are gamma corrected to produce linear brightness changes. The software compiles using the free MAX-IDE development tool and runs on the MAXQ2000 evaluation kit. ……