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 CCS Technical Support

16F1825 - EUSART alternate pin selection

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



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

16F1825 - EUSART alternate pin selection
PostPosted: Tue Nov 08, 2011 9:28 am     Reply with quote

Hello,
can anybody tell me how to switch the EUSART for alternate pins C4 and C5?
I have just tested that the basic "#use uart" sets it to A0 and A1 as default.
(which seems weird to me since RXDTSEL,TXCKSEL would therefore be set to 1 as default)

I guess I could use "#pin_select" directive, but I do not know what the correct function name is.

I am using 16F1825.

Regards,
Meereck
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Tue Nov 08, 2011 9:35 am     Reply with quote

Try:

#use rs232(..., UART1, ...) // For default

or

#use rs232(..., UART2, ...) // For alternate pins.

RF Developer
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Wed Nov 09, 2011 3:22 am     Reply with quote

Thanks, it works.
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