12 years ago.

How about USART0 of LPC812?

It seems mbed has included everything in one class libaray?

After searching information for USART0 of LPC812, I decided to ask questions here.

LPC812 has Switch matrix for GPIO layout. How to do that in mbed platform? If I decided to use USART0 in P0_0/P0_4, as same as bootloader does. How to do that?

The reference source uses constructor like Serial pc(USBTX, USBRX), how to define that in LPC812? What is USBTX/USBRX, I can not find their definitions.

Anyway, please release a simple serial program for LPC812MAX. I know IRC 12MHz is enough for serial comm, which has been verified in Keil.

Question relating to:

Hello, USBTX and USBRX are defined in the PinNames header file https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PinNames.h

    // Serial to USB pins
    USBTX = P0_6,
    USBRX = P0_1,

Regards,
0xc0170

posted by Martin Kojtal 26 Nov 2013

Serial works exactly the same on the LPC800-MAX as on other platforms. You just give the pins you want tx and rx on in the constructor. Only for Serial over the USB connector you need to do minor soldering: https://mbed.org/handbook/mbed-NXP-LPC800-MAX-Getting-Started

posted by Erik - 26 Nov 2013

Thanks. I have verified the code. It works on my LPC812MiniKit.

posted by Kai Liu 27 Nov 2013
Be the first to answer this question.