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.

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *

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