Transition from battery to 5V on i.mx28

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

Transition from battery to 5V on i.mx28

跳至解决方案
810 次查看
asmushansen
Contributor II

Hi

I'm making a kernel module for my i.mx28 application which is responsible for detecting 5V insertion and then make the system use the 5V supply instead of the battery as the power source for my embedded system.

In the application note An4199 rev. 0, it says that i'm supposed to enable the 4P2 LinReg and switch the DCDC converter to use the 4P2 Linreg(section 4.2.1).

I follow the steps for enabling the 4P2 LinReg as stated in section 3.1.3.1, then i charge the capacitor as stated in section 3.1.3.2 and finally i enable the 4P2 input for DC-DC by following the steps in section 3.1.3.3 where i also adjust the LinReg offset's to avoid contention, as mentioned in section 3.2.3.2.

When i insert the 5V supply after removal, my ISR starts executing the above steps. Meanwhile i have an oscciloscope to measure the output of the 4P2 regulator from a testpin. I notice that when i start the embedded system with 5V as the power source and battery as backup, the voltage of the 4P2 pin is 4.2V. When i remove the 5V source, the 4P2 pin drops to 3.8V(Battery voltage) and finally when i insert the 5V supply again, the voltage on the 4P2 pin drops to 3.14V.

As a result of this, i suspect that the internal DC-DC converter continues to use the battery as a power source, since the power draw from the battery is approx 300mA. I think my problem is that the 4P2 regulator never starts to function properly, but i cannot figure out why.


As mentioned above, i have followed the steps for enabling the regulator and double checked the register values.

I hope some of you may be able to help.

标签 (1)
0 项奖励
1 解答
626 次查看
asmushansen
Contributor II

I found out that the 4P2 LinReg has to be disabled when the 5V is removed. Somehow this is not mentioned in the application of the PMU.

To disable the LinReg, the HW_POWER_5VCTRL[PWD_CHARGE_4P2] has to be set to one. I did all the other steps as described above, but doing this after 5V removal did the trick.

在原帖中查看解决方案

0 项奖励
2 回复数
627 次查看
asmushansen
Contributor II

I found out that the 4P2 LinReg has to be disabled when the 5V is removed. Somehow this is not mentioned in the application of the PMU.

To disable the LinReg, the HW_POWER_5VCTRL[PWD_CHARGE_4P2] has to be set to one. I did all the other steps as described above, but doing this after 5V removal did the trick.

0 项奖励
626 次查看
Yuri
NXP Employee
NXP Employee

Hello,

  Yes, this is assumed implicitly, that the 4P2 LinReg is disabled without 5V. 

"When the application is detected with 5 V, enable the 4P2 LinReg and switch the DC-DC

converter to use the 4P2 LinReg as the input".


Have a great day,
Yuri

0 项奖励