读取的0x01.0x02,0x03寄存器的值都为0,读取0x00,0xfe,0xff寄存器值是正常的。测试电路图如下,24V-OUT接了11.5v的电压。
user151383853:
0x01.0x02,0x03寄存器是输入信号的 ADC 结果
The device has two operating modes, continuous and triggered, that determine how the ADC operates following these conversions. When the device is in the normal operating mode (that is, MODE bits of the Configuration Register (00h) are set to '111'), it continuously converts an internal shunt voltage reading followed by a bus voltage reading. After the measurement of the internal shunt voltage reading, the current value is calculated. This current value is then used to calculate the power result. These values are subsequently stored in an accumulator, and the measurement/calculation sequence repeats until the number of averages set in the Configuration Register (00h) is reached. Following every sequence, the present set of values, measured and calculated, are appended to previously collected values. After all of the averaging has been completed, the final values for bus voltage, current, and power are updated in the corresponding registers that can then be read. These values remain in the data output registers until they are replaced by the next fully completed conversion results. Reading the data output registers does not affect a conversion in progress.
The mode control in the Configuration Register (00h) also permits selecting modes to convert only the current or the bus voltage in order to further allow the user to configure the monitoring function to fit the specific application requirements.
In triggered mode, writing any of the triggered convert modes into the Configuration Register (00h) (that is, MODE bits of the Configuration Register (00h) are set to ‘001’, ‘010’, or ‘011’) triggers a single-shot conversion.This action produces a single set of measurements; thus, to trigger another single-shot conversion, the Configuration Register (00h) must be written to a second time, even if the mode does not change.
user5059236:
回复 user151383853:
0x00寄存器配置的是6126h;
user5059236:
回复 user151383853:
0x00寄存器配置的是6126h;
user5059236:
回复 user151383853:
电流测量没问题了。电压读数还是0;00h寄存器配置的是6727h。
Amy Luo:
回复 user5059236:
您好,
功率读数也是0吗,换一种工作模式呢
user5059236:
回复 Amy Luo:
有可能是芯片的问题,准备再买几个试一下。
Amy Luo:
回复 user5059236:
建议从TI授权代理商处购买TI产品,TI授权代理商:www.ti.com.cn/…/gencontent.tsp
user5059236:
回复 Amy Luo:
成功解决,在贸泽电子买了新的芯片,换上就能用了。谢谢了