using PWM to switch on/off LED using pic | Microcontroller › PIC › using PWM to switch on/off LED using pic This topic has 1 reply, 2 voices, and was last updated 9 years, 7 months ago by Ashutosh Bhatt. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts February 27, 2015 at 6:49 am #3503 prernaParticipant Hi, I am trying to do a small project to switch on/off an LED using PWM with PIC18f4550 . I dont know how to define on time and off time. with the same duty cycle i want to implement 2 different on time..1) timer 1: on-time :1 sec off-time: 2 sec. 2) timer 2: on-time :2.5 sec off time : 5 sec April 12, 2015 at 6:30 pm #12786 Ashutosh BhattParticipant post ur code Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In