I was having a similar problem until I put 35 volts throught the PWM output by accident - now I'm getting a 0% duty cycle ;-) Experimenting will resume when I dig through my box of bits and liberate another 16f628 from an old project. Dom ----- Original Message ----- From: "Kyrre Aalerud" To: Sent: Thursday, June 12, 2003 1:49 AM Subject: [PIC]: PWM on 16F62x problem? > Well... I ironed out the problem on the last interrupt driven problem. It > was a faulty PIC going into latchup over nothing. > > Anyway. I have another problem. > Because of the annoyance of setting the two LSB in the duty-cycle of the > 16F62x PWM, and since I only needed 8 bits accuracy, I decided to use the > upper byte and simply set the lower to 0,0. Then quadruple the clock for > the pwm and I can write the intended value directly to the byte. Problem is > 100% duty doesn't seem to exist? I set PR2 to 63 and CCPR1L to 255 and > still my multimeter only registers 3.05 Volts on the pwm output? I supply > the circuit with about 5 Volts. > > My understanding is that as long as you overshoot the value of PR2 it > doesn't matter if you don't use the lower bits. You still get 100% duty. > Any ideas? > > Oh, and yes I'm building a cheap speed-controller for my RC-plane :) > (People should be wondering about now.) > > KreAture > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics