Hi,
No, you can not produce a PWM signal with a LESS than one cycle - and that's not a PBP limitation. What you can do to make it fade up/down faster is to decrease the number of discrete dutycycles that it "passes thru" by using the STEP directive in the FOR-NEXT loop, like you do when fading downOr you could increase the oscillator frequency which in turn will increase the frequency generated by the PWM command.Code:For Duty = 0 to 255 STEP 5 PWM LED_0, Duty, Clycle NEXT
/Henrik.




Bookmarks