This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430F6733A:如何更改分流电流测量的增益

Guru**** 2966500 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1662205/msp430f6733a-how-to-change-gain-for-shunt-current-measurement

器件型号: MSP430F6733A

尊敬的 Champs:

如何在单相电能计量应用中更改分流电流检测的增益?

我使用的是定制电路板、而不是 TI EVM、因此无法使用 EMDC GUI。 我正在寻找的是应用软件可能发生的变化。

 

此致、

Kien

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Kien:

    如果使用的是电能测量库、则在 EM_userconfig.c 中、adcChannelArray 具有每个通道的增益设置。 增益选项为  

    SD24_B_GAIN_1
    SD24_B_GAIN_2
    SD24_B_GAIN_4
    SD24_B_GAIN_8   
    SD24_B_GAIN_16  
    SD24_B_GAIN_32   
    SD24_B_GAIN_64   
    SD24_B_GAIN_128
    或者、      可以调用 SD24_B_setGain(uint16_t baseAddress、uint8_t 转换器、uint8_t 增益)函数。
    如果要使用寄存器级编程、则设置 SD24BINCTLx 寄存器、其中 x 是要调整上的 ADC。
    此致、
    Luke