try setting the pwm manually (the frequency will be way off ) but its worth a try
I don't have a 16f1828 to test with , I do not think your code is incorrect but at this stage that's all I can offerCode:t2con=4 PR2 = 255 CCPR1L = adval ;set pwm ccp1con=12
Bookmarks