Problems with the isense measurements in the mc33771C

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problems with the isense measurements in the mc33771C

跳至解决方案
1,150 次查看
David_Estevez
Contributor I

Good morning,

We are using the s32k144 microcontroller connected to the MC33664 adapter as hardware and the MC33771C as BMS together with the monitoring sample program. We are also using a 100uOhm shunt resistor.

When measuring the values ​​in the program with the "domeasuraments" function, it reads the voltage values ​​correctly but the Isense values ​​are always 0. We also activate the Isense measures enable bit in the SYS_CFG1 register. Could you tell us what the problem could be?

Thanks in advance!

0 项奖励
回复
1 解答
1,114 次查看
diazmarin09
NXP TechSupport
NXP TechSupport

Hello David, 

You are correct, the I_MEAS_EN bit from the SYS_CFG1 register enables or disables current measurement (disabled by default).

The BCC_Meas_GetIsenseVoltage should be useful for you as it reads the ISENSE measurement and converts it to [μV].

Could you please share your ISENSE pins configuration?

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,133 次查看
diazmarin09
NXP TechSupport
NXP TechSupport

Hello David, 

I hope all is great with you. Thank you for using the NXP communities.


Could you please share more details about your design? I mean, are you using an evaluation board? What is the project or libraries used in your project? 


Regards,
David

0 项奖励
回复
1,119 次查看
David_Estevez
Contributor I

We are using as hardware a board made up of the s32k144, the MC33664_sds and the MC33771C.We are also using a rshunt of 100uOhms.

About the software we are using the BCC_S32K144_Monitoring program. We change the initialization of the SYS_CFG1[ I_MEAS_EN]=1.  So we initialize the SYS_CFG1 register with the 0x1201 value, I think that is correct.

For getting the voltage of the cells we use the BCC_Meas_GetCellVoltages function and we receive the correct values. But when measuring the current value and we use the BCC_Meas_GetIsenseVoltage function we only receive a 0. 

Measuring with a multimeter we know that between the ISENSE+ and ISENSE- pins there is 0.5mV so the value of the current should not be 0.

I attach you the main.c to see if you see any errors in the main functions.

Thanks in advance!

 

0 项奖励
回复
1,115 次查看
diazmarin09
NXP TechSupport
NXP TechSupport

Hello David, 

You are correct, the I_MEAS_EN bit from the SYS_CFG1 register enables or disables current measurement (disabled by default).

The BCC_Meas_GetIsenseVoltage should be useful for you as it reads the ISENSE measurement and converts it to [μV].

Could you please share your ISENSE pins configuration?

0 项奖励
回复
1,064 次查看
David_Estevez
Contributor I

Hello again,

The problem was that we were sending the wrong value to SYS_CF1 so we were not enabling the I_MEAS_EN

Thank you!

0 项奖励
回复