9 years, 11 months ago.

lpc11U24 serial

Hi; i'm using this code to send a char from 'PC' to 'd2' but i recieve the character sent to 'd2' in PC, is it the same serial port ??

  1. include "mbed.h" Serial pc (USBTX,USBRX); Serial d2 (p9,p10); tx, rx

int main() { d2.baud (57600); pc.baud (57600);

while (1) {

d2.putc (pc.getc ());

} }

1 Answer

9 years, 11 months ago.

Yes, the LPC11u24 only has a single UART which can be connected to either p9, p10, or USB.

Accepted Answer

thnx

posted by kar bss 06 Nov 2015