how to use USB in LPC1766

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

how to use USB in LPC1766

1,014 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by born4elex on Wed Jan 30 09:42:55 MST 2013
Hi all,
I am beginner to LPC1766 device family. Currently I am working on project in which I need following USB related tasks.
1. I want to program it via a USB port.
2. I want to send some information to host PC using a software running on PC with same usb port.
3. i also want to connect a barcode reader to my system on same usb port.

First of all i want to know that is this technically possible ?
if yes then which mode Device/Host/OTG works for me ?

any help would be appreciable.
标签 (1)
0 项奖励
回复
1 回复

841 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Linas on Fri Feb 08 08:01:28 MST 2013
Hi,

What do you mean program via USB? Rewrite main program?

If you want to connect your device to PC. Then you should use Device drivers for your LPC. There are examples
with USB bootloader.

If you want to connect something to your USB (LPC1766), then you will need to set LPC1766 as USB Host.

So, switching between Host and device mode is possible. There should be pin on the MCU, which could be controlled

with external switch (switch between Host and Device mode).


Linas
0 项奖励
回复