1.5 CF Pulses
The metrology firmware can output the following pulses simultaneously, and they are controlled by PULSE0_CTRL, PULSE1_CTRL, and PULSE2_CTRL:
- 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 “PIC32CXMTx Metrology Reference Guide (DS50003461)” 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.