ELEKTOR FORUMS

Please log in to post a reply or subscribe / unsubscribe to topics

Topic: pwm resolution

Author Post

dirk_999

10 posts

Popping In
Popping In

Read post 28-11-2011 21:24

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

GeenBert

81 posts

Frequent Visitor
Frequent Visitor

Read post 29-11-2011 10:06

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.

Please log in to post a reply or subscribe / unsubscribe to topics

Follow Elektor

      

Act now!

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.