USB attaching and detaching in firmware

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

USB attaching and detaching in firmware

668 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by pra18 on Wed Jul 23 08:19:03 MST 2014
Hi All,


I am trying to figure out how to realise in firmware, the attaching and detaching of USB for lpc435x.

For instance in one of the earlier ARM9 I worked on, it was like Setting and Clearing via GPIO TEST_DP Pin for attaching and detaching of the USB.

Does the lpc435x have such a pin which can be SET/CLEAR to attach and detach the USB bus?

Thanks in advance,
标签 (1)
0 项奖励
回复
1 回复

648 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by embd02161991 on Fri Aug 08 17:11:19 MST 2014
Hi,

The RS bit (Run/Stop) bit in the USB Command register (USBCMD) can be used for an attach/deattach event.Writing a 0 to this bit will cause a detach event.Writing a one to this bit will cause the device controller to enable a pull-up
on USB_DP and initiate an attach event.

Thanks,
NXP Technical Support
0 项奖励
回复