Detecting Dedicated Charger or Charging Downstream Port via DM_STATE register on RT1064

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

Detecting Dedicated Charger or Charging Downstream Port via DM_STATE register on RT1064

936 次查看
gabrielharrison
Contributor III

Hi,

We are implementing charger detection on an RT1064 using the details in "42.3.7 Charger detection" of the reference manual.

The final stage of the detection required DP to be pulled high and DM_STATE monitored.

I have had a look a the I.MX6 example on Linux and it looks like it may be doing it externally. See https://community.nxp.com/t5/i-MX-Processors/i-MX6-USB-host-detection/m-p/875191

Is there a register to pull DP high?

Thanks,

Gabriel

标签 (1)
0 项奖励
4 回复数

881 次查看
gabrielharrison
Contributor III

Has anyone got a solution to this?

0 项奖励

854 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @gabrielharrison,

You can control the pull-up using the following register:

USB_nUSBCMD[RS].

Best Regards,

Alexis Andalon

0 项奖励

908 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @gabrielharrison,

The charger detector is compliant with the Battery Charging Specification (rev 1.2). According to this specification, I think the pull-up logic is on the side of the charger and the difference between DP/DM state will let the detector known which kind of charger is detected.

Let me know if this helps you.

Best Regards,

Alexis Andalon

0 项奖励

906 次查看
gabrielharrison
Contributor III

Hi Alexis,

Thank you for your reply. Unfortunately is hasn't answered the question. A pull-up needs to be applied to test if the DP and DM lines are connected in the charger.

What I'm trying to establish is if the 1064 module has a mechanism to apply the pull-up to do the test.

Does anyone know this?

Gabriel

0 项奖励