4 Monitor Metrology Firmware

It is very important to monitor whether the metrology firmware is working normally for the application code.

When the metrology is running, these control registers may be changed dynamically, but may induce measurement perturbations if large changes are made: CREEP_x_EN, PULSEx_CTRL, P_K_t, Q_K_t, I_K_t, POWER_OFFSET_CTRL, POWER_OFFSET_P, POWER_OFFSET_Q, POWER_OFFSET_P_x, POWER_OFFSET_Q_x, K_Ix, K_Vx, CAL_M_Ix, CAL_M_Vx, CAL_PH_Ix, CAL_PH_Vx and CAPTURE control registers.

These registers will be cleared by metrology firmware automatically when the task is finished: V_MAX_RESET, I_MAX_RESET and CAPTURE_EN (one-shot mode).

When the metrology firmware works normally, three interrupts will be generated: HALF_CYCLE_IRQ, CYCLE_IRQ and INTEGRATION_IRQ.

  • HALF_CYCLE_IRQ is generated every half line cycle.
  • CYCLE_IRQ is generated every full line cycle.
  • INTEGRATION_IRQ is generated every integration period.

When these interrupts are generated, related status registers and accumulated quantities were updated and may be copied using the application processor.

It is recommended that the application monitor the metrology library running state. If the metrology firmware flags an abnormally, the application code must reset the metrology firmware and restore control register settings.