Hello Unregistered ,
Originally Posted by mark_s Hi, You can try this idea. It will never go under 50% using 125 as a constant. Then divide your adcin by 2 this variable will be 0 to 127 Duty = 125 + adcin/2 Thanks Mark. Did you choose 125 because it's half of the max duty value with the prescaler and PR2 I have above?
Forum Rules
Bookmarks