1.4 Pulse Test Constant

The metrology library version v03.04.00 introduces significant updates to the configuration of pulse test constants. Previously, four registers were used to set pulse test constants:

  • P_K_t: Active energy pulse generator constant
  • Q_K_t: Reactive energy pulse generator constant
  • I_K_t: Current energy pulse generator constant
  • S_K_t: Apparent energy pulse generator constant

In version v03.04.00, these registers have been replaced with the following:

  • PULSE0_K_t: Pulse test constant for PULSE 0
  • PULSE1_K_t: Pulse test constant for PULSE 1
  • PULSE2_K_t: Pulse test constant for PULSE 2

The units for PULSE0_K_t, PULSE1_K_t, and PULSE2_K_t are determined by the energy type configuration of the corresponding pulse, which is set through the PULSE0_CTRL, PULSE1_CTRL, and PULSE2_CTRL control registers:

  • [Wh/pulse] for active energy
  • [VARh/pulse] for reactive energy
  • [VAh/pulse] for apparent energy
  • [Amp2-h/pulse] for current energy

This new register structure enables the configuration of multiple pulses with the same energy type, each with distinct pulse constants, providing greater flexibility in system setup.

Refer to the “PIC32CXMTx Metrology Reference Guide (DS50003461)” for a detailed description.