Categories

App Note: Combining peripherals to implement a high resolution PWM

Posted on Sunday, December 30th, 2012 in app notes by DP

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.

This entry was posted on Sunday, December 30th, 2012 at 1:00 pm and is filed under app notes. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “App Note: Combining peripherals to implement a high resolution PWM”

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

Leave a Reply

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

Recent Comments

  • Paul Campbell: I'm old enough that I started programming with punched cards .... each card had a sequence number in the last few characters. A friend once...
  • Ian: test comment on /blog/ page
  • ian: No, that's exactly how it should be :) Sorry about missing names on comments, the theme is being reworked as we speak.
  • J. Peterson: Nice writeup. It looks like some of the formatting for your command examples needs some missing newlines?
  • Geert Jordaens: I'm not sure what kind of licensing I have to add since it is a fairly straight forward implementation of the adaptive Huffman Decoding. For...