CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug Reports on this forum. Send them to support@ccsinfo.com

PIC18F26K40 UART PPS

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
soonc



Joined: 03 Dec 2013
Posts: 157

View user's profile Send private message

PIC18F26K40 UART PPS
PostPosted: Thu Oct 19, 2017 5:51 am     Reply with quote

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: 13389

View user's profile Send private message

PostPosted: Thu Oct 19, 2017 6:10 am     Reply with quote

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: 157

View user's profile Send private message

PostPosted: Thu Oct 19, 2017 9:23 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group