Hi Peter, I loaded up the example into MPLAB-X, compiled and ran the simulator=20 since I don't have a part. The example code runs fine. The output will=20 never blink, but will have 32 distinct DutyCycle levels. If it is=20 working, you might see the LED intensity vary slightly. A scope on the=20 output pin would be better for checking the duty cycle changes. Comparing the hex file I generated vs. the included one -- they are=20 different. But I'm using the free bloatware version of xc and I'm sure=20 the Microchip employees are using the 'omniscient' version. Can you=20 compile the example and get that to run? And as far as trusting example code, I try to live by 'trust but verify'. Bill On 6/28/2016 9:59 AM, Peter P. wrote: > The pic12f1822 pwm example code from microchip (package 12F_1822_PWM.zip = name > "Setting up the standard PWM peripheral on a PIC12F1822" linked from pic1= 2f1822 page > does not seem to work. I programmed the included hex file into a pic 12f1= 822, the code > in the pic verifies okay wrt the file, but the led turns on dimly and sta= ys that way. 2.3V > measured (integrated) on pin 5. All other pins behave as expected, MCLR i= s pulled up with > 10K to +5V. > > Does anyone actually check these examples? Has anyone made this particula= r example > work as is (hex file in package, there is only one). I might have a bad p= ic but I have a doubt. > > Along the same line of thought, are pic code example packages to be trust= ed as is, or does > one exercise, shall we say, "ard**no code level verification", before use= .. I had expected the > silly led to blink, was testing a new programmer actually. Eventually one= needs to trust > someone, eh? I'm okay with building everything from scratch, even the pro= grammer and > its driver if needed, did that before, will again, but... ?! One can wast= e days with these things > for no good reason. > > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .