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

RS232 setup for the 18F27K42

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



Joined: 01 Oct 2018
Posts: 2

View user's profile Send private message

RS232 setup for the 18F27K42
PostPosted: Mon Oct 01, 2018 10:01 am     Reply with quote

#USE RS232 doesnt want to behave for the 27K42. This always worked for the 26K22...
Code:
#USE RS232(BAUD=19200,UART1,STREAM=HOST,ERRORS)
But I get "U1RX not defined errors.
neither of
Code:
#USE RS232(BAUD=19200,UART1,XMIT=PIN_C6) or
#USE RS232(BAUD=19200,UART1,XMIT=PIN_C6,RCV=PIN_C7)
work either.
(PS, clock is 64MHz)

Does someone have a UART code example for the 27K42?
Many Thanks
Gary
Ttelmah



Joined: 11 Mar 2010
Posts: 19219

View user's profile Send private message

PostPosted: Mon Oct 01, 2018 10:10 am     Reply with quote

Look at the sticky near the top of the forum for #PIN SELECT.
On the 27K42, the UART TX and RX are both PPS peripherals.
You are also going to meet the same issue with a lot of other peripheral (timer inputs, SPI etc.).
gfrazier12345



Joined: 01 Oct 2018
Posts: 2

View user's profile Send private message

RS232 setup for the 18F27K42
PostPosted: Mon Oct 01, 2018 1:56 pm     Reply with quote

Thank so much!
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