Hi,
I'm working on LPC2148 development board, and it supports USB 2.0[as in the user manual given UM10139], now I need to send the character from PC through USB on to the micro controller, and whatever the characters comes from the PC in such a way that able to read the characters and write to the controller[and i'm checking the output on the LCD in the LPC2148 controller].
Tools Used:
IDE: Keil uVision 4 and hyper terminal Operating system: Windows 7 USB: USB 2.0 LCD: 2x16
Kindly suggest me any thing i'm missing, as I am referring LPC2148 user manual and google search on how to work on the above thing.
Thank you.
Below is the link I had gone through: "http://www.keil.com/pack/doc/mw/USB/html/dev_cdc_tutorial.html"
But i'm not using RS232 only i'm trying to communicate through USB.
In the development board already they have installed USB Boot loader hex file, The USB port is not automatically detecting as when we put a pen drive or any USB to the ports of PC, but when switching ISP and RESET button simultaneously the USB port is detected since they have preloaded the USB boot loader file.
So - if you don't like a virtual serial port, why doesn't your original post contain information describing why do not want to go that route?
You are only "trying to communicate through USB" - but the virtual serial port will manage just that.
Very sorry for the delaying the conversation.
"You are only "trying to communicate through USB" - but the virtual serial port will manage just that".
But i'm just using USB type B connector from development board through PC, and I had gone through virtual serial port links and it was related to drivers[should I install it??]
I'm trying to communicate from PC TO MICRO CONTROLLER BOARD such that in the windows environment for example if I write a strings(say "HELLO") from notepad application using system keyboard, and USB should understand the strings in the system side and it should and print on the LCD of controller.
Notepad is an editor. What you write in an editor will not magically leave your oomputer over a USB cable unless you save the file to a USB-connected disk or similar.
So maybe you instead was thinking about HyperTerminal? If you configure your embedded device as a virtual serial port, then you can open that serial port in HyperTerminal, and write text there that will arrive in your embedded device. Or the embedded device could do printf("Hello World!\n"); and have the text show up in HyperTerminal.
I'm not sure what USB connector type B would matter - you can run virtual RS-232 communication over a USB cable if the cable have type A, B, C, mini, micro, ... connectors.
In the end, a USB device will, when connected, report what capabilities it supports to the computer. So it can say "I'm a disk". Or "I'm a scanner". Or "I'm a serial port".
If it enumerate as a known device type, then Windows already have the required drivers. But you can also define own types of devices but then you also have to write and install custom drivers on the computer.
So the best choice is to have your device behave as one of the commonly supported devices so you don't need to worry about drivers.
You have argued against it several times, but still haven't given any real indication why a virtual serial port wouldn't be an excellent choice to interface your device with the computer. And there are lots of sample code for how to do it.
Thank a lot for the explanation sir. Will note the above points and work on it.