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.
Tool/software: TI C/C++ Compiler
this is my code in which i am receiving data as 02 e0 03 ff ff ff ff ff ff ff ff but getting acknowledge correctly please tell me how to fix this
i2c_start();
i2c_write(0x02);
i2c_write(0xE1);
i2c_start();
i2c_write(0x03);
for(i=0;i<=7;i++)
{
data[i]=i2c_read(TRUE);
}
i2c_stop();
6305.SM72445_USB2ANY_AN_melo_2018Mar.pdfOur group is supporting this device but we are analog power engineers not much able to help you with the coding. Can you refer to the attached and see if this can help you resolve the issue?
i am getting the result as 07 12 E0 81 C0 75 07 from the usb to any in i2c communication for e1 register how can i know voltage and current from it
The first 10 LSBs are for the input current, the next LSBs are for the input voltage etc... as described by the I2C register config. register. table on page 12 of the datasheet for the SM72445.
The input voltage is the voltage measured at the AVIN pin and referenced to the VSSA pin. The full scale (1024) is set by the voltage at the VDDA pin (typically +5V).
The input current is the voltage measured at the AIN pin and is referenced similarly to the AVIN voltage. The relationship with the current depends on the current to voltage relationship of any current sense circuit used.
Output voltage and output current measurements are done in a similar way.
Here's the extraction of part of the register into Vin and Iin for your data, assuming MSB 07 12 E0 81 C0 75 07 LSB:
Best Regards,
Florent
The first 10 LSBs are for the input current, the next LSBs are for the input voltage etc... as described by the I2C register config. register1 table on page 12 of the datasheet for the SM72445.
The input voltage is the voltage measured at the AVIN pin and referenced to the VSSA pin. The full scale (1024) is set by the voltage at the VDDA pin (typically +5V).
The input current is the voltage measured at the AIN pin and is referenced similarly to the AVIN voltage. The relationship with the current depends on the current to voltage relationship of any current sense circuit used.
Output voltage and output current measurements are done in a similar way.
Here's the extraction of part of the register into Vin and Iin for your data, assuming MSB 07 12 E0 81 C0 75 07 LSB:
Best Regards,
Florent