PWM for motor control with Microchip Curiosity and MPLAB Code Configurator

October 7, 2015

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.)

 
Previous Video
iCOP Technology - DMP

iCOP Technology - DMP

A video showing the behind the scenes of mass production, as well as a tour of ICOPs laboratory.

 

 
Next Video
Five Minutes With…Scott Hanson, CTO, Ambiq Micro

Five Minutes With…Scott Hanson, CTO, Ambiq Micro

Ambiq Micro has developed a technology they call SPOT, which stands for Subthreshold Power Optimized Techno...

 

 
 

var disqus_shortname = 'embedded'; var disqus_identifier = '292843218'; var disqus_url = 'https://www.embedded-computing.com/youtube-videos-embedded/pwm-for-motor-control-with-microchip-curiosity-and-mplab-code-configurator';

var disqus_config = function () { this.page.url = disqus_url; this.page.identifier = disqus_identifier; };

(function() { var d = document, s = d.createElement('script');

s.src = '//' + disqus_shortname + '.disqus.com/embed.js';

s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })();

 
 

var Hubs = window.Hubs || {}; Hubs.recommendation = {"enabled":true,"isRecommendationFound":null,"id":46698,"isInternalRule":false,"isAiRule":true,"recommendationAiContent":"all_streams","recommendationAiStreams":[],"source_collection_id":0,"template":{"max_items_to_display":8,"max_item_age":365,"enable_panel":0,"panel_top_auto":1,"panel_top_pixels":20,"panel_delay":0,"override_next":1,"label_recommended":"Recommended","hide_publish_date":0}};