how to use USB in LPC1766

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to use USB in LPC1766

580 Views
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.
Labels (1)
0 Kudos
1 Reply

407 Views
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 Kudos