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

  • Drone: So these go for around $330 USD and NO published calibration procedure online or otherwise? Given what's inside - I don't think I'll be considering...
  • Pekka Akselin: This is ridiculous!? :-) We are back at 256(!) byte EPROMs that needed multiple, a handful, of voltages to run! :-(
  • KH: Let's try a back-of-envelope calc balancing energies. From MCP1700 datasheet, there are graphs for a 200mA load step. Estimate the energy shortfall as 12uJ. Say...
  • Daniel: It's been a week and my comment is still awaiting moderation. Apparently the CIA doesn't want their involvement known?
  • KH: Agree, so okay, I guess he must have learned from somewhere. 100nF and 1000uF is so far apart, that was jarring; it's more magic incantation...