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.
8 years, 6 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
8 years, 6 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.