<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://ez.analog.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Q&amp;amp;A - Recent Threads</title><link>https://ez.analog.com/energy-metering/f/q-a</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Wed, 28 Oct 2026 09:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://ez.analog.com/energy-metering/f/q-a" /><item><title>Register that monitors Total Harmonic Distortion (THD) of the line-to-line voltages and currents in AD-PQMON-SL</title><link>https://ez.analog.com/thread/606665?ContentTypeID=0</link><pubDate>Wed, 28 Oct 2026 09:23:48 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:a38e6988-8652-44db-bd91-6811969e1304</guid><dc:creator>YongLawrence</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/606665?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606665/register-that-monitors-total-harmonic-distortion-thd-of-the-line-to-line-voltages-and-currents-in-ad-pqmon-sl/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware:&lt;/strong&gt; AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;ADE9430 already provide total harmonic distortion for each current and voltage channel&lt;/li&gt;
&lt;li&gt;Does ADE9430 provide Total Harmonic Distortion (THD) of the line-to-line voltages and current?
&lt;ul&gt;
&lt;li&gt;thdV3, thdV12, thdV23, thdV31, thdI1, thdI2, thdI3&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting Steps I Have Taken:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;From &lt;a href="https://github.com/analogdevicesinc/no-OS/blob/498d01fe981cd7f71929336123a8813070790827/projects/eval-pqmon/src/common/uart_export.c#L102"&gt;no-OS/projects/eval-pqmon/src/common/uart_export.c at 498d01fe981cd7f71929336123a8813070790827 &amp;middot; analogdevicesinc/no-OS&lt;/a&gt;, thd is stored in params1012Cycles.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.analog.com/resources/eval/user-guides/ade9430"&gt;ADE9430 Technical Reference Manual [Analog Devices Wiki]&lt;/a&gt; didn&amp;rsquo;t mentioned Total Harmonic Distortion (THD).&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ADE9113 Voltage and Current Measurement Connection Inquiry</title><link>https://ez.analog.com/thread/606604?ContentTypeID=0</link><pubDate>Fri, 23 Oct 2026 06:51:17 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:a98de0bf-0655-4105-b72b-ee8da45bd784</guid><dc:creator>KHN</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/606604?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606604/ade9113-voltage-and-current-measurement-connection-inquiry/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We are evaluating the ADE9113 for a high-voltage isolated DC measurement application.&lt;/p&gt;
&lt;p&gt;Our goal is to simultaneously measure:&lt;/p&gt;
&lt;p&gt;&amp;bull; VP-E (voltage between P and PE)&lt;br /&gt;&amp;bull; VN-E (voltage between N and PE)&lt;br /&gt;&amp;bull; Output current (Iout) using a shunt resistor&lt;/p&gt;
&lt;p&gt;A conceptual diagram is attached for reference.&lt;/p&gt;
&lt;p&gt;Using the two voltage channels (V1 and V2) and one current channel (IP/IM) of the ADE9113,&lt;/p&gt;
&lt;p&gt;we would like to know whether there is a recommended connection method that allows simultaneous measurement of:&lt;/p&gt;
&lt;p&gt;&amp;bull; VP-E&lt;br /&gt;&amp;bull; VN-E&lt;br /&gt;&amp;bull; Iout&lt;/p&gt;
&lt;p&gt;In our application, VP-N can be calculated in software as:&lt;/p&gt;
&lt;p&gt;VP-N = VP-E &amp;minus; VN-E&lt;/p&gt;
&lt;p&gt;Could you please advise on:&lt;/p&gt;
&lt;p&gt;1. Recommended AGND reference connection.&lt;br /&gt;2. Recommended V1P/V1M and V2P/V2M connections.&lt;br /&gt;3. Any input common-mode limitations that should be considered.&lt;br /&gt;4. Whether this measurement configuration is supported or recommended.&lt;br /&gt;5. Any reference circuits or application notes relevant to this use case.&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/357/3060.fig1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Accuracy ade7758</title><link>https://ez.analog.com/thread/606511?ContentTypeID=0</link><pubDate>Thu, 15 Oct 2026 11:31:12 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:482867d0-a5b7-42cd-bdcb-e8d32f47af97</guid><dc:creator>Hava</dc:creator><slash:comments>8</slash:comments><comments>https://ez.analog.com/thread/606511?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606511/accuracy-ade7758/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;These are my results&amp;nbsp; of calibration&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t&amp;nbsp; use power offset&amp;nbsp; calibration&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My results are&lt;/p&gt;
&lt;p&gt;Calibr started. Please wait&lt;/p&gt;
&lt;p&gt;APCFNUM=1&lt;/p&gt;
&lt;p&gt;VARCFNUM=1&lt;/p&gt;
&lt;p&gt;varcf_expected=1.96&lt;/p&gt;
&lt;p&gt;varcfden=425&lt;/p&gt;
&lt;p&gt;apcf_nominal=833.33&lt;/p&gt;
&lt;p&gt;apcf_expected=2.00&lt;/p&gt;
&lt;p&gt;apcfden=416&lt;/p&gt;
&lt;p&gt;WDIV=1&lt;/p&gt;
&lt;p&gt;VADIV=1&lt;/p&gt;
&lt;p&gt;VARDIV=1&lt;/p&gt;
&lt;p&gt;RMSOffset_Itest: VNOM=220V=1057840, Itest=10A=81803, PF=1&lt;/p&gt;
&lt;p&gt;Press Enter key...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;HIGH p=0 irms=158042&lt;/p&gt;
&lt;p&gt;HIGH p=0 vrms=1068015&lt;/p&gt;
&lt;p&gt;HIGH p=1 irms=157928&lt;/p&gt;
&lt;p&gt;HIGH p=1 vrms=1056534&lt;/p&gt;
&lt;p&gt;HIGH p=2 irms=157833&lt;/p&gt;
&lt;p&gt;HIGH p=2 vrms=1055949&lt;/p&gt;
&lt;p&gt;RMSOffset_Itest: Vmin=VF/20=18V=85125, Imin=IF/500=0.240A=2200, PF=1&lt;/p&gt;
&lt;p&gt;Press Enter key...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;LOW p=0 irms=3947&lt;/p&gt;
&lt;p&gt;LOW p=0 vrms=89685&lt;/p&gt;
&lt;p&gt;LOW p=1 irms=3942&lt;/p&gt;
&lt;p&gt;LOW p=1 vrms=84884&lt;/p&gt;
&lt;p&gt;LOW p=2 irms=3932&lt;/p&gt;
&lt;p&gt;LOW p=2 vrms=86657&lt;/p&gt;
&lt;p&gt;irmsos=-73 vrmsos=-72&lt;/p&gt;
&lt;p&gt;irmsos=-72 vrmsos=-6&lt;/p&gt;
&lt;p&gt;irmsos=-68 vrmsos=-37&lt;/p&gt;
&lt;p&gt;FinalizeRms: VNOM=220V=1057840, Itest=10A=81803, PF=1&lt;/p&gt;
&lt;p&gt;Press Enter key...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;FinalizeRms p=0 irms=157936&lt;/p&gt;
&lt;p&gt;FinalizeRms p=0 vrms=1061704&lt;/p&gt;
&lt;p&gt;FinalizeRms p=1 irms=157648&lt;/p&gt;
&lt;p&gt;FinalizeRms p=1 vrms=1053691&lt;/p&gt;
&lt;p&gt;FinalizeRms p=2 irms=157878&lt;/p&gt;
&lt;p&gt;FinalizeRms p=2 vrms=1053341&lt;/p&gt;
&lt;p&gt;V_per_LSB= 0.000211923&lt;/p&gt;
&lt;p&gt;I_per_LSB= 0.000063317&lt;/p&gt;
&lt;p&gt;V_per_LSB= 0.000213535&lt;/p&gt;
&lt;p&gt;I_per_LSB= 0.000063432&lt;/p&gt;
&lt;p&gt;V_per_LSB= 0.000213606&lt;/p&gt;
&lt;p&gt;I_per_LSB= 0.000063340&lt;/p&gt;
&lt;p&gt;AVRMSGAIN p=0 v_raw=1061911 v_meas=225.04 v_target=225.00&lt;/p&gt;
&lt;p&gt;Skipping gain calc for p=0 (Error &amp;lt; 0.5V)&lt;/p&gt;
&lt;p&gt;AVRMSGAIN p=1 v_raw=1054606 v_meas=225.20 v_target=225.00&lt;/p&gt;
&lt;p&gt;Skipping gain calc for p=1 (Error &amp;lt; 0.5V)&lt;/p&gt;
&lt;p&gt;AVRMSGAIN p=2 v_raw=1053868 v_meas=225.11 v_target=225.00&lt;/p&gt;
&lt;p&gt;Skipping gain calc for p=2 (Error &amp;lt; 0.5V)&lt;/p&gt;
&lt;p&gt;A:0 Gain:0 | B:1 Gain:0 | C:2 Gain:0&lt;/p&gt;
&lt;p&gt;GAIN_Step6_Itest: Apply VNOM=220V, Itest=10A, PF=1&lt;/p&gt;
&lt;p&gt;Press Enter key to start...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;GAIN_REG=1&lt;/p&gt;
&lt;p&gt;PH0 [WG:-48, VAG:22, W_raw:2815, VAH_raw:2827, WH_exp:2782.21, VAH_exp:2842.40]&lt;/p&gt;
&lt;p&gt;PH1 [WG:5, VAG:61, W_raw:2779, VAH_raw:2801, WH_exp:2782.21, VAH_exp:2842.40]&lt;/p&gt;
&lt;p&gt;PH2 [WG:0, VAG:64, W_raw:2782, VAH_raw:2799, WH_exp:2782.21, VAH_exp:2842.40]&lt;/p&gt;
&lt;p&gt;GAIN_Step6_Itest: Apply VNOM=220V, Itest=10A, PF=1&lt;/p&gt;
&lt;p&gt;Press Enter key to start...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;Phase 0 -&amp;gt; watthr_raw_pf1: 2785 ,vah_raw_pf1:2842&lt;/p&gt;
&lt;p&gt;Phase 1 -&amp;gt; watthr_raw_pf1: 2787 ,vah_raw_pf1:2844&lt;/p&gt;
&lt;p&gt;Phase 2 -&amp;gt; watthr_raw_pf1: 2785 ,vah_raw_pf1:2844&lt;/p&gt;
&lt;p&gt;GAIN_VAR_Itest: VNOM=220V, Itest=10A, PF=0&lt;/p&gt;
&lt;p&gt;Press Enter key to start...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;xVARG:16&lt;/p&gt;
&lt;p&gt;varh_raw:2770&lt;/p&gt;
&lt;p&gt;varh_expected:2780.97&lt;/p&gt;
&lt;p&gt;xVARG:61&lt;/p&gt;
&lt;p&gt;varh_raw:2740&lt;/p&gt;
&lt;p&gt;varh_expected:2780.97&lt;/p&gt;
&lt;p&gt;xVARG:60&lt;/p&gt;
&lt;p&gt;varh_raw:2741&lt;/p&gt;
&lt;p&gt;varh_expected:2780.97&lt;/p&gt;
&lt;p&gt;GAIN_VAR_Itest: VNOM=220V, Itest=10A, PF=0&lt;/p&gt;
&lt;p&gt;Press Enter key to start...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;Phase 0 -&amp;gt; VARHR Raw: 2751&lt;/p&gt;
&lt;p&gt;Phase 1 -&amp;gt; VARHR Raw: 2749&lt;/p&gt;
&lt;p&gt;Phase 2 -&amp;gt; VARHR Raw: 2752&lt;/p&gt;
&lt;p&gt;Wh/LSB= 0.000187433&lt;/p&gt;
&lt;p&gt;VAh/LSB= 0.000183673&lt;/p&gt;
&lt;p&gt;VARh/LSB= 0.000185915&lt;/p&gt;
&lt;p&gt;Wh/LSB= 0.000187298&lt;/p&gt;
&lt;p&gt;VAh/LSB= 0.000183544&lt;/p&gt;
&lt;p&gt;VARh/LSB= 0.000186051&lt;/p&gt;
&lt;p&gt;Wh/LSB= 0.000187433&lt;/p&gt;
&lt;p&gt;VAh/LSB= 0.000183544&lt;/p&gt;
&lt;p&gt;VARh/LSB= 0.000185848&lt;/p&gt;
&lt;p&gt;ADE7758_PHASE_Itest: Apply VNOM=220V, Itest=10A, PF=0.5&lt;/p&gt;
&lt;p&gt;Press Enter key when ready to start...&lt;/p&gt;
&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;[PHASE_CAL] Phase 0: watthr_pf05_raw = 1364&lt;/p&gt;
&lt;p&gt;[PHASE_CAL] Phase 1: watthr_pf05_raw = 1357&lt;/p&gt;
&lt;p&gt;[PHASE_CAL] Phase 2: watthr_pf05_raw = 1361&lt;/p&gt;
&lt;p&gt;Ph A: PF1=2785, PF0.5=1364, ratio=+0.020347, phase=-0.673 deg, PHCAL=-15&lt;/p&gt;
&lt;p&gt;Ph B: PF1=2787, PF0.5=1357, ratio=+0.014382, phase=-0.476 deg, PHCAL=-11&lt;/p&gt;
&lt;p&gt;Ph C: PF1=2785, PF0.5=1361, ratio=+0.018103, phase=-0.599 deg, PHCAL=-13&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Reg 0x3F (APHCAL) &amp;lt;= 0x71 (dec: -15)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Reg 0x40 (BPHCAL) &amp;lt;= 0x75 (dec: -11)&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Reg 0x41 (CPHCAL) &amp;lt;= 0x73 (dec: -13)&lt;/p&gt;
&lt;p&gt;But when I read the parameters in No load&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.44 229.53 229.29&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 0.000 0.000 0.000&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 0.67 0.00 0.00&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 0.00 0.67 2.00&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 0 1 3&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 0.00 0.00 0.00&lt;/p&gt;
&lt;p&gt;PF A/B/C: 0.000 0.000 0.000&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 0.67 W 2.67 VAR 0.00 VA 0.000&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.64 229.73 229.49&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 0.000 0.000 0.000&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 4.04 0.00 2.02&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 3.34 2.01 5.35&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 5 3 8&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 0.00 0.00 0.00&lt;/p&gt;
&lt;p&gt;PF A/B/C: 0.000 0.000 0.000&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 6.07 W 10.69 VAR 0.00 VA 0.000&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.56 229.67 229.42&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 0.000 0.000 0.000&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 3.37 0.00 1.35&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 2.67 2.01 4.01&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 4 3 6&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 0.00 0.00 0.00&lt;/p&gt;
&lt;p&gt;PF A/B/C: 0.000 0.000 0.000&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 4.72 W 8.69 VAR 0.00 VA 0.000&lt;/p&gt;
&lt;p&gt;But active power in no load has a value???!!!&lt;/p&gt;
&lt;p&gt;In load parameters are&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.12 229.22 228.97&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 3.060 3.055 3.052&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 698.83 696.98 698.16&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 6.02 5.35 8.02&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 9 8 12&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 698.02 696.21 697.53&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.001 1.001 1.001&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 2093.97 W 19.39 VAR 2091.76 VA 1.001&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.37 229.46 229.22&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 3.068 3.058 3.061&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 704.22 701.69 703.55&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 3.34 3.34 6.01&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 5 5 9&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 702.64 700.83 702.15&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.002 1.001 1.002&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 2109.46 W 12.70 VAR 2105.62 VA 1.002&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.91&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.23 229.32 229.08&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 3.065 3.056 3.055&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 704.56 702.70 703.88&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 4.68 4.68 6.68&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 7 7 10&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 704.29 701.81 702.47&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.000 1.001 1.002&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 2111.14 W 16.04 VAR 2108.57 VA 1.001&lt;/p&gt;
&lt;p&gt;When I multiply&amp;nbsp; current and voltage , active power is not correct&lt;/p&gt;
&lt;p&gt;For example 229.23&amp;times;3.065=702.58 but&amp;nbsp; active power is 704&lt;/p&gt;
&lt;p&gt;How can I correct this value, 2 wat increase&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And when I increase&amp;nbsp; current one step , PF change&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.96&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.15 229.24 228.99&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 4.019 4.013 4.014&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 922.33 920.99 922.33&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 5.35 4.02 7.35&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 8 6 11&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 922.33 920.36 921.02&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.000 1.001 1.001&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 2765.66 W 16.72 VAR 2763.72 VA 1.001&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.96&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.16 229.24 229.00&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 4.019 4.013 4.014&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 922.33 920.32 921.66&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 4.01 4.02 6.69&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 6 6 10&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 921.67 919.70 921.02&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.001 1.001 1.001&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 2764.31 W 14.71 VAR 2762.40 VA 1.001&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 229.09 229.18 228.94&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 7.233 7.233 7.225&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 1239.97 1238.40 1239.29&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 2.67 0.67 3.34&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 4 1 5&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 1168.87 1167.39 1168.05&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.061 1.061 1.061&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 3717.66 W 6.68 VAR 3504.31 VA 1.061&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 228.92 229.01 228.77&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 7.286 7.289 7.279&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 1672.61 1672.08 1671.93&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 12.03 9.36 14.03&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 18 14 21&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 1670.76 1669.58 1669.58&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.001 1.001 1.001&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 5016.62 W 35.43 VAR 5009.93 VA 1.001&lt;/p&gt;
&lt;p&gt;Frequency [Hz]: 49.94&lt;/p&gt;
&lt;p&gt;[V] A/B/C: 228.84 228.92 228.68&lt;/p&gt;
&lt;p&gt;[A] A/B/C: 7.289 7.287 7.283&lt;/p&gt;
&lt;p&gt;P [W] A/B/C: 1673.28 1672.08 1673.28&lt;/p&gt;
&lt;p&gt;Q [VAR] A/B/C: 10.03 10.03 12.70&lt;/p&gt;
&lt;p&gt;Q [VAR] RAW A/B/C: 15 15 19&lt;/p&gt;
&lt;p&gt;S [VA] A/B/C: 1671.42 1670.90 1670.90&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.001 1.001 1.001&lt;/p&gt;
&lt;p&gt;Total P/Q/S/PF: 5018.64 W 32.76 VAR 5013.23 VA 1.001&lt;/p&gt;
&lt;p&gt;In this line&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PF A/B/C: 1.061 1.061 1.061&lt;/p&gt;
&lt;p&gt;I increase current&lt;/p&gt;
&lt;p&gt;Can you help me how I can do it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Fail to Pass Overwrite Waveform Data From no-OS to Windows OS</title><link>https://ez.analog.com/thread/606402?ContentTypeID=0</link><pubDate>Wed, 07 Oct 2026 10:02:25 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:3f34ee45-0327-401c-b36e-072f6dcc89b3</guid><dc:creator>YongLawrence</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/606402?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606402/fail-to-pass-overwrite-waveform-data-from-no-os-to-windows-os/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware: &lt;/strong&gt;AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Pass the Epoch timestamp from no-OS to Windows OS&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Expected Result on Windows OS:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;waveform[0]: -16634&lt;/p&gt;
&lt;p&gt;waveform[1]: 5558&lt;/p&gt;
&lt;p&gt;waveform[2]: 417&lt;/p&gt;
&lt;p&gt;waveform[3]: 0&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Result on Windows OS:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;waveform[0]: -8&lt;/p&gt;
&lt;p&gt;waveform[1]: -13&lt;/p&gt;
&lt;p&gt;waveform[2]: -3&lt;/p&gt;
&lt;p&gt;waveform[3]: -5&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Video:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/357/7827.Error-Video.mp4"&gt;ez.analog.com/.../7827.Error-Video.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting step that has taken:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Asked GitHub Copilot where to insert my code in no-OS, same file and same line.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Code Snippet on no-OS:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/analogdevicesinc/no-OS/blob/dev/pqmon-zephyr-ptp/projects/eval-pqmon/src/common/pqlib_afe.c"&gt;no-OS/projects/eval-pqmon/src/common/pqlib_afe.c at dev/pqmon-zephyr-ptp &amp;middot; analogdevicesinc/no-OS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;		status = afe_read_waveform(
			(uint16_t *)&amp;amp;(pqlibExample.inputWaveform.waveform),
			ADI_PQLIB_WAVEFORM_BLOCK_SIZE
			* ADI_PQLIB_TOTAL_WAVEFORM_CHANNELS);
		// ----------------------------------------------------------------------------------------------------- //
		// Testing
		ADI_PQLIB_TIME waveform_start_epoch_time;
		waveform_start_epoch_time = 1791365660422;
		
		// Split the timestamp and store in the first 4 positions of the waveform array,
		pqlibExample.inputWaveform.waveform[0] = (int16_t)(waveform_start_epoch_time &amp;amp; 0xFFFF);
		pqlibExample.inputWaveform.waveform[1] = (int16_t)((waveform_start_epoch_time &amp;gt;&amp;gt; 16) &amp;amp; 0xFFFF);
		pqlibExample.inputWaveform.waveform[2] = (int16_t)((waveform_start_epoch_time &amp;gt;&amp;gt; 32) &amp;amp; 0xFFFF);
		pqlibExample.inputWaveform.waveform[3] = (int16_t)((waveform_start_epoch_time &amp;gt;&amp;gt; 48) &amp;amp; 0xFFFF);

		// Result
		printf(&amp;quot;waveform[0]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, pqlibExample.inputWaveform.waveform[0]);
		printf(&amp;quot;waveform[1]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, pqlibExample.inputWaveform.waveform[1]);
		printf(&amp;quot;waveform[2]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, pqlibExample.inputWaveform.waveform[2]);
		printf(&amp;quot;waveform[3]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, pqlibExample.inputWaveform.waveform[3]);

		// ----------------------------------------------------------------------------------------------------- //
		pWaveform-&amp;gt;isDataProcessed = 0;
		pWaveform-&amp;gt;sequenceNumber++;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Full Code on Windows OS:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;inttypes.h&amp;gt;
#include &amp;quot;include/iio.h&amp;quot;

int main() {

	// Step 1: Create a context from the serial port   
    struct iio_context* ctx = iio_create_context_from_uri(&amp;quot;serial:COM4,115200,8n1&amp;quot;);
    const struct iio_device* dev = iio_context_get_device(ctx, 0);

    // Step 2 Set process_data = 0
    iio_device_attr_write_double(dev, &amp;quot;process_data&amp;quot;, 0);
    
    // Step 3 Enable all channels 
    for (unsigned int chn_index = 0; chn_index &amp;lt; iio_device_get_channels_count(dev); chn_index++) {
        struct iio_channel* chn_enabled = iio_device_get_channel(dev, chn_index);
        if (iio_channel_is_output(chn_enabled) == 0) {
            iio_channel_enable(chn_enabled);
        }
    }

	// Step 4 Set waveform_capture_mode = continuous
    iio_device_attr_write(dev, &amp;quot;waveform_capture_mode&amp;quot;, &amp;quot;continuous&amp;quot;);
    
	// Step 5 Create a buffer to read data from the device
    struct iio_buffer* buffer = iio_device_create_buffer(dev, 256, false);

    iio_buffer_refill(buffer);

    int16_t* waveform = (int16_t*)iio_buffer_start(buffer);

	// Step 6 Result
    printf(&amp;quot;waveform[0]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, waveform[0]);
    printf(&amp;quot;waveform[1]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, waveform[1]);
    printf(&amp;quot;waveform[2]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, waveform[2]);
    printf(&amp;quot;waveform[3]: %&amp;quot;PRId16&amp;quot;\n&amp;quot;, waveform[3]);


    // Step 7 Clean up
    iio_buffer_destroy(buffer);
    iio_context_destroy(ctx);
    
}&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to calibrate AD-PQMON-SL?</title><link>https://ez.analog.com/thread/606242?ContentTypeID=0</link><pubDate>Wed, 23 Sep 2026 03:01:03 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:dddd2c39-6069-4d72-a449-fedb1aaf473b</guid><dc:creator>YongLawrence</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/606242?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606242/how-to-calibrate-ad-pqmon-sl/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware:&lt;/strong&gt; AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Software:&lt;/strong&gt; Scopy&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For example, the RMS voltage of the VA input is 60V, but Scopy shows 59.88V&lt;/li&gt;
&lt;li&gt;My understanding is changing the voltage scale/current scale.&lt;/li&gt;
&lt;li&gt;Is there any other way, like a potentiometer?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting steps were taken:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I received a calibration tool.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.analog.com/media/en/engineering-tools/design-tools/ADE9000-Calibration-Tool.zip"&gt;https://www.analog.com/media/en/engineering-tools/design-tools/ADE9000-Calibration-Tool.zip&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://ez.analog.com/energy-metering/f/q-a/596316/awatthr-value-is-extremely-large"&gt;AWATTHR value is extremely large - Q&amp;amp;A - Energy - EngineerZone&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to detect power quality events at the beginning?</title><link>https://ez.analog.com/thread/606241?ContentTypeID=0</link><pubDate>Wed, 23 Sep 2026 02:47:17 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:96f40be7-173f-4f1d-8474-a0b265263b41</guid><dc:creator>YongLawrence</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/606241?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606241/how-to-detect-power-quality-events-at-the-beginning/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware:&lt;/strong&gt; AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Give a warning when power quality events start&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Currently, we monitor the attribute &amp;ldquo;countEvent&amp;rdquo; to detect power quality events&lt;/li&gt;
&lt;li&gt;Based on our observation, the power quality event channel attributes like &amp;ldquo;startTime&amp;rdquo; &amp;ldquo;endTime&amp;rdquo; only appeared after events end.
&lt;ul&gt;
&lt;li&gt;We record waveform &amp;lt; -- &amp;gt; monitor &lt;span&gt;&amp;ldquo;countEvent&amp;rdquo;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Example: &lt;span&gt;&amp;ldquo;countEvent&amp;rdquo;&lt;/span&gt; changed from 0 to 1 at cycle 25, but waveform show the power quality event started cycle 10.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;So is there any register/parameter/attributes to monitor?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:337px;max-height:337px;max-width:724px;" height="337" src="https://ez.analog.com/resized-image/__size/1448x674/__key/communityserver-discussions-components-files/357/pastedimage1790131336993v1.png" width="723" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Power Measurement &amp; PF Deviation with Frequency Variations under low-amplitude input</title><link>https://ez.analog.com/thread/606091?ContentTypeID=0</link><pubDate>Mon, 14 Sep 2026 14:41:47 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:9af8196b-1d3a-4a60-8bd3-a95a3b73ecbb</guid><dc:creator>Medzzi</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/606091?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606091/power-measurement-pf-deviation-with-frequency-variations-under-low-amplitude-input/rss?ContentTypeId=0</wfw:commentRss><description>&lt;div style="color:inherit;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;we have identified a specific measurement issue when varying the input frequency away from nominal 50 Hz / 60 Hz under low-amplitude input signals:&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Test condition:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Voltage=5V; Current=0.0128A; Active power=64mW; PF=1; Frequency=52Hz&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Test Result:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Vtotal=5.008V; Itotal= 0.0131A&lt;/p&gt;
&lt;p&gt;Vfund=0.668V; Ifund= 0.0017A&lt;/p&gt;
&lt;p&gt;PF=0.05&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;Observations&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;* RMS measurements (V_rms, I_rms) remain accurate. However, the fundamental RMS (V_fund, I_fund) become completely false.&lt;/p&gt;
&lt;p&gt;* Voltage and current THD registers saturate at 400 (the maximum distortion limit measurable by the ADE9000).&lt;/p&gt;
&lt;p&gt;* Consequently, the Power Factor collapses to ~0.05 instead of (PF = 1.0), leading to active power errors.&lt;/p&gt;
&lt;p&gt;Are specific register configurations required to prevent low-amplitude fundamental signals from being filtered out as noise outside 50 and 60 Hz?&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Can AD-PQMON-SL allow multiple thread?</title><link>https://ez.analog.com/thread/606026?ContentTypeID=0</link><pubDate>Wed, 09 Sep 2026 08:57:00 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:588b11a8-5430-403d-8297-07a511e9647e</guid><dc:creator>YongLawrence</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/606026?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/606026/can-ad-pqmon-sl-allow-multiple-thread/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware:&lt;/strong&gt; AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;While waiting for waveform acquisition, some quick power quality events, like interrupts, may be missed.&lt;/li&gt;
&lt;li&gt;If two while loops communicate with AD-PQMON-SL at the same time, will it cause a conflict?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="height:285px;max-height:285px;max-width:626px;" alt=" " height="220" src="https://ez.analog.com/resized-image/__size/1252x570/__key/communityserver-discussions-components-files/357/Picture2.jpg" width="625" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Temporary Solution:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now we put waveform acquisition and monitor power quality events in the same while loop in a single thread.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;while (running) {
    // 1. Monitor Event Attributes
    iio_channel_attr_read_double(chn_PQ, &amp;quot;countEvent&amp;quot;, &amp;amp;chnAttrValue);
    
    // 2. Fetch Waveform Buffer
    iio_buffer_refill(buffer);
    
    // 3. Process Waveform
    process_waveform(buffer);
}&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting steps that I have taken:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;From AI, yes, that would be conflict.&lt;/li&gt;
&lt;li&gt;So AI suggest me create another context; here&amp;rsquo;s the example that was generated by AI and hasn&amp;rsquo;t been tested&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;// Thread 1: Dedicated to monitoring attributes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;void* thread_monitor(void *arg) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; // 1. Create a dedicated context instance for Thread 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; // Pass NULL for local sysfs or use a explicit URI like &amp;quot;ip:192.168.2.1&amp;quot; or &amp;quot;local:&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; struct iio_context *ctx1 = iio_create_context(NULL, &amp;quot;local:&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; if (!ctx1) return NULL;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct iio_device *dev1 = iio_context_find_device(ctx1, &amp;quot;ad-pqmon-sl&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; struct iio_channel *chn_PQ = iio_device_find_channel(dev1, &amp;quot;power_channel&amp;quot;, false);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;double chnAttrValue;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; while (1) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; // Safe to read attributes concurrently without mutexes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; iio_channel_attr_read_double(chn_PQ, &amp;quot;countEvent&amp;quot;, &amp;amp;chnAttrValue);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; usleep(100000); &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; }&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;// Clean up dedicated context on exit&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; iio_context_destroy(ctx1);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; return NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;// Thread 2: Dedicated to continuous buffer streaming&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;void* thread_waveform(void *arg) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; // 2. Create a separate context instance for Thread 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; struct iio_context *ctx2 = iio_create_context(NULL, &amp;quot;local:&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; if (!ctx2) return NULL;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;struct iio_device *dev2 = iio_context_find_device(ctx2, &amp;quot;ad-pqmon-sl&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; struct iio_channel *chn_wave = iio_device_find_channel(dev2, &amp;quot;voltage0&amp;quot;, false);&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; iio_channel_enable(chn_wave);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; struct iio_buffer *buffer = iio_device_create_buffer(dev2, 1024, false);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;while (1) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; // Refill buffer independently&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; iio_buffer_refill(buffer);&lt;/span&gt;&lt;br /&gt; &lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; // Process waveform data...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; }&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;iio_buffer_destroy(buffer);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; iio_context_destroy(ctx2);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; return NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;int main() {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; pthread_t t1, t2;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; pthread_create(&amp;amp;t1, NULL, thread_monitor, NULL);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; pthread_create(&amp;amp;t2, NULL, thread_waveform, NULL);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;pthread_join(t1, NULL);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; pthread_join(t2, NULL);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt; return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Measurement of DC currents</title><link>https://ez.analog.com/thread/605936?ContentTypeID=0</link><pubDate>Wed, 02 Sep 2026 15:51:03 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:03b140f3-0e52-4b6c-a10f-237d93fd7f51</guid><dc:creator>MarkusBuecker</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/605936?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605936/measurement-of-dc-currents/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I am using the ADE7816 to measure loads in normal AC operation, or in case of emergency battery supplied (ca. 220VDC).&lt;/p&gt;
&lt;p&gt;I hoped not to be forced using another IC for DC measurement and so I tried my best using the bypass function of the HPF in DC operation.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:137px;max-width:770px;" height="137" src="https://ez.analog.com/resized-image/__size/1540x274/__key/communityserver-discussions-components-files/357/pastedimage1788363780381v1.png" width="770" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The main problem I have is that&amp;nbsp;I still only can use the resulting absolut value of IxRMS register. As long as the DC offset is positive I just can subtract any offset current manually from given ADE value. But if the offset is negative, I am not able to solve this. The ADE then will indicate e.g. 15mA of current measured but meaning &lt;span style="font-size:inherit;"&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/span&gt;15mA. When I am adding the missing 15 mA the ADE will work precisely from this offset on, but before the addition makes no sense.&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;current&lt;/td&gt;
&lt;td&gt;ADEs ADC value&lt;/td&gt;
&lt;td&gt;ADE RMS DC&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;manually added offset&lt;/p&gt;
&lt;p&gt;(+15 mA)&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0 mA&lt;/td&gt;
&lt;td&gt;-15 mA&lt;/td&gt;
&lt;td&gt;15 mA&lt;/td&gt;
&lt;td&gt;30 mA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2 mA&lt;/td&gt;
&lt;td&gt;-13 mA&lt;/td&gt;
&lt;td&gt;13 mA&lt;/td&gt;
&lt;td&gt;28 mA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5 mA&lt;/td&gt;
&lt;td&gt;- 10 mA&lt;/td&gt;
&lt;td&gt;10 mA&lt;/td&gt;
&lt;td&gt;25 mA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 mA&lt;/td&gt;
&lt;td&gt;- 5 mA&lt;/td&gt;
&lt;td&gt;5 mA&lt;/td&gt;
&lt;td&gt;20 mA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;15 mA&lt;/td&gt;
&lt;td&gt;0 mA&lt;/td&gt;
&lt;td&gt;0 mA&lt;/td&gt;
&lt;td&gt;15 mA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="background-color:#00ff00;"&gt;20 mA&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;5 mA&lt;/td&gt;
&lt;td&gt;5 mA&lt;/td&gt;
&lt;td&gt;&lt;span style="background-color:#00ff00;"&gt;20 mA&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="background-color:#00ff00;"&gt;25 mA&lt;/span&gt;&lt;/td&gt;
&lt;td&gt;10 mA&lt;/td&gt;
&lt;td&gt;10 mA&lt;/td&gt;
&lt;td&gt;&lt;span style="background-color:#00ff00;"&gt;25 mA&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;I totally understand that this is the main purpose of the HPF, to suppress the offsets, but in my application DC results are as important as AC results.&lt;/p&gt;
&lt;p&gt;Is there any chance of reading a register in the ADE7816, which will give me the information of the sign of the original adc value before further signal processing was done?&lt;/p&gt;
&lt;p&gt;Then I can check first the offset value, if it is negative or positive, then switch on the load and calculate the current correct. Thanks for any feedback and/or help on this topic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Inquiry Regarding ADE9113 Isolation Ratings for 1000 VDC Measurement Applications</title><link>https://ez.analog.com/thread/605926?ContentTypeID=0</link><pubDate>Wed, 02 Sep 2026 07:00:46 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:e8d0ecfb-81f2-481f-ab9c-d4214b88b09f</guid><dc:creator>KHN</dc:creator><slash:comments>4</slash:comments><comments>https://ez.analog.com/thread/605926?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605926/inquiry-regarding-ade9113-isolation-ratings-for-1000-vdc-measurement-applications/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We are considering the ADE9113 for use in a DC voltage measurement circuit and would appreciate clarification regarding the isolation ratings of the device.&lt;/p&gt;
&lt;p&gt;Our intended application is as follows:&lt;/p&gt;
&lt;p&gt;Maximum DC bus voltage: 1000 VDC&lt;br /&gt;Voltage measurement via a resistive divider connected to the ADE9113 voltage input&lt;/p&gt;
&lt;p&gt;Communication to a microcontroller located in a SELV domain through the ADE9113&amp;#39;s integrated isolation barrier&lt;/p&gt;
&lt;p&gt;Use of the integrated isolated power supply provided by the ADE9113&lt;/p&gt;
&lt;p&gt;After reviewing the ADE9113 datasheet and certification documents, we found the following specifications:&lt;/p&gt;
&lt;p&gt;Reinforced insulation: 415 Vrms&lt;br /&gt;Basic insulation: 830 Vrms&lt;br /&gt;VIOWM = 405 Vrms&lt;br /&gt;VIORM = 573 Vpeak&lt;br /&gt;VISO = 5000 Vrms (1 minute)&lt;/p&gt;
&lt;p&gt;We would appreciate your guidance on the following questions:&lt;/p&gt;
&lt;p&gt;Is the ADE9113 suitable for a 1000 VDC working voltage under standard industrial safety certifications (e.g., IEC 61010-1 or IEC 62368-1)?&lt;/p&gt;
&lt;p&gt;If so, does it meet the requirements for Basic or Reinforced insulation at this voltage?&lt;/p&gt;
&lt;p&gt;Can the ADE9113 isolation barrier be continuously subjected to an approximately 1000 VDC potential difference between the high-voltage side and the SELV side?&lt;/p&gt;
&lt;p&gt;How should the following ratings be interpreted for a 1000 VDC application?&lt;/p&gt;
&lt;p&gt;VIOWM = 405 Vrms&lt;br /&gt;VIORM = 573 Vpeak&lt;br /&gt;Reinforced insulation at 415 Vrms&lt;/p&gt;
&lt;p&gt;Our primary concern is not the ADC input range, since the bus voltage will be scaled using a resistor divider.&lt;/p&gt;
&lt;p&gt;Rather, we would like to confirm whether the isolation barrier inside the ADE9113 is certified and intended for continuous operation in a system where approximately 1000 VDC exists between the high-voltage measurement domain and the SELV control domain.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Exact connection topology for measuring voltage on 3-phase Delta AC circuit</title><link>https://ez.analog.com/thread/605806?ContentTypeID=0</link><pubDate>Mon, 24 Aug 2026 13:29:46 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:e6bef636-1652-493b-a4f7-6f05e35f61ff</guid><dc:creator>Chris16</dc:creator><slash:comments>4</slash:comments><comments>https://ez.analog.com/thread/605806?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605806/exact-connection-topology-for-measuring-voltage-on-3-phase-delta-ac-circuit/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The normal ADE7933 device-datasheet 3-&amp;phi; Delta 3-wire circuit illustration (figure 113) is too abstract to show the actual voltage-divider and anti-aliasing networks in detail:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;I have been assuming a topology that incorporates &amp;ldquo;some&amp;rdquo; elements of app-note AN-1333,&amp;nbsp; particularly with regard to the R-dividers and capacitors.&amp;nbsp;&amp;nbsp; However, AN-1333 is really oriented to a 4-conductor system, not specifically a 3-&amp;phi; delta system.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For the 2 instances of ADE7933 in my 3-wire 3-phase Delta circuit,&amp;nbsp; I so far have mimicked this part of AN-1333, applied individually to both the V1P pin and to the VM pin.&amp;nbsp;&amp;nbsp;&amp;nbsp; The question has come up, should I use this topology?&amp;nbsp; Or should I make V1P and VM as a true differential input, with the R/C load circuit placed (differentially &amp;amp; groundlessly) across V1P / VM,&amp;nbsp; rather than bypassing each V1P and VM individually to the ADE7933&amp;rsquo;s ISO_GND?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/357/App-note-picture.png" /&gt;&lt;/p&gt;
&lt;p&gt;For my part I did some simulation, and I *&lt;strong&gt;think&lt;/strong&gt;* we need to bypass each of the V1P and VM pins to the respective-IC&amp;rsquo;s ISO_GND, to avoid overloading the ADC&amp;rsquo;s.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Advice will be greatly appreciated!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Looking for the formulas to convert xWATT_ACC and xVAR_ACC  Accumulator Register contents to the actual Wattage and Reactive power.</title><link>https://ez.analog.com/thread/605543?ContentTypeID=0</link><pubDate>Wed, 05 Aug 2026 18:21:15 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:92dfabd0-1bc1-42cf-8be5-525f0650f5b4</guid><dc:creator>ToxicAvenger</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/605543?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605543/looking-for-the-formulas-to-convert-xwatt_acc-and-xvar_acc-accumulator-register-contents-to-the-actual-wattage-and-reactive-power/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We are using the ADE9430 on our current project to make various power measurements.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In particular we are reading the xWATT_ACC and xVAR_ACC&amp;nbsp; Accumulator Registers to determine the Wattage and Reactive power. (NOTE: x represents the Phase A, B, or C) .&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We are trying to determine the Conversion Formula we need to apply to the contents of the &lt;span&gt;xWATT_ACC Accumulator Register to convert it to the actual Wattage.&amp;nbsp; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;We are trying to determine the Conversion Formula we need to apply to the contents&amp;nbsp;of the&amp;nbsp;xVAR_ACC Accumulator Register to convert it to the actual Reactive power.&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Any help would be appreciated.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks - mike&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Problem with Antialiasing filters</title><link>https://ez.analog.com/thread/605482?ContentTypeID=0</link><pubDate>Sat, 01 Aug 2026 11:55:37 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:ce0c4ef4-80fe-4349-9b64-770cd5db49f3</guid><dc:creator>Zara1996</dc:creator><slash:comments>1</slash:comments><comments>https://ez.analog.com/thread/605482?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605482/problem-with-antialiasing-filters/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p class="PDq2pG_selectionAnchorContainer" data-start="126" data-end="132"&gt;Hello,&lt;span class="PDq2pG_selectionAnchor"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="" data-start="134" data-end="222"&gt;I am using the ADE7953 with the current sensing network shown in the attached schematic.&lt;/p&gt;
&lt;p data-start="224" data-end="242"&gt;&lt;strong data-start="224" data-end="242"&gt;Configuration:&lt;/strong&gt;&lt;/p&gt;
&lt;ul data-start="243" data-end="498"&gt;
&lt;li data-section-id="19jwlr2" data-start="243" data-end="268"&gt;Current shunt: &lt;strong data-start="260" data-end="268"&gt;5 m&amp;Omega;&lt;/strong&gt;&lt;/li&gt;
&lt;li data-section-id="8fmy7a" data-start="269" data-end="366"&gt;Input filter:
&lt;ul data-start="287" data-end="366"&gt;
&lt;li data-section-id="hiymd9" data-start="287" data-end="300"&gt;R64 = 100 &amp;Omega;&lt;/li&gt;
&lt;li data-section-id="5k4rvb" data-start="303" data-end="315"&gt;R65 = 1 k&amp;Omega;&lt;/li&gt;
&lt;li data-section-id="1ukf6fz" data-start="318" data-end="331"&gt;R55 = 100 &amp;Omega;&lt;/li&gt;
&lt;li data-section-id="19v9cfp" data-start="334" data-end="346"&gt;R54 = 1 k&amp;Omega;&lt;/li&gt;
&lt;li data-section-id="1erl4q5" data-start="349" data-end="366"&gt;C44&amp;ndash;C47 = 22 nF&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li data-section-id="6uojtk" data-start="367" data-end="468"&gt;AGND is connected to the line reference (non-isolated design), as recommended for this application.&lt;/li&gt;
&lt;li data-section-id="y4vayc" data-start="469" data-end="498"&gt;The relay is normally open.&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="500" data-end="512"&gt;&lt;strong data-start="500" data-end="512"&gt;Problem:&lt;/strong&gt;&lt;/p&gt;
&lt;p class="" data-start="514" data-end="632"&gt;As soon as AC mains is applied, &lt;strong data-start="546" data-end="579"&gt;before the relay is energized&lt;/strong&gt;, resistors &lt;strong data-start="591" data-end="614"&gt;R64 and R55 (100 &amp;Omega;)&lt;/strong&gt; burn immediately.&lt;/p&gt;
&lt;p class="" data-start="634" data-end="713"&gt;The relay is still OFF, so no load current should be flowing through the shunt.&lt;/p&gt;
&lt;p data-start="715" data-end="739"&gt;Additional observations:&lt;/p&gt;
&lt;ul data-start="740" data-end="1195"&gt;
&lt;li data-section-id="1pwfmgv" data-start="740" data-end="776"&gt;I verified the shunt value (5 m&amp;Omega;).&lt;/li&gt;
&lt;li data-section-id="16q1xrk" data-start="777" data-end="826"&gt;The capacitors and resistor values are correct.&lt;/li&gt;
&lt;li data-section-id="sgqupv" data-start="827" data-end="895"&gt;I replaced the ADE7953 with a new device, but the problem remains.&lt;/li&gt;
&lt;li data-section-id="1jo4ksg" data-start="896" data-end="983"&gt;I built the same current sensing circuit on a prototype board and it works correctly.&lt;/li&gt;
&lt;li data-section-id="15250hb" data-start="984" data-end="1195"&gt;However, when I connect the sensing inputs (IA+, IA&amp;minus;, AGND) to the shunt on my PCB, the 100 &amp;Omega; resistors burn again, indicating that the problem is related to the shunt/load side rather than the ADE7953 itself.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class="" data-start="1197" data-end="1377"&gt;With the relay open, I measured approximately &lt;strong data-start="1243" data-end="1316"&gt;220 VAC between the lower side of the shunt and AGND (Line reference)&lt;/strong&gt;, which is expected because the load is connected to Neutral.&lt;/p&gt;
&lt;p data-start="1379" data-end="1566"&gt;Could you please advise whether this input network is correct for this topology, or if there is any recommended way to connect the current shunt when the relay is placed before the shunt?&lt;/p&gt;
&lt;p data-start="1568" data-end="1625"&gt;The schematic of the current sensing circuit is attached.&lt;img style="max-height:240px;max-width:320px;" src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/357/Screenshot-2026_2D00_08_2D00_01-144402.png" alt=" " /&gt;&lt;/p&gt;
&lt;p data-start="1627" data-end="1637"&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Intermittent CRC Errors</title><link>https://ez.analog.com/thread/605336?ContentTypeID=0</link><pubDate>Tue, 21 Jul 2026 13:33:24 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:8209fad9-d881-45de-b54f-0eaa2f3fbd32</guid><dc:creator>ToxicAvenger</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/605336?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605336/intermittent-crc-errors/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We are operating in Burst mode using&amp;nbsp;&lt;strong&gt;BURST_EN&lt;/strong&gt;: set in &lt;strong&gt;CONFIG1 Register Bit[11]&lt;/strong&gt;, which enables fast burst-read functionality for registers 0x500 to 0x6FF (such as the waveform buffer).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While &lt;strong&gt;BURST_EN &lt;/strong&gt;is active we are also verifying CRC for registers outside of the burst read section of the registers. (&lt;span&gt;0x500 to 0x6FF).. When we do this we are seeing intermittent CRC errors when we read these registers.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The strange thing we are seeing when a CRC error is detected is the CRC returned from the ADE9430 is is either one of two values&amp;nbsp; 3374 decimal or 21171 decimal .&amp;nbsp; See below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://ez.analog.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/357/pastedimage1784640167777v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Can&amp;nbsp;&lt;strong&gt;BURST_EN&amp;nbsp;&lt;/strong&gt;be active while we are checking the CRC on registers outside the burst register range 0x500 to 0x6FF?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Are there any known issues with CRC when &amp;nbsp;&lt;strong&gt;BURST_EN &lt;/strong&gt;is enabled?&amp;nbsp;&lt;/span&gt;i did an internet search for known CRC/Burst issues and they mentioned there were issues.&amp;nbsp;&lt;strong&gt;&amp;nbsp; &amp;nbsp;link: &lt;/strong&gt;&lt;a id="menur16ah" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://www.google.com/search?q=ade9430+burst_en+is+set+in+config+register+1+bit%5b11%5d+and+crc&amp;amp;safe=active&amp;amp;sca_esv=15584491b0e529db&amp;amp;rlz=1c1gcea_enus1221us1221&amp;amp;biw=1506&amp;amp;bih=690&amp;amp;ei=ngdeau-pdotvruep75qcoqy&amp;amp;ved=0ahukewjv596d8ogvaxwetysghw-nigqq4dudcba&amp;amp;uact=5&amp;amp;oq=ade9430+burst_en+is+set+in+config+register+1+bit%5b11%5d+and+crc&amp;amp;gs_lp=egxnd3mtd2l6lxnlcnaipgfkztk0mzagqlvsu1rfru4gaxmgc2v0igluienvbmzpzybszwdpc3rlciaxiejpdfsxmv0gqu5eignyyzifeaay7wuybraago8fspm6umqiwkq0caf4ajabajgbgqggacchqgednc41uaedyaea-aebmaijoaksb8iccbaago8fgladwgifeceyqwkyawcibggqbgosbwmyljegb6evsgcdms43uaeob8ihazauocghdiaiaq&amp;amp;sclient=gws-wiz-serp" href="https://www.google.com/search?q=ade9430+BURST_EN+is+set+in+Config+Register+1+Bit%5B11%5D+AND+crc&amp;amp;safe=active&amp;amp;sca_esv=15584491b0e529db&amp;amp;rlz=1C1GCEA_enUS1221US1221&amp;amp;biw=1506&amp;amp;bih=690&amp;amp;ei=nGdeau-pDoTvruEP75qCoQY&amp;amp;ved=0ahUKEwjv596D8OGVAxWEtysGHW-NIGQQ4dUDCBA&amp;amp;uact=5&amp;amp;oq=ade9430+BURST_EN+is+set+in+Config+Register+1+Bit%5B11%5D+AND+crc&amp;amp;gs_lp=Egxnd3Mtd2l6LXNlcnAiPGFkZTk0MzAgQlVSU1RfRU4gaXMgc2V0IGluIENvbmZpZyBSZWdpc3RlciAxIEJpdFsxMV0gQU5EIGNyYzIFEAAY7wUyBRAAGO8FSPM6UMQIWKQ0cAF4AJABAJgBgQGgAccHqgEDNC41uAEDyAEA-AEBmAIJoAKSB8ICCBAAGO8FGLADwgIFECEYqwKYAwCIBgGQBgOSBwMyLjegB6EVsgcDMS43uAeOB8IHAzAuOcgHDIAIAQ&amp;amp;sclient=gws-wiz-serp" rel="noopener noreferrer" target="_blank"&gt;https://www.google.com/search?q=ade9430+BURST_EN+is+set+in+Config+Register+1+Bit%5B11%5D+AND+crc&amp;amp;sa&amp;hellip;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Lastly I tried to test CRC using the&amp;nbsp; Power Quality library running on the EVAL-ADE9430 board and CRC checking s defaulted to disabled. When I tried to enable it, it&amp;nbsp;did not work. could this be related to&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- mike&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>We are using the ADE9430 chip to measure Power. When we try to read REG_AWATT_ACC for the Watts and REG_AVAR_ACC for the  reactive power they are both are always 0.</title><link>https://ez.analog.com/thread/605273?ContentTypeID=0</link><pubDate>Thu, 16 Jul 2026 16:01:15 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:de9c8aca-443c-4045-b785-2272323ae358</guid><dc:creator>ToxicAvenger</dc:creator><slash:comments>5</slash:comments><comments>https://ez.analog.com/thread/605273?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605273/we-are-using-the-ade9430-chip-to-measure-power-when-we-try-to-read-reg_awatt_acc-for-the-watts-and-reg_avar_acc-for-the-reactive-power-they-are-both-are-always-0/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We are using the ADE9430 chip to measure Power. Whenever we try to read the Accumulator Register&amp;#39;s,&amp;nbsp;&lt;strong&gt;REG_AWATT_ACC&lt;/strong&gt; for the Watts and &lt;strong&gt;REG_AVAR_ACC&lt;/strong&gt; for the reactive power they are both 0?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We&amp;nbsp; read the phase &lt;strong&gt;Currents&lt;/strong&gt; from &lt;strong&gt;REG_AIRMSONE&lt;/strong&gt;,&amp;nbsp;&lt;span&gt;&lt;strong&gt;REG_BIRMSONE&lt;/strong&gt;, and &lt;strong&gt;REG_CIRMSONE&amp;nbsp;&lt;/strong&gt; respectively. The values we read are good.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;We&amp;nbsp; read the phase &lt;strong&gt;Voltages&lt;/strong&gt; from&amp;nbsp;&lt;strong&gt;REG_AVRMSONE&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;REG_BVRMSONE&lt;/strong&gt; and&amp;nbsp;&lt;strong&gt;REG_CVRMSONE&lt;/strong&gt;&amp;nbsp; respectively. The values we read are good.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;We&amp;nbsp; read the phase &lt;strong&gt;Watts&lt;/strong&gt; from &lt;strong&gt;REG_AWATT_ACC&lt;/strong&gt;, &lt;strong&gt;REG_BWATT_ACC&lt;/strong&gt; and &lt;strong&gt;REG_CWATT_ACC&lt;/strong&gt; respectively. The values we read are bad, they are&amp;nbsp; always 0?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;We&amp;nbsp; read the phase &lt;strong&gt;Reactive&lt;/strong&gt; &lt;strong&gt;Power&lt;/strong&gt; from &lt;strong&gt;REG_AVAR_ACC&lt;/strong&gt;, &lt;strong&gt;REG_BVAR_ACC&lt;/strong&gt; and &lt;strong&gt;REG_CVAR_ACC&lt;/strong&gt; respectively. The values we read are bad, they are&amp;nbsp; always 0?&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If we read&amp;nbsp;&lt;strong&gt;REG_AWATT&lt;/strong&gt; for power and&amp;nbsp;&lt;strong&gt;REG_AVAR&lt;/strong&gt; for Reactive power they both work fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We are thinking that we are missing something during setup or post capture setup.&lt;/p&gt;
&lt;p&gt;We are wondering if using these registers require any special setup or initialization?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Investigating Accuracy Drift at Negative Temperatures with ADE9000</title><link>https://ez.analog.com/thread/605163?ContentTypeID=0</link><pubDate>Thu, 09 Jul 2026 14:09:47 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:d82edd93-faaa-4fce-9ca5-696ae12ec3ed</guid><dc:creator>Medzzi</dc:creator><slash:comments>12</slash:comments><comments>https://ez.analog.com/thread/605163?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605163/investigating-accuracy-drift-at-negative-temperatures-with-ade9000/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p data-path-to-node="7,0"&gt;Hello,&lt;/p&gt;
&lt;p data-path-to-node="7,1"&gt;We are currently working on an energy monitoring device which is implemented with an ADE9000.&lt;/p&gt;
&lt;p data-path-to-node="7,1"&gt;During the qualification of the product under different temperature conditions, we experienced precision drifts at negative temperatures for V, I, and consequently P, as shown below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table width="878"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="4" width="191"&gt;injected&lt;/td&gt;
&lt;td colspan="3" width="248"&gt;-5&amp;deg;C&lt;/td&gt;
&lt;td colspan="6" width="439"&gt;Errors&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;V1 (V)&lt;/td&gt;
&lt;td&gt;I1 (A)&lt;/td&gt;
&lt;td&gt;PF&lt;/td&gt;
&lt;td&gt;P1 th (W)&lt;/td&gt;
&lt;td width="86"&gt;measured V1&amp;nbsp; (V)&lt;/td&gt;
&lt;td width="92"&gt;Measured Current I1 (A)&lt;/td&gt;
&lt;td width="70"&gt;measured Power P1 (W)&lt;/td&gt;
&lt;td width="62"&gt;absolute drift V1 (V)&lt;/td&gt;
&lt;td width="76"&gt;Relative Err V1&amp;nbsp;&amp;nbsp;&lt;/td&gt;
&lt;td width="92"&gt;absolute drift I1 (mA)&lt;/td&gt;
&lt;td width="70"&gt;Relative Error I1&amp;nbsp;&lt;/td&gt;
&lt;td width="64"&gt;Absolute error P1 (W)&lt;/td&gt;
&lt;td width="75"&gt;Relative Power Error&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230&lt;/td&gt;
&lt;td&gt;10,00&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;2300,000&lt;/td&gt;
&lt;td&gt;229,62&lt;/td&gt;
&lt;td&gt;9,9907&lt;/td&gt;
&lt;td&gt;2293,01&lt;/td&gt;
&lt;td&gt;-0,38&lt;/td&gt;
&lt;td&gt;-0,17%&lt;/td&gt;
&lt;td&gt;-9,3000&lt;/td&gt;
&lt;td&gt;-0,09%&lt;/td&gt;
&lt;td&gt;-6,99&lt;/td&gt;
&lt;td&gt;-0,30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230&lt;/td&gt;
&lt;td&gt;5,00&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;1150,000&lt;/td&gt;
&lt;td&gt;229,62&lt;/td&gt;
&lt;td&gt;4,9957&lt;/td&gt;
&lt;td&gt;1146,59&lt;/td&gt;
&lt;td&gt;-0,38&lt;/td&gt;
&lt;td&gt;-0,17%&lt;/td&gt;
&lt;td&gt;-4,3000&lt;/td&gt;
&lt;td&gt;-0,09%&lt;/td&gt;
&lt;td&gt;-3,41&lt;/td&gt;
&lt;td&gt;-0,30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230&lt;/td&gt;
&lt;td&gt;2,50&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;575,000&lt;/td&gt;
&lt;td&gt;229,63&lt;/td&gt;
&lt;td&gt;2,4981&lt;/td&gt;
&lt;td&gt;573,36&lt;/td&gt;
&lt;td&gt;-0,37&lt;/td&gt;
&lt;td&gt;-0,16%&lt;/td&gt;
&lt;td&gt;-1,9000&lt;/td&gt;
&lt;td&gt;-0,08%&lt;/td&gt;
&lt;td&gt;-1,64&lt;/td&gt;
&lt;td&gt;-0,29%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230&lt;/td&gt;
&lt;td&gt;1,00&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;230,000&lt;/td&gt;
&lt;td&gt;229,63&lt;/td&gt;
&lt;td&gt;0,9992&lt;/td&gt;
&lt;td&gt;229,34&lt;/td&gt;
&lt;td&gt;-0,37&lt;/td&gt;
&lt;td&gt;-0,16%&lt;/td&gt;
&lt;td&gt;-0,8000&lt;/td&gt;
&lt;td&gt;-0,08%&lt;/td&gt;
&lt;td&gt;-0,66&lt;/td&gt;
&lt;td&gt;-0,29%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230&lt;/td&gt;
&lt;td&gt;0,50&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;115,000&lt;/td&gt;
&lt;td&gt;229,63&lt;/td&gt;
&lt;td&gt;0,4996&lt;/td&gt;
&lt;td&gt;114,66&lt;/td&gt;
&lt;td&gt;-0,37&lt;/td&gt;
&lt;td&gt;-0,16%&lt;/td&gt;
&lt;td&gt;-0,4000&lt;/td&gt;
&lt;td&gt;-0,08%&lt;/td&gt;
&lt;td&gt;-0,34&lt;/td&gt;
&lt;td&gt;-0,30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;230&lt;/td&gt;
&lt;td&gt;0,25&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;57,500&lt;/td&gt;
&lt;td&gt;229,63&lt;/td&gt;
&lt;td&gt;0,2499&lt;/td&gt;
&lt;td&gt;57,34&lt;/td&gt;
&lt;td&gt;-0,37&lt;/td&gt;
&lt;td&gt;-0,16%&lt;/td&gt;
&lt;td&gt;-0,1000&lt;/td&gt;
&lt;td&gt;-0,04%&lt;/td&gt;
&lt;td&gt;-0,16&lt;/td&gt;
&lt;td&gt;-0,28%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p data-path-to-node="7,2"&gt;-&amp;gt;&amp;nbsp;we can see what looks like an offset in the voltage measurement,&amp;nbsp;do you have any explanation for this?&amp;nbsp;&lt;/p&gt;
&lt;p data-path-to-node="7,2"&gt;1- As a first step, we mounted 25 ppm resistors and then 10 ppm resistors &lt;span style="color:black;font-size:11pt;" data-olk-copy-source="MessageBody"&gt; for voltage channels&lt;/span&gt;, without improvement.&lt;/p&gt;
&lt;p data-path-to-node="7,2"&gt;&lt;/p&gt;
&lt;p data-path-to-node="7,2"&gt;2- After that, we monitored the input voltage at the entry of the ADE9000 on channel V2, and we didn&amp;#39;t get a real difference or drift after the resistor divider stage.&lt;/p&gt;
&lt;p data-path-to-node="7,2"&gt;3- Also, we measured the internal 1.2V Vref, and we didn&amp;#39;t see a large drift: Vref = 1.2556V @ 23&amp;deg;C and Vref = 1.2561V @ -5&amp;deg;C -&amp;gt; 11 ppm/&amp;deg;C.&lt;/p&gt;
&lt;p data-path-to-node="7,3"&gt;Now we aim to integrate drift and gain compensation over temperature, as mentioned in the datasheet.&lt;/p&gt;
&lt;p data-path-to-node="7,4"&gt;Is it possible to determine the drift profile of the ADE9000 in our hardware implementation?&lt;/p&gt;
&lt;p data-path-to-node="7,4"&gt;Can we determine a general compensation factor based on experimental tests, rather than requiring calibration for each product?&lt;/p&gt;
&lt;p data-path-to-node="7,5"&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Getting ADI_PQLIB_RESULT_WAVEFORM_NOT_READY</title><link>https://ez.analog.com/thread/605080?ContentTypeID=0</link><pubDate>Sat, 04 Jul 2026 07:17:30 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:5963e93e-6ffa-4f5f-bb73-59916478d5ee</guid><dc:creator>ADE9430I2CSupport</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/605080?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605080/getting-adi_pqlib_result_waveform_not_ready/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I have configured the ADE9430 evaluation board and tried running the library along with example code.&lt;/p&gt;
&lt;p&gt;Connected single phase voltage and current - 225V &amp;amp; 5A in R Phase.&lt;/p&gt;
&lt;p&gt;I gave following comman&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/357/CAPTURE2.TXT"&gt;ez.analog.com/.../CAPTURE2.TXT&lt;/a&gt;ds and getting the below:&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>We are looking for suggestions on setting up a Calibration  Power Source so we can properly calibrate our boards that are using the ADE9430</title><link>https://ez.analog.com/thread/605075?ContentTypeID=0</link><pubDate>Fri, 03 Jul 2026 13:18:16 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:a4a35bdc-e8e2-4bde-951c-54da8fc8dd10</guid><dc:creator>ToxicAvenger</dc:creator><slash:comments>1</slash:comments><comments>https://ez.analog.com/thread/605075?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/605075/we-are-looking-for-suggestions-on-setting-up-a-calibration-power-source-so-we-can-properly-calibrate-our-boards-that-are-using-the-ade9430/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;We are verifying our boards and on the way to production verification. Were are trying to come up with a solid voltage reference so we can properly calibrate the boards. Since you are the experts and have already gone through battle scars of setting up the calibration process we are hoping that you might suggest Calibration setup for us to use. We would be interested in any equipment you use to provide a gold standard power source, and any other expertise you can provide. Basically we are trying to setup our own lab station for calibration and thought you folks have gone through it already and would be willing to help us...&lt;/p&gt;
&lt;p&gt;Thanks - mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Power quality event can't be detected when process_data = 0</title><link>https://ez.analog.com/thread/604980?ContentTypeID=0</link><pubDate>Fri, 26 Jun 2026 10:05:57 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:fa21b034-5217-4440-a690-8e2f60fc59af</guid><dc:creator>YongLawrence</dc:creator><slash:comments>3</slash:comments><comments>https://ez.analog.com/thread/604980?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604980/power-quality-event-can-t-be-detected-when-process_data-0/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware:&lt;/strong&gt; AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Obtain the waveform when a power quality event occurs&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Problem Description:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;When process_data = 1, interrupt event can be detected.&lt;/li&gt;
&lt;li&gt;When process_data = 0, interrupt event failed to be detected.&lt;/li&gt;
&lt;li&gt;iio_device_attr_write_double() failed to overwrite process_data from 0 to 1.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Video:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/357/4477.Error-Video.mp4"&gt;ez.analog.com/.../4477.Error-Video.mp4&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting step that has been taken:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In my full coding, I can overwrite process_data from 1 (default value) to 0 to enable waveform data collection.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Coding:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;lt;stdio.h&amp;gt;

#include &amp;lt;stdlib.h&amp;gt;

#include &amp;lt;iio.h&amp;gt;


int main() {

    // Configuration
    struct iio_context* ctx = iio_create_context_from_uri(&amp;quot;serial:/dev/ttyACM0,115200,8n1&amp;quot;);
    const struct iio_device* dev = iio_context_get_device(ctx, 0);
    struct iio_channel* chn = iio_device_get_channel(dev, 10);
    const char* chnName = iio_channel_get_name(chn);
    printf(&amp;quot;Channel[10] name: %s \n&amp;quot;, chnName);


    // Process Data
    double process_data = 9.0;
    iio_device_attr_write_double(dev, &amp;quot;process_data&amp;quot;, 1.0);
    iio_device_attr_read_double(dev, &amp;quot;process_data&amp;quot;, &amp;amp;process_data);
    printf(&amp;quot;Process data: %lf \n&amp;quot;, process_data);


	// Read countEvent
    double chnAttrValue = 0.0;

    while (true)
    {
        iio_channel_attr_read_double(chn, &amp;quot;countEvent&amp;quot;, &amp;amp;chnAttrValue);

        if (chnAttrValue != 0.0)
        {
            printf(&amp;quot;countEvent: %lf \n&amp;quot;, chnAttrValue);

            break;
        }
    }




    iio_context_destroy(ctx);

}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ADEMA127 timing requirements</title><link>https://ez.analog.com/thread/604923?ContentTypeID=0</link><pubDate>Tue, 23 Jun 2026 16:49:41 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:9ac3ffbd-8d1e-4279-94b1-59541d348818</guid><dc:creator>thiagopradop</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/604923?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604923/adema127-timing-requirements/rss?ContentTypeId=0</wfw:commentRss><description>&lt;div&gt;We are designing a system with two ADCs (ADEMA127 and ADEMA124) that will be individually addressed, sharing the same clock source and configurations.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Our clock source is 5.12 MHz, which will result in a 10 ksps final sample rate.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;We could not find&amp;nbsp;the following two timing specifications in the&amp;nbsp;&lt;a href="https://www.analog.com/media/en/technical-documentation/data-sheets/adema124-127.pdf" rel="noopener noreferrer" target="_blank"&gt;ADEMA124/127 datasheet&lt;/a&gt;. We want to use the RESET pin to reset the ADCs before configuring them, and after setup, we will send the sync spi command + CS sync pulse.&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;1.&amp;nbsp;How long must the RESET pin be held LOW to ensure a valid hardware reset of the ADC?&lt;/div&gt;
&lt;div&gt;2. How long must the CS pin be held low for triggering the sync?&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Any guidance would be appreciated.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Power measurement time</title><link>https://ez.analog.com/thread/604916?ContentTypeID=0</link><pubDate>Tue, 23 Jun 2026 07:40:08 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:620f7b08-7457-4da8-8dfa-a9dc6ca41ca4</guid><dc:creator>Michelangelo</dc:creator><slash:comments>8</slash:comments><comments>https://ez.analog.com/thread/604916?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604916/power-measurement-time/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m currently reading the AWATT/AVAR/AVA registers for power, but I wanted to know if there&amp;#39;s another way to get data with faster update times (reducing the measurement window/buffer).&lt;br /&gt;The application we&amp;#39;re developing needs to be able to monitor power variations more quickly.&lt;br /&gt;I tried disabling the LPF2 filter, but the values ​​are too different to be usable.&lt;/p&gt;
&lt;p&gt;Thanks in advance for any suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>When trying single point calibration mode on the ADE9430,  the APHCAL0 register appears to have limitations</title><link>https://ez.analog.com/thread/604897?ContentTypeID=0</link><pubDate>Mon, 22 Jun 2026 15:17:35 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:f0f9f9f1-f9d7-4380-9840-5fba2aca1e5c</guid><dc:creator>ToxicAvenger</dc:creator><slash:comments>1</slash:comments><comments>https://ez.analog.com/thread/604897?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604897/when-trying-single-point-calibration-mode-on-the-ade9430-the-aphcal0-register-appears-to-have-limitations/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;When trying single point calibration mode on the ADE9430,&amp;nbsp; the APHCAL0 register appears to have limitations&lt;/p&gt;
&lt;p&gt;Meaning if its effectively reading at .93 degrees between current and voltage can we expect to correct it and make it read zero or will calibration only work for much higher offsets?&lt;/p&gt;
&lt;p&gt;Best Regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- mike&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>ADE9430 and latest EN IEC 61000-4-30:2026 adoption in ADSW-PQ-CLS library</title><link>https://ez.analog.com/thread/604810?ContentTypeID=0</link><pubDate>Tue, 16 Jun 2026 11:51:27 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:673d60e5-a206-4adb-8d40-acfbf30eb20d</guid><dc:creator>s.Kleftogiannis</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/604810?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604810/ade9430-and-latest-en-iec-61000-4-30-2026-adoption-in-adsw-pq-cls-library/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;recently&amp;nbsp;EN IEC 61000-4-30:2026 was published.&lt;br /&gt;Do you have any plans of adopting it in&amp;nbsp;ADSW-PQ-CLS library for ADE9430, if so when would be released?&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to simulate a dip event by using AD-PQMON-SL and Scopy?</title><link>https://ez.analog.com/thread/604522?ContentTypeID=0</link><pubDate>Fri, 29 May 2026 09:42:01 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:beab6a01-6f27-4f6d-86b4-39ead873c126</guid><dc:creator>YongLawrence</dc:creator><slash:comments>2</slash:comments><comments>https://ez.analog.com/thread/604522?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604522/how-to-simulate-a-dip-event-by-using-ad-pqmon-sl-and-scopy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Hardware:&lt;/strong&gt; AD-PQMON-SL&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Software:&lt;/strong&gt; Scopy 2.0.0-b3d077f6&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Expected Result:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When the single-phase voltage input &amp;lt;57.15V, a dip event is triggered.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Result:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s no dip event.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://ez.analog.com/cfs-file/__key/communityserver-discussions-components-files/357/8117.Error-Video.mp4"&gt;ez.analog.com/.../8117.Error-Video.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Troubleshooting steps that I have taken:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I set the nominal voltage based on this formula
&lt;ul&gt;
&lt;li&gt;Nominal Voltage = {RMS*(&amp;radic;2)}/(Voltage Scale)&lt;/li&gt;
&lt;li&gt;Exp: {63.5*(&amp;radic;2)}/(1001)=0.09 V&amp;rsquo;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Try to refer manual but there&amp;rsquo;s no example in&amp;nbsp;&lt;a href="https://analogdevicesinc.github.io/scopy/plugins/pqm/harmonics.html#pq-events"&gt; Scopy documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Clarification request regarding ADE9430 energy accumulation, scaling and rollover handling</title><link>https://ez.analog.com/thread/604499?ContentTypeID=0</link><pubDate>Wed, 27 May 2026 18:57:38 GMT</pubDate><guid isPermaLink="false">a884d118-f55f-49de-87eb-b9dbaf99b3e3:d44d9097-8df1-4f99-bb9e-1cb75391e7a2</guid><dc:creator>Dabliu</dc:creator><slash:comments>0</slash:comments><comments>https://ez.analog.com/thread/604499?ContentTypeID=0</comments><wfw:commentRss>https://ez.analog.com/energy-metering/f/q-a/604499/clarification-request-regarding-ade9430-energy-accumulation-scaling-and-rollover-handling/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-weight:400;"&gt;I am currently integrating the ADE9430 and I would like to request clarification regarding the correct usage of the energy accumulation registers and their scaling.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;My current configuration is:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;EGY_PWR_EN = 1 (Enable power and energy accumulation)&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;EGY_LD_ACCUM = 1&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;EGY_TMR_MODE = 0&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;RD_RST_EN = 0 (disabled due to the known issue described in the documentation: &lt;/span&gt;&lt;a href="https://wiki.analog.com/resources/eval/user-guides/ade9430#energy_accumulation_details"&gt;&lt;span style="font-weight:400;"&gt;https://wiki.analog.com/resources/eval/user-guides/ade9430#energy_accumulation_details&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;EGY_TIME = 7999, generating an EGYRDY interrupt approximately every second&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Configuration code:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;int32_t ConfigureAFE_EGYTIME(void){&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int32_t status = SYS_STATUS_SUCCESS;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uint16_t egytime_value = 7999;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status = AFEWrite16BitReg(REG_EGY_TIME, &amp;amp;egytime_value);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (status != 0) {&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status = SYS_STATUS_AFE_EP_CFG_SET_EGY_PWR_EN_FAILED;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return status;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Energy accumulation handling:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;// -- External energy accumulator&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;#define ENERGY_CHANNELS &amp;nbsp; &amp;nbsp; 9&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;// Phase A: WATT, VAR, VA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;// Phase B: WATT, VAR, VA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;// Phase C: WATT, VAR, VA&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;#define MAX_45BIT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (1LL &amp;lt;&amp;lt; 44)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;#define RANGE_45BIT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (1LL &amp;lt;&amp;lt; 45)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;#define ROLLOVER_THRESHOLD&amp;nbsp; (MAX_45BIT / 2)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;static int64_t&amp;nbsp; prev_raw[ENERGY_CHANNELS] = {0};&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;static bool &amp;nbsp; &amp;nbsp; first_read = true;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The raw energy values are reconstructed as signed 45-bit values:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;int64_t assembled = ((int64_t)(int32_t)hr_hi &amp;lt;&amp;lt; 13)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| (int64_t)(hr_lo &amp;amp; 0x1FFF);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Energy conversion currently uses:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;#define ADI_PQLIB_PHASE_POWER_FACTOR 20694066 // AWATT FULL SCALE&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;and:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;double ConvertEnergyType(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ADI_AFE_ENERGY_TYPE energy,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float voltageScale,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;float currentScale)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double energyValue;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;energyValue =&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((double)energy) /&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;((double)ADI_PQLIB_PHASE_POWER_FACTOR);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return energyValue;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Since RD_RST_EN is disabled, I currently perform accumulation externally in the MCU using deltas between consecutive readings:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;static int64_t safe_delta(int64_t current, int64_t previous)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int64_t delta = current - previous;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&amp;nbsp; &amp;nbsp; &amp;nbsp; (delta &amp;gt;&amp;nbsp; ROLLOVER_THRESHOLD) delta -= RANGE_45BIT;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else if (delta &amp;lt; -ROLLOVER_THRESHOLD) delta += RANGE_45BIT;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return delta;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Main concerns:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Is this configuration correct for obtaining accumulated energy values every second using EGYRDY interrupts?&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Is the energy conversion method correct?&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;Currently I only divide by:&lt;/span&gt;&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;ADI_PQLIB_PHASE_POWER_FACTOR = 20694066&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;However, I am unsure whether:&lt;/span&gt;&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;voltage scaling&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;current scaling&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;EGY_TIME&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;ADC full-scale&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;internal DSP accumulation timing&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;must also be included in the conversion to obtain Wh or kWh.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Is the external accumulation approach correct when RD_RST_EN = 0?&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;Since the registers do not appear to reset after each read, I assumed that the correct approach is to calculate a delta between consecutive reads.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Is the rollover handling method correct for the 45-bit signed accumulators?&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;When calculating:&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;int64_t delta = current - previous;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;sometimes:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;previous &amp;gt; current&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;delta becomes negative&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;total accumulated energy decreases&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Is this expected behavior due to:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;signed energy accumulation,&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;bidirectional power flow,&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;register rollover,&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;or is the accumulation procedure incorrect?&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;For validation purposes:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;If the measured load is approximately 4 kW constant active power, should the accumulated active energy increase approximately:&lt;/span&gt;&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;4 kWh after 1 hour,&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;8 kWh after 2 hours,&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;and approximately 1.11 Wh every second?&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Currently the accumulated energy appears to grow significantly faster than expected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Thank you very much for your support.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>