PWM for motor control with Microchip Curiosity and MPLAB Code Configurator

Опубликовано: 03 Март 2026
на канале: Embedded Computing Design
22,696
140

The following describes how to build a simple PWM for motor control applications on the Microchip Curiosity Development board using the MPLAB X Integrated Development Environment (IDE) and MPLAB Code Configurator (MCC). We begin with basic bring up of Curiosity’s onboard PIC16F1619 8-bit MCU running a “Hello, World!” program, and continue to set up a PWM using a Timer based on an FOSC/4 clock. All of this is done using the Microchip MCC without ever writing a single line of code.
Difficulty Level: Beginner
Hardware Required:
• Microchip Curiosity Development Board (Outfitted with PIC16(L)F161X MCUs – Used here is the PIC16F1619)
• USB 2.0 A-Male to Mini-B Cable
Software Required:
• Microchip MPLAB X IDE version 3.05 or later (Used here is MPLAB X IDE version 3.10; Download from www.microchip.com/pagehandler/en-us/family/mplabx/)
• MPLAB XC Compiler (Used here is MPLAB® XC8 Compiler version 1.35; Download from www.microchip.com/pagehandler/en-us/devtools/mplabxc/home.html)
• MPLAB Code Configurator version 2.25 plugin (Download from www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en576270)
Recommended Platforms:
• Windows (x86/x64)
• Linux 32-bit and Linux 64-bit (32-bit compatibility libraries required)
• Mac (Versions 10.X)
Support/Documentation:
• www.microchip.com/curiosity
• www.microchip.com/support
Cost Estimate:
• Microchip Curiosity Development Board – $20 (Before tax, shipping & handling. Available from multiple distributors.)
• USB 2.0 A-Male to Mini-B Cable – $5 (Rough estimate. Available from multiple distributors.)