i.MX53 voltage monitoring and shutdown

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

i.MX53 voltage monitoring and shutdown

跳至解决方案
850 次查看
KarelH
Contributor II

Hello,

I am working on i.MX53 loco board now, but I would like to make own board based on loco.

I would like to use Li-Ion battery instead of power supply.

What is the best way to monitor the battery voltage in Linux? I want to be able to shutdown the board when the power goes low.

Probably there will be MC34708 as pmic and an external charger.

Thank you,

Karel Havlovic

标签 (2)
0 项奖励
1 解答
620 次查看
JorgeRama_rezRi
NXP Employee
NXP Employee

Hi Karel,

I don't know much about SW and Linux commands, but I can provide a general scope on how to implement your battery monitor:

First of all, the MC34708 shuts down automatically when the voltage at the BP pin (where the battery is normally connected) drops below VBAT_TRKL[1:0] - 100mV. These bits can be programmed by writting to the MC34708 registers via I2C to the following voltages: 2.8, 2.9, 3.0 (default) and 3.1V. For more info, please see section 7.5.3.5 of the datasheet here:

http://cache.freescale.com/files/analog/doc/data_sheet/MC34708.pdf?fsrch=1&sr=2

If these voltages are not suitable for your application, you can implement the monitor manually through MC34708 ADC channel 2. This channel monitors BP, so your software has to keep checking this channel and shut down when it reaches a certain level.

These are the easiest, fastest solutions since they are already implemented in the MC34708. If none of these works for you, you can implement an external monitor to the battery.

I hope this helps!

Best regards.

Jorge.

在原帖中查看解决方案

0 项奖励
1 回复
621 次查看
JorgeRama_rezRi
NXP Employee
NXP Employee

Hi Karel,

I don't know much about SW and Linux commands, but I can provide a general scope on how to implement your battery monitor:

First of all, the MC34708 shuts down automatically when the voltage at the BP pin (where the battery is normally connected) drops below VBAT_TRKL[1:0] - 100mV. These bits can be programmed by writting to the MC34708 registers via I2C to the following voltages: 2.8, 2.9, 3.0 (default) and 3.1V. For more info, please see section 7.5.3.5 of the datasheet here:

http://cache.freescale.com/files/analog/doc/data_sheet/MC34708.pdf?fsrch=1&sr=2

If these voltages are not suitable for your application, you can implement the monitor manually through MC34708 ADC channel 2. This channel monitors BP, so your software has to keep checking this channel and shut down when it reaches a certain level.

These are the easiest, fastest solutions since they are already implemented in the MC34708. If none of these works for you, you can implement an external monitor to the battery.

I hope this helps!

Best regards.

Jorge.

0 项奖励