1 MCC Melody API Reference for AVR® MCU Families
Lists the Libraries, Drivers, PLIB Drivers and System Drivers which support the 8-bit AVR families of microcontrollers in MCC Melody.
Important references
- MCC Melody Technical Reference - Introduction
- MCC Melody Components - Components
AVR MCU Device and Peripheral Support
Supported MCU sub-families can be found in the latest release notes. To aid the selection of a specific AVR MCU, see Table: Peripheral Support by MCU Device:
Getting Started Use Cases
- Required configuration settings of the component (and potentially other components).
- Schematics of the board used, e.g., In Pin Grid View: Select a LED pin as an Output, renaming it to LED.
- Code snippets to add to your application.
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.
- Recommended starting point: UART Driver, Timer/Counter A PLIB Driver and the Data Streamer Library.
- Videos also included for: RTC PLIB Driver, AVR Event System.
Library Reference
MCC Melody Libraries implement 'Middleware' functionality, such as protocols. They are independent of MCU peripherals, providing a highly abstracted portable application program interface.
MCC Melody Components - Libraries
- Data Streamer Library - Implements the Data Stream protocol needed to plot multiple variables on the MPLAB Data Visualizer.
- Data Visualizer Run Time (DVRT) Library - Supports the the DVRT functionality of the MPLAB Data Visualizer to "watch" and plot project variables at run time on the Data Visualizer plugin window.
- EEPROM Library - Provides APIs to support various EEPROM operations for a wide range of I2C EEPROM devices.
- Ethernet Drivers Library - Provides drivers for the ENC28J60 and ENCX24J600 family of ethernet controllers.
- TCP/IP Lite Driver Library - Facilitates the development of TCPIP-Lite applications for 8-bit microcontrollers.
- Temperature Sensor Off-chip Device Driver - Provides an API interface to access a temperature sensor's functions like reading temperature, converting from one scale to another, and selecting power modes.
- USB Device Stack Library - Enables users to define descriptors for selected USB Device classes.
- Off-chip Libraries - Generates firmware drivers for independent off-chip devices that are interfaced with the microcontroller via common communication protocols or GPIO. The following off-chip device drivers are supported:
Driver API Reference
MCC Melody Drivers support both Configuration and Firmware portability, providing an easy to read and efficient abstraction to the functionality of the peripheral.
- Configuration: Easy View + Register Initialization panel.
- Generated code: PERIPHERAL_Initialize( ) + API to develop application functionality.
PLIB Driver API Reference
MCC Melody Peripheral LIBraries (PLIBs) provide an API to support periperal specific functionality. (Optional) Portable interface to support firmware portability, but in general only provide non-portable interface to peripheral functionality.
MCC Melody Components - PLIB Drivers
- Configuration: Easy View + Register Initialization panel.
- Generated code: PERIPHERAL_Initialize( ) + API to develop application functionality.
System Driver API Reference
System Drivers provide system level core functionality, like Clock, Interrupt, Pins. Some of these can be device dependent.
MCC Melody Components - System Drivers