Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

USB interfacing of LPC2378 with PC

Status
Not open for further replies.

sukhdeepmankoo

Member level 2
Joined
May 14, 2009
Messages
47
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,616
lpc2378

hi everybody,
I want to interface LPC2378(ARM7TDMI-S) microcontroller with PC using USB port. where LPC2378 is a device controller and PC will act as Host controller. I want to write code in VB6 on PC site. how can i do programming in VB6? is there any special DLL exist,where it will be linked into VB6?

Kindly tell me.

Thanks
Sukhdeep Singh
 

free rtos for lpc2378

Hi !
There are several questions you must answer before do anything with USB PC sw...
1) What is your OS for lpc2378 if any ? If you use FreeRTOS there is a nice port of it in yahoo LPC2000 group with source code, manuals etc... I have uploaded there such port with custom USB driver included for lpc2368, but as far as I know that is not a problem...
2) If none OS - you can use USB driver from LPC2000 and port it easy to your project.
3) What kind of driver do you need ? USB.org defines several device classes for which Windows provide standard driver. (for example CDC device driver for serial ports). If you can use such driver for your project - then simply add it in device and access device from PC with build in function. I'm not falimiar with VB but in C# there is ComPort class for example... SO you don't need to write any PC USB driver !!! Also what is requireed transfer ? Bulk, Isohronous, Interrupt or Control ?
4) If you prefer to use custom driver - then write your own ... Such driver is existing in LPC200o FreeRTOS port... about PC dll and driver - if you plan to use such driver , let me know and I'll post some details about it , BUT I strongly recommend you to use some driver providedby Windows.
Regards !
5) Finally here is a sample driver for USB (in attachments)...

And don'tforget helped me button if I helped you ;)
 

    V

    Points: 2
    Helpful Answer Positive Rating
windows to usb lpc2368

Thanks a lot.

Added after 7 minutes:

How can i define USB as CDC? I want that i should not write driver for usb on PC side. But taking advantage of Window XP. how can i communicate USB port(PC) with LPC2378. where LPC2378 is able to sent and receive message from PC.

Thanks for Help.
 

lpc2378 usb driver

Hi again,
Sorry for delay, hope it's not too late...
Now two use standard CDC PC device driver you must
config your descriptors in proper way... Also there are several standard
device request that USB performs when you attach your device (like GetStandardDeviceDescriptor). These requests are always to Control EP0.
I have attached my source, but they are build for AT91SAM7X and are part from
FreeRTOS distribution. So you can see from source code the behaviour of
the driver and implemented it in LPC...
If you have some question about driver and code, please let me know !
Regards!
 

lpc2378 usb

Thanks,
Kindly give me ur mail ID. I am reading, if i get any query i will need ur help.

Thanks
 

Re: free rtos for lpc2378

Hai you uploaded same coding in the files of USB and also USB descriptor. plese change nad upload the USB descriptor file
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top