Measure USB1_VBUS via internal ADC?

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

Measure USB1_VBUS via internal ADC?

1,044 次查看
dav1
Contributor V

Is there a way for the LPC to measure the VBUS voltage via its own ADC? 

not sure how the "VBUS_valid" thresholds are measured internally in the chip (or usb phy?)

I found the VBUSVALID_THRESH register, but that doesn't really give me the value of VBUS unless I step through it up and down a few times, not really precise. I'm mainly after being able to read-out a 1-2digit value of what VBUS is at any given time. (ps. boards already fabbed, and no tap from vbus to an adc input pin)

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

1,024 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

VBUS_valid and USB1_VBUS Threshold input level are the same. Regarding VBUS threshold, it depends on if your device is connected to a high-power or a low-power host. for example, In device mode on LPC55, our device tolerance slightly exceeded USB 2.0 spec. requirement, VBUS_valid is 4.192V.

ZhangJennie_0-1660294956346.png

 

Thus if USB module detects  USB1_VBUS  is less than 4.192. USB module can't work normally.

Hope this helps,

Jun Zhang

0 项奖励
回复