2 MPLAB® Harmony Smart Energy Multi-Channel Metrology

The Smart Energy Multi-Channel Metrology solution provided in Harmony is oriented to dedicated PIC32CXMTC devices , which are Dual Core microcontrollers, with each Core dedicated to different tasks.

It is built up from 2 different pieces:
  • The Metrology Library. Which is provided as binary file. It runs in Core 1 (Coprocessor) and it is fully dedicated to interact with external Metrology AFEs (MCP3913 or MCP3914), getting the raw data provided and performing all the required ADC and DSP operations to convert it to convenient measurements.
  • The Multi-Channel Metrology Driver and Demo Multi-Channel Application. Which run in Core 0 (Main processor). Metrology Multi-Channel Driver is in charge of handling Core 1 events and further calculations to provided data to present the measurements in real-world format (Amperes, Volts, Watts, and so on). The Multi Channel Demo Meter Application serves not only as a standard example but it is an implementation of various components commonly found in applications measuring or monitoring energy. This allows potential users to become familiar with these components and learn how to implement them using the Microchip Metrology solution. It is a powerful tool for validating of the Multi-Channel Metrology capabilities underneath, so the user can verify that the needed requirements are fulfilled.

The following figure depicts the above explained 2 part solution:

Figure 2-1. Dual Core Architecture
This documentation covers the parts running in the Main Processor, this is, the Multi-Channel Metrology Driver and the Demo Multi-Channel Application.