Microchip
直播中

王凤英

7年用户 239经验值
私信 关注
[问答]

ADE7758的初始化和校准过程

您好,我正在尝试用ADE7758与PIC18F4520单片机接口来测量峰值电压、有功能量、表观能量、电压有效值、电流有效值、功率因数等。我已经阅读了ADE7758的数据表,并在PIC18F4520上配置SPI。但是我还不了解ADE7758的初始化和校准过程。启用HPF、LPF、PGA1、PGA2等?OpMod和增益寄存器的配置?任何其他建议…我已编写代码作为附件。

以上来自于百度翻译


      以下为原文

    Hello,

I am trying interface ADE7758 with PIC18F4520 MCU to measure Peak Voltages,Active Energy, Apparent Energy, Voltage RMS, Current RMS ,Power Factor etc. I have read datasheet of ADE7758 and configure SPI on my PIC18F4520.

But I have not understood ADE7758 Initialization and calibration process.

When to Enable HPF, LPF , PGA1,PGA2 etc. ?
Configuration of OPMODE and GAIN Register ?

Any other suggestion ..

I have written code as attachment .

--
KR
   Attachment(s)

123.zip (7.25 KB) - downloaded 214 times

回帖(16)

张娜

2019-6-3 08:28:44
听起来不错:你能看懂任何价值观吗?它们有道理吗?此外,你有两个“同时”(1)

以上来自于百度翻译


      以下为原文

    Sounds good enough:
can you read any values? Do they make sense?
 
Also, you have two "while(1)"
举报

周玲玲

2019-6-3 08:44:34
是的……微笑:我有两个小时(1)。我刚点了。ADC。可能会在2-3天内收到。如果这些设置只是默认的,它们的目的是什么?我的意思是申请。我正在使用CTS的三相、三线制。

以上来自于百度翻译


      以下为原文

   
Yes ...Smile:  I have two while(1)s.
I have just ordered.ADC . May receive in 2-3 Days.
 

 
If these setting just to kept  Default ..For what Purpose they meant for ? I mean to application.
I am working on 3-Phase, 3-Wire System with CTs .
 
--
KR
举报

张娜

2019-6-3 08:53:44
如果电压和电流传感器的读数太小或太多,那么可以使用增益,并且基本上不需要调整它们,我也不需要中断或故障警报:如果需要的话,您可能需要设置那些寄存器,但是……我以后留着!

以上来自于百度翻译


      以下为原文

    Gain could be used if the readout you achieve with your voltage and current sensors is too little or too much - and I basically never needed to adjust them
I also did not need interrupts or Fault alerts: in case you want them, you may want to set those registers but... I'd keep that for later!
举报

周玲玲

2019-6-3 09:03:14
再次你好,我能够读ADE7758的R/W寄存器的R/W值,并且能够读出默认值。这意味着SPI通信工作正常。莫尔斯怀疑!什么时候做校准?怎么办?如何将寄存器值转换为实际值?——卡兰

以上来自于百度翻译


      以下为原文

    Hi Again,
 
I am able to R/W values for R/W register of ADE7758 and able to read default values.
Means SPI Communication is working fine.
Mores doubts  !!
When to do calibration ?
n How ?
How to convert register value to actual value ?
--
Karan
举报

更多回帖

发帖
×
20
完善资料,
赚取积分