Specifications:
Microcontroller: PIC18f4520
Crystal: 4 MHz
Language: C Programming (not assembly codes)
Basically I'm trying to blink a LED using PWM to enable the on-time to be variable. However, I can't seem to blink the LED without using the LED toggle and delay functions. By using the toggle function, I have found that the on-time cannot be changed.
May anyone give me an idea on what I can do to go around this?
Microcontroller: PIC18f4520
Crystal: 4 MHz
Language: C Programming (not assembly codes)
Basically I'm trying to blink a LED using PWM to enable the on-time to be variable. However, I can't seem to blink the LED without using the LED toggle and delay functions. By using the toggle function, I have found that the on-time cannot be changed.
May anyone give me an idea on what I can do to go around this?
Last edited: