App Note: Combining peripherals to implement a high resolution PWM

MCPapp

Here’s an app note from Microchip describing how to use the configurable logic cell (CLC) and the numerically controlled oscillator (NCO) peripherals to generate a high resolution pulse-width modulation signal. These peripherals are relatively new to Microchip’s product line and can only be found on some PIC10F and PIC16F devices:

By itself, the NCO peripheral cannot produce a PWM signal, but we will change its behavior by adding some logic using the CLC  to produce a PWM output. We will achieve this by using the conventional PWM as a clock source to trigger the PWM period, and use the NCO to determine the pulse width.

1 comment on this post.
  1. Mats Engstrom (@matseng):

    Interesting technique. I really must read this app note properly some day…

Leave a comment





Notify me of followup comments via e-mail. You can also subscribe without commenting.