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

USB/RS232 connection

Hi,

I am a beginner in using µvision I have "LPC1788 Developer's Kit" and I want to write a program for my microcontroller in order to receive a message via the USB port and send it via the RS232 port. Does anyone can help me please.

Parents
  • USB-UART function is usually implemented with CDC (Communication Device Class) on USB MCUs.

    Keil MDK-ARM has RL-USB library, which includes CDC example.
    C:\Keil\ARM\Boards\Keil\MCB1700\RL\USB\Device\CDC
    For LPC1788, you may need to touch to USBD_Init() (usbd_LPC17xx.c), to set up PORT_FUNC bits of OTGStCtrl register for the second USB port.

    If you like to be just a user of a USB stack, without dipping in the USB details, this option is yours.

    If you like to play with the source of USB device stack, here is another option.

    MCB1700 Sample Code Bundle for LPC17xx Peripherals using Keil's MDK-ARM
    www.lpcware.com/.../mcb1700-sample-code-bundle-lpc17xx-peripherals-using-keils-mdk-arm

    USBCDC on this example gives full source code of the stack.

    Tsuneo

Reply
  • USB-UART function is usually implemented with CDC (Communication Device Class) on USB MCUs.

    Keil MDK-ARM has RL-USB library, which includes CDC example.
    C:\Keil\ARM\Boards\Keil\MCB1700\RL\USB\Device\CDC
    For LPC1788, you may need to touch to USBD_Init() (usbd_LPC17xx.c), to set up PORT_FUNC bits of OTGStCtrl register for the second USB port.

    If you like to be just a user of a USB stack, without dipping in the USB details, this option is yours.

    If you like to play with the source of USB device stack, here is another option.

    MCB1700 Sample Code Bundle for LPC17xx Peripherals using Keil's MDK-ARM
    www.lpcware.com/.../mcb1700-sample-code-bundle-lpc17xx-peripherals-using-keils-mdk-arm

    USBCDC on this example gives full source code of the stack.

    Tsuneo

Children