Jump to main content

# 1.2.5.5 Metrology Driver Configurations

Metrology Driver is configured through its MCC component.

Figure 1-48.Metrology Driver Configuration Overview

Metrology Driver in Demo Meter examples comes configured to demonstrate different functionalities.

By default, 50 Hz Mains frequency is selected.

AFE Selection is set to the one available in the Development Boards:

- ATSENSE203 in PIC32CXMTSH-DB
- ATSENSE301 in PIC32CXMTC-DB (as seen in the figure above)

The Physical Channels are set to match the connections between AFE and physical lines in the Development Boards.

For PIC32CXMTC-DB the configuration is the following:

Figure 1-49.Physical Channels Configuration

Creep Thresholds are disabled by default.

Figure 1-50.Creep Thresholds
Pulses Configuration are the following:

- Pulse 0 is configured to output Net Active Energy, with High polarity, pulse width of 464, and a Meter Constant providing a rate of 3200 pulses/kWh
- Pulse 1 is configured to output Net Reactive Energy, with High polarity, pulse width of 464, and a Meter Constant providing a rate of 3200 pulses/kWh
- Pulse 2 is disabled

Figure 1-51.Pulses Configuration

Full Line Cycle and Half Line Cycle notifications are enabled in the provided examples, as they are used to retrieve per-cycle measurements and to indicate Events by the example application.

Other Notifications are not enabled.

Figure 1-52.Additional Notifications

The Harmonics Analysis is enabled for all channels, but no harmonic is selected by default. This means that the harmonics are not calculated at start-up, and the user will trigger this analysis on demand using the Console Commands available.

Figure 1-53.Harmonics Analysis Configuration

RTOS Settings define the Priority and Stack Size for the Metrology Driver Task.

Figure 1-54.RTOS Settings

Rev: E