docwisdom
- 14th April 2006, 00:31
I am using the hardware pwm on the 16f767 to control some LEDs. The control values are from 0-255, but when you reach each limit, you can roll over and start again. how do i put stops on the high and low limits to prevent rollover?
I mainly want to do this because these LEDs are insanely bright and take about an amp a piece. If someone was to take the level down while looking at it and rolled past 0 to 255, it could spell bad news.
thanks
-brian
ps. I am using all 3 hardware pwms so all settings are configured manually.
I mainly want to do this because these LEDs are insanely bright and take about an amp a piece. If someone was to take the level down while looking at it and rolled past 0 to 255, it could spell bad news.
thanks
-brian
ps. I am using all 3 hardware pwms so all settings are configured manually.