LPC1800 VBUS Pin

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

LPC1800 VBUS Pin

4,419 次查看
peter_furtner
NXP Employee
NXP Employee

My customer is using the LPC1800 for a USB application. Now they want to use the VBUS Pin of the USB1 Interface to discover Connect/Disconnect conditions. How is this done?

Regards,

Peter .

标签 (3)
0 项奖励
回复
7 回复数

4,116 次查看
ericding
NXP Employee
NXP Employee

Hi Peter,

Could you explain more of this application?

Is LPC1800 used as a USB host or device?

It's the device's responsibility to actively connect to the host, and host may need to provide power to the device via VBUS pin.

0 项奖励
回复

4,116 次查看
peter_furtner
NXP Employee
NXP Employee

Hi Eric,

the LPC1800 USB1 Interface is used as USB-Device.

The customer wants to discover the case that the USB gets disconneted from the host (i.e. the USB-Cable gets unplugged)

In this case the VBUS Signal on the pin gets LOW (because of the external Pull-Down). But the customer doesn't know, which bit in any of the internal Registers to read to discover this case.

Thanks,

Peter

0 项奖励
回复

4,116 次查看
ericding
NXP Employee
NXP Employee

Hi Peter,

Below descriptions may give you some hint.

pastedImage_2.png

0 项奖励
回复

4,116 次查看
peter_furtner
NXP Employee
NXP Employee

Hi Eric,

the message also says “REMARK: The setting of this bit has no effect if the USB1_VBUS function of P2_5 is enabled through the SFSP2_5 register.“

The customer did enable the USB1_VBUS Signal through SFSP2_5. Otherwise he would not get the external signal into the device.

Still, the question is: How can he read the status of the external VBUS Signal in the device.

Regards,

Peter

0 项奖励
回复

4,116 次查看
ericding
NXP Employee
NXP Employee

Hi Peter,

My understanding of the remark is that writing/setting has no effect, not necessarily means reading. 

Because VBUS is an input signal, not like general I/O.

May be you can test and verify it with a board.

0 项奖励
回复

4,116 次查看
bernhardfink
NXP Employee
NXP Employee

Hi Peter,

P2_5 is an input to the USB1 full speed transceiver which works as a VBUS power detector. This sensing input is then automatically controlling the internal vbus_valid signal.

In case you don't use this transceiver input at pin P2_5, you could use any other GPIO or an ADC input to sense the VBUS signal level. By means of polling or with a level triggered interrupt you can then write by software into the bit USB_VBUS and control the internal signal vbus_valid by software.

Regards,

Bernhard.

0 项奖励
回复

4,116 次查看
ericding
NXP Employee
NXP Employee

Hi Bernhard,

Thanks for your detailed clarification.

0 项奖励
回复