Thanks. I think I didn't blow the PIC pin. When the pwm appears low, I wrote another code utilizing same setting (still with the ccp1/RC2 pin as output). I then generated another pwm in code (not using ccp1). That worked fine with the output up to 5 volt. I also set the pin direction to output (trisc.2 = 0b;). The scope setting is okay since I was getting it right with the second setup. Thanks again. Yau -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Black Moon Sent: Sunday, February 12, 2006 7:25 AM To: piclist@mit.edu Subject: RE: [PIC] Very low output on ccp1 for pwm1 I suspect you either A: blew the pin, B: did'nt set the pin direction register correctly, C: have your scope probes in 10x mode >From: Yau >Reply-To: "Microcontroller discussion list - Public." >To: piclist@mit.edu >Subject: [PIC] Very low output on ccp1 for pwm1 >Date: Sun, 12 Feb 2006 07:02:19 +0300 > >Hi All, >I setup my PIC16F876 for pwm. When I observed the output with a scope, the >output is very low (just about 450mV for high). However, the frequency and >duty circle seems okay. This is even without attaching any load to the pin. > >Many thanks for your anticipated help. > >PS: Am a bit new to PIC > >-- >Kind Regards, > >Yau >ygarba@gmail.com >-- >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist