Page 1 of 1

Hi, I have a question with the use of the PWM

Posted: Thu Nov 30, 2017 11:28 am
by Francisco Cabrera
Hi, I have two question with the use of the PWM....
The first one is, If I use PWM of 10 bit, because I do not have 1023, instead of 255?

Re: Hi, I have a question with the use of the PWM

Posted: Thu Nov 30, 2017 11:31 am
by Francisco Cabrera
And the second question is,Since it is possible to choose for example a frequency of 10khz? :? :?:.......regards

Re: Hi, I have a question with the use of the PWM

Posted: Thu Nov 30, 2017 1:16 pm
by LeighM
Hi,

1) You need to set the PWM property "Period Overflow" value to 1023 (this is only possible on target processors that support it)
2) The frequency will be calculated from the "Period Overflow" and the "Prescaler" values, and displayed. But you cannot set the frequency directly.

Hope that helps
Leigh

Re: Hi, I have a question with the use of the PWM

Posted: Thu Nov 30, 2017 3:23 pm
by Francisco Cabrera
Thank you very much for answering, Already I could have fitted the frequency to 10khz, But the rollover lowers 120, :(
the problem is for microprocessor of 8 bits...18f4620 I was thinking that on having chosen the pwm setdutyCycle10bits, Already it would work to 10 bits

PD: Again thank you very much for the help