App Note: Combining peripherals to implement a high resolution PWM

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


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

  • Nathan Johnson: 100 channels. Not many are legal in any given area. Be sure to comply with local laws.
  • William Brodie-Tyrrell: It's getting to the point where it's cheaper and definitely easier to use a Pi Zero or similar and a $20 3G USB dongle. Power...
  • KH: IIRC most of the actual operating system of modern HDDs is in one of the platter(s); the stuff on the 25VF010 is a bootup firmware......
  • Trev: I don't know of any inexpensive 3G modules (prices start around $US 50), but it does explain why 2G modules are relatively inexpensive by comparison....
  • Zonie: This site Rocks!