Write a program to control an LED brightness by generating a PWM signal on PIC18 series microcontroller