Content originally posted in LPCWare by Pax on Fri Sep 14 04:41:34 MST 2012
[SIZE=2]
Quote: Superfred
...I looked into my UART1 init (which I took from the NXP example), and I think that both versions are correct:
You can choose for TXD1/RXD1 the pins 2.0/2.1 (like in the NXP example) or the pins 0.15/0.16 (like your example), at least this is what I understood fron the User Manual.
I think what confuses is that the NXP examples where made for the MCB1700 board and not for the LPCXpresso board, but even there you can use pins 2.0/2.1 for UART1...
Very interesting, I did not even consider the possibility that one could choose two different sets of pins for UART1 Rx/Tx.
I thought NXP had ported the UART1 init code from some other chip and missed to update the pins. Anyway, to be complete they should have had an option to choose pin sets.
I btw use an Embedded Artists motor control prototype board for my current, early work, and there you are forced to use [/SIZE][SIZE=2][SIZE=2]pins 0.15 and 0.16.[/SIZE]
[/SIZE]