Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 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
https://developer.mbed.org/handbook/SerialPC
- 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
thanks