The STPM01 and STPM10 devices are energy meter ASSPs (Application Specific Standard Products) designed to address a wide range of electricity metering requirements thanks to their built-in functionalities as signal conditioning, signal processing, data conversion, input/output signals and voltage reference. STPM10 is dedicated for peripheral use only in microcontroller based applications, while STPM01 is able to work as a peripheral but also as a standalone device, since it can permanently store configuration and calibration data. Both the devices have an SPI port to write configuration parameters and read all the information on the line energy from their internal registers. Measured data (like active, reactive and apparent energy, VRMS, IRMS, instantaneous voltage and current, line frequency, device status etc.) should be read by the microcontroller at a fixed time interval to be further processed. This application note describes the SPI protocol to read measured data from STPM01 and STPM10 in a single-phase energy meter and how these readings should be processed by the application.
The document details the SPI interface for STPM01 and STPM10 Application Specific Standard Products (ASSPs) used in single-phase energy metering. It explains how to connect the devices to a microcontroller and defines the specific pin functions (SCS, SYN, SCL, SDA) required for communication.
The guide covers SPI operations including remote reset requests, writing configuration data to registers, and reading internal data registers containing energy and voltage/current measurements. It also provides instructions on data processing, parity checks, and converting raw register values into actual measured quantities.
| Data read speed | 32 MHz |
|---|---|
| Data write speed | 100 kHz |
Connect MISO to SDA, SCLK to SCL, SS to SCS, and use a general purpose I/O pin for SYN.
No, they are automatically reset by the power on reset (POR) circuit when Vcc crosses 2.5 V.