The Elektor Forum will close. See also this link. From Friday March 1st it is no longer possible to log in to the forum. However, the content of the forum will remain visible until the end of March. As of April 1st the forum will definitely go off the air.

pwm resolution

An Elektor Distance Learning Course

Postby dirk_999 » Mon Nov 28, 2011 12:00 am

can anyone clarify the following sentence p234

depending on the pwm frequency the resolution of the width of the pulses will vary. The lower the frequency the higher the resolution. The limit for the resolution is 10 bits.

thanks in advance
dirk_999
 
Posts: 11
Joined: Thu Jan 02, 2014 10:49 am

Postby geenbert » Tue Nov 29, 2011 12:00 am

This is basically an ad verbum description of the formula on the next page which shows the relationship between PWM resolution and frequency.

The limit for the resolution is 10 bits, meaning the resolution that can be entered into the PWM module is 10 bits or less. The lines following your quote explains this: 8 bits are in ccpr1l and 2 bits are in ccp1con, for a total of 10 bits. So even if the formula would give a higher resolution you still cannot use more than 10 bits. This is shown as an example on the next page.
geenbert
 
Posts: 83
Joined: Thu Jan 02, 2014 10:41 am


Return to Programming Embedded PIC Microcontrollers using Assembly, C and Flowcode

Who is online

Users browsing this forum: No registered users and 1 guest