This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interfacing with PC AND LPC2148 controller using USB

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.

Parents
  • 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.

Reply
  • 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.

Children