USB interface

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

USB interface

1,270 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Megahertz on Mon Apr 27 22:44:52 MST 2015
Greetings!

I've been looking around examples/pointers (and granted maybe I haven't been looking in the right places) but I am wanting to interface a PC with the LPC1343 chip.

What I've got is a LPC1343 chip soldered onto a break out board and have been able to write some code to turn on and off a LED. I've even gone as far as to write a small bit of code to control some laser galvanometers and have gotten them to draw a box on the wall. Going further than that I have the chip writing data to a pair of shift register chips which in turn are wired up to some R/2R ladder DAC's which allows me to control the angle of the galvanometers to draw various shapes. Pretty basic stuff....

What I would like to do is to actually send commands from the PC to the device and control the galvanometers from there via USB. I've started digging into the USB standard and have come to the conclusion that I will probably need to write my own device driver for my device as I don't feel that using the windows HID driver would give me enough bandwidth/updates per second. Ideally I'd like to shoot for bulk transfers.

I do have 12+ years programming experience however most of that has been related to game programming (Network, 3D graphics, opengl/directx, etc... etc...) Granted I'm a bit rusty as I haven't done much in the way of programming for the last 8 years or so, I don't feel it will be that difficult to get back into things, read some documentation and cook up a windows driver. I do understand it will take time and I have a bit of a learning curve ahead of me but given my past experience and accomplishments I'm sure I'll figure things out.

I am however new to the world of microcontrollers and have barely just gotten into things.

I've done my share of googling/ youtubing to find some examples or guidance and have for the most part come up empty handed.

Is what I am trying to do even possible with this chipset?

Also I would like to avoid using other peoples libraries if at all possible.

I guess at the most basic level I would like to plug the device in and have windows request the PID/VID and have the device send off the necessary information for windows to even go searching for the correct driver. I think that would be a good start and I can progress from there.

Any thoughts/ideas/pointers to reading material/examples would be greatly appreciated.

Regards,

Gerald

Labels (1)
0 Kudos
Reply
6 Replies

1,232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by John Linq on Tue Sep 01 00:13:12 MST 2015
I use LPC1343 and bertrik's LPCUSB library for my USBCDC project.
0 Kudos
Reply

1,232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Megahertz on Wed May 13 22:45:49 MST 2015
Thanks! =)

I just automatically downloaded the package for my chip. =)  Didnt see the fact that the package 1347 was the one suggested rather than the 1343.

I see the package has some USB examples will start going through them.

Regards,

Gerald
0 Kudos
Reply

1,232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Wed May 13 22:40:21 MST 2015

Quote:
or did I download the wrong thing?



Quote:
download the corresponding toolchain package for the LPC1347 LPCXpresso board:

0 Kudos
Reply

1,232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Megahertz on Wed May 13 22:27:14 MST 2015
Nerd herd,

I looked at the link you provided and downloaded the package at the following location:

http://www.lpcware.com/system/files/lpcopen_2_05_lpcxpresso_nxp_lpcxpresso_1343.zip

Unfortunately, I did not see any examples of USB projects in the code base. Am I just overlooking something? or did I download the wrong thing?

Regards,

Gerald
0 Kudos
Reply

1,232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Megahertz on Thu Apr 30 21:59:00 MST 2015


Thank you for the link. Been a busy week with work, but I will look through it when time allows. =)

Regards,

Gerald
0 Kudos
Reply

1,232 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nerd herd on Tue Apr 28 07:59:04 MST 2015
Hi Megahertz,

We support a software platform called LPCOpen that you can use to take a look at what can be (and has been done) in terms of basic USB communication. Please use one of the three toolchains we support and download the corresponding toolchain package for the LPC1347 LPCXpresso board:

http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc13xx-packages

There should be a few USB examples you can take a look at.
0 Kudos
Reply