4.8 Demo Meter Firmware Application
The Meter Firmware manages the following modules or interfaces:
- Firmware power-up sequence management
- Metrology library binary load in Core 1
- Metrology Initialization
- Meter configuration and status:
- Constants: IA gain, IB gain, IC gain, IN gain, Channels enable/disable, Voltage Max, Currents(A, N) Max, Voltage Scaling, Current Scaling, Volt, Freq, Accumulation, Starting current, Sag threshold, Sag Counts, Rogowski integrator, harmonic enable/disable, DSP data monitor setup
- Calibration for amplitude and phase of voltages and currents
- Timer services
- Metrology Interface
- LCD display
- User communication (terminal interface)
- External Non-Volatile Memory management
Warning: The provided source code example shows how to
read and store several metrology parameters in the external non-volatile memories
populating the evaluation boards. The customer must decide what are the parameters
to be saved as well as when and how often the memory is written. Additionally, it is
recommended that the customers decide the saving strategy best fitting their
application, taking into account the endurance of the selected external memory. For
example, the application could save periodically or when the value to be saved
increments above a threshold or when a power outage is detected. Some applications
use wear-leveling strategies in case the external memory endurance could be reached
before the expected life of the design.