1.3.1.3.5 Demo Modes

The Demo Meter application operates in these modes:

  • Normal or measurement operating mode: The meter firmware enters in normal mode after the Metrology DSP is started and running. This mode supports the meter application taking measurements, LCD management, communication with the user through the command terminal and anti-tampering features demonstration (tamper detection, with timestamp registering and automatic erasing of GPBR registers).
  • Battery: The Demo Meter application enters a low power mode (back-up mode) in two ways:
    • When the user types the command “DCB” in the console
    • When the “Scroll-up” button is pressed and, then, without releasing it, “Scroll-down” is also pressed

    The system wakes up when the user pushes the “TAMPER” or “FWUP” buttons if the main power supply was restored

    Note: The user can easily change the code to add other transition modes to low power mode. In some cases, it could be useful to switch to low power mode when a power outage is detected or depending on the micro controller voltage supply monitor information. These transitions could be combined with writing on external memory to store relevant data.
  • Restart: The restart mode is used to recover from an unexpected issue or when a software reset is triggered. It resets the processor.

At power-up, the Demo Meter application initializes the PIC32CXMTx-DB demo board and restores the metrology registers according to the information stored in non-volatile memory, or to the default values, if no information was stored in memory. Energy records are also restored. After that, it transitions to Normal mode.