The STSW-STPM004 is embedded in the EVALSTPM-3PHISO evaluation board to implement a complete 3-phase energy meter with low-cost shunt current sensors.
The FW library implements a virtual six-channel STPM3x metrology device with:
- signal acquisition from up to six channels (three phases, each with voltage and current monitoring),
- a processing kernel implementing digital filtering of signals and data processing,
- a set of registers, containing metrology measurements and calibration/configuration data.
The FW exploits the DFSDM filters of the STM32F413RH to convert the six bitstreams into 24-bit voltage and current data, at 200 us rate. All the metrology parameters are computed in real time on a 200 us basis.
The STPM3x-like registers allow the application access to the virtual device (as 3xSTPM32 devices), which can be read/configured by the hardware interface layer.
The FW also implements a virtual com port communication to easily access the internal parameters to read metrology data, to modify the internal configuration for a high flexibility of the application, and to calibrate the board.