1.5 CF Pulses
The metrology firmware can output three pulses simultaneously; they are controlled by PULSE0_CTRL, PULSE1_CTRL and PULSE2_CTRL, respectively:
- PULSE0_CTRL controls the pulse output from PD17
- PULSE1_CTRL controls the pulse output from PD18
- PULSE2_CTRL controls the pulse output from PD19
The pulse module supports the following features: ENABLE, DETENT, POLARITY, OVERRIDE, ACC_HOLD, TYPE and WIDTH.
All features can be changed at run time except for the POLARITY feature. If POLARITY changed, it will take effect only after the metrology is reset.
Refer to the latest “Microchip Smart Meter PIC32CXMTx Metrology Data Sheet” for a detailed description.
Example:
Enable the first pulse, and set DETENT = DETENT_ABSOLUTE, negative polarity, pulse type = TYPE_P_T_F (total active energy), and the pulse width is 40 ms.
Then, it is recommended to set PULSE_CTRL0 = 0x90014880.