Hi All,
I am using BQ79731 in my project. i connected shunt resistor as current sensor to BQ79731
SRP1 & SRN1 ( Current sense Channel) pins respectively.
Reading voltage drop across shunt.
input range to SRP1 & SRN1 channel is 275mv to -275mv.
i am getting positive voltage value (275mv) properly but facing issue in negative voltage value ( based on current flow).
when i apply negative voltage to Current channel i get positive voltage only but some variation.
below is my code snap.
there total 3 register with 24 bit data allocated for SRP1 & SRN1 ( Current sense Channel).
#define VLSB_CS (0.0000001f) /* factor to get actual voltage */
uint32_t rawData = 0; /* CS ADC result is in 24Bit format with 3 BYTE register */
float I_CS_cond_mV[2] = {0};
sint32 rawData_s32 = 0;
Query : How to get negative voltage across current channel in software.(physically -ve voltage applied).
please help me resolve this issue.