2 Getting Started with MCC Melody

Video and hands-on training to quickly get you up and running with MCC Melody and how the Getting Started Use Cases work.

Getting Started Use Cases:

To get started with MCC Melody, training materials have been built into the API references for each MCU Family supported: AVR, PIC16F/PIC18F and dsPIC33).
Note: Find a supported MCU here: MCC Melody API References and MCU Device Support.
Many components have a "How to Use the …." section, which include a number of use cases consisting of the following:
  1. Required configuration settings of the component (and potentially other components).
  2. Schematics of the board used, e.g., In Pin Grid View: Select a LED pin as an Output, renaming it to LED.
  3. Code snippets to add to your application.
The use cases can be run on any of the MCUs associated with the that MCU Families API reference and some even more broadly. Only minor modifications will be required to run the use cases on a particular board, e.g., selecting the analog input channel.

Videos: Some of the use cases include videos, which give a high level overview of how to run the use cases. These may be especially useful if new to the MPLAB Tools Ecosystem.

Note: While the videos give an overview of the use case, always check the configuration settings and code snippets for the latest use case version. Use cases will be updated when changes or improvements are made to the component's configuration setting options or the generated API.
Videos of MCC Melody use case code snippets for AVR:Videos of MCC Melody use case code snippets for PIC16F/18F:
Microchip University Courses
MCC Melody API Reference for AVR® MCUsMCC Melody API Reference for PIC® MCUs

Starting with a MPLAB® Discover Example for MCC Melody:

  1. In MPLAB® Discover, select MCC Melody in the Content-Type Column, to show only MCC Melody based projects.
    Note: See Discover Tips & Tricks> Tags > MCC Melody.
  2. Select open in Xpress to work online.
    Note: You can also download examples to open in MPLAB Xpress (see right column for instructions).
  3. Click on the MCC icon to open MCC Melody.
  4. Use MCC to create, configure, and generate a new project for your selected micro-controller.
  5. Program, debug and execute your embedded software.
  6. Commit changes to GitHub to save progress or download a project to continue working offline in MPLAB® X IDE.

Working Offline in MPLAB® X IDE/MCC Plugin:

  1. Obtain a (development) board with a supported PIC16F/18F, PIC24/dsPIC or AVR device.
    Note: Find a supported MCU here: MCC Melody API References and MCU Device Support.
  2. Install MPLAB® X IDE, Compiler and MCC, by separately installing the following:
  3. Select MCC Melody in Content Manager. Once you have clicked finish, MCC Melody will open.
  4. Use MCC to create, configure, and generate a new project for your selected processor.
  5. Program, debug and execute your embedded software.

Content Manager, Builder and Installation:

Recent highlights: DV Run Time Library
Related Microchip University Courses
Overview of the Microchip Code Configurator (MCC) Content Manager (CM)This course provides basic information on how to navigate and create a new project using the Content Manager. The class starts with installation and then goes through the steps of creating a project and also shows you how to find helpful resources.
Introduction To MPLAB® X IDEThis class covers the basics of the MPLAB X IDE. (Dec 2020)
Visual Debugging with MPLAB® Data VisualizerIn this class, we’ll use MPLAB® Data Visualizer as a plugin to MPLAB X IDE to plot real-time data from PIC®, AVR® and SAM MCUs using the Curiosity Nano and Xplained Pro platforms. (Feb 2021)