- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › PIC › using PWM to switch on/off LED using pic
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
post ur code