4.3.1 Architecture Highlights

The Meter Demo application implements a simple electricity meter. The Energy Metering AFE collects the data from current sensors and voltage inputs and digitizes voltage and current data. This data is processed by the Metrology library, running on Core 1 of the PIC32CXMTx microcontroller. The Demo Meter application runs on Core 0.

The Meter Demo application runs on top of the SEF (device driver, services and components). So, the low level firmware driver (SEF) handles the hardware setup and controls for both Metrology firmware and Meter firmware.

Figure 4-1. Meter Demo Firmware Block Diagram
  • The Microchip SEF (device driver, components and services) provides basic hardware-dependent functionality, like hardware timer, Real time clock, UART, SPI, PWM, sleep control, GPIO access for the pulse output, etc.
  • The Metrology firmware provides the DSP registers for the application to configure the meter and to receive the meter status and the measurements.
  • The Meter firmware exchanges data with the Metrology library via the DSP buffers and communicates with the user via the Terminal interface.