View previous topic :: View next topic |
Author |
Message |
soonc
Joined: 03 Dec 2013 Posts: 215
|
PIC18F26K40 UART PPS |
Posted: Thu Oct 19, 2017 5:51 am |
|
|
Looking at the .h file for PIC18F26K40
I'm a little confused about the pin selection values for UART1 and UART2.
Input Functions:
U1RX U2RX and RX1 RX2
Output Functions:
U1TX U2TX and TX1 TX2
What's the difference between U1RX or RX1 etc. ? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19518
|
|
Posted: Thu Oct 19, 2017 6:10 am |
|
|
Either.
It's for reverse compatibility.
If you look at the data sheet, MicroChip calls the UART TX/RX pins on this chip TXx and RXx so these names are made available by CCS for the UART. However a lot of older chips have their TX and RX pins called UxTX and UxRX, so CCS give these names as well.
To match the data sheet, on a new project, I'd use TX1/RX1 and TX2/RX2. |
|
|
soonc
Joined: 03 Dec 2013 Posts: 215
|
|
Posted: Thu Oct 19, 2017 9:23 am |
|
|
Ttelmah wrote: | Either.
It's for reverse compatibility.
If you look at the data sheet, MicroChip calls the UART TX/RX pins on this chip TXx and RXx so these names are made available by CCS for the UART. However a lot of older chips have their TX and RX pins called UxTX and UxRX, so CCS give these names as well.
To match the data sheet, on a new project, I'd use TX1/RX1 and TX2/RX2. |
Thanks I appreciate the clarification. |
|
|
|