11 months ago.

Why does USB serial port definition occupy UART0 pins?

Hi, I'm using an LPC1768 board and I'd like to use the USB as a serial port and at the same time freeing UART0 pins (P0.2 & P0.3) I followed the mbed example here

  1. include "mbed.h"

Serial pc(USBTX, USBRX); tx, rx

int main() { pc.printf("Hello World!\n"); }

but P0.2 & P0.3 always operate as a UART, I tested this by attached an external FTDI cable and I get 2 serial powers (one through UART0 and the other through USB)

looking at USBTX and USBRX pin definitions they equate to P0_2 and P0_3 respectively, is there a way to operate USB serial without occupying UART0 pins


Question relating to:

Rapid Prototyping for general microcontroller applications, Ethernet, USB and 32-bit ARM® Cortex™-M3 based designs
Comment on this question
Be the first to answer this question.

To post an answer, please log in.