How to setup a PIC16F877 for a lamp control circuit using PWM. whilst synchronously trying to count the LCD and seven seg to count up and down (0-9, 9-0).In exact words , when the switch is pressed the light must get brighter. when the switch is OFFed the light should get dimmer. thanx