4 Monitor Metrology Firmware
It is essential to monitor the operation of the metrology firmware to ensure it is functioning correctly with 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, PULSEx_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.
The following 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).
In the default configuration for the provided metrology examples, the following three interrupts will be generated:
- HALF_CYCLE_IRQ – Generated every half line cycle
- CYCLE_IRQ – Generated every full line cycle
- INTEGRATION_IRQ – Generated every integration period
When these interrupts are generated, related status registers and accumulated quantities are already updated and may be copied using the application processor.
It is recommended that the application monitors the metrology library running state. If the metrology firmware flags are abnormal, the application code must reset the metrology firmware and restore control register settings.
