2025-03-26 8:40 AM
Hello,
I have developed a custom board using the STPM33 to measure power consumption. The schematic is identical to the evaluation board.
I can communicate with the STPM33 via SPI and have verified that the data I write is correctly stored in the device.
My system is connected to my room AC outlet (with a stable voltage), and the device under test draws a steady current over time. However, when reading register 0x48 to obtain RMS voltage and RMScurrent for channel 1, I observe that both values increase over time, even though the voltage should remain around 120V AC (If I wait 5 imn the RMS voltage is 160V).
Do you have any insights into why this might be happening?
Here are my register values:
DSP_CR1 (0x00): 20 00 00 A0
DSP_CR2 (0x02): 20 00 00 A0
DSP_CR3 (0x04): 08 80 44 E0
DFE_CR1 (0x18): 03 27 03 27
DFE_CR2 (0x1A): 03 26 03 26
All other registers are left at their default values.
Thank you for your help!
2025-03-26 9:45 AM
I just found out that the register 0x00, ENVREF1, and TC1 are always reset to zero. Any idea why?