5 years, 2 months ago.

Can i use a shared pin in two declarations?

On LPC1768 Pin 13 is both SCK on SPI and TX on serial. For a GPS receiver I only need RxD @ 9600 baud. since the receiver only provides data and needs no input.

Can I use pin 14 als RxD for a UART while still using pin 13 as part of an SPI bus?

1 Answer

5 years, 2 months ago.

Yes, just make sure you use 'NC' instead of a real pinname for the unconnected TX pin when you declare the Serial port object.

Accepted Answer