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

rs232 prints rubish
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
gaugeguy



Joined: 05 Apr 2011
Posts: 338

View user's profile Send private message

PostPosted: Tue Sep 16, 2025 1:17 pm     Reply with quote

That processor uses PPS (peripheral pin select). Please see the sticky on how to use #pin_select
scanan



Joined: 13 Aug 2004
Posts: 76
Location: Turkey

View user's profile Send private message Visit poster's website

PostPosted: Wed Sep 17, 2025 12:50 am     Reply with quote

gaugeguy wrote:
That processor uses PPS (peripheral pin select). Please see the sticky on how to use #pin_select


By using
#pin_select U1TX=PIN_C6
#pin_select U1RX=PIN_C7
problem solved

many thanks
_________________
Dr Suleyman CANAN
R&D Electronic Engineer
https://suleymancanan.wordpress.com

Do whatever you do with amateur spirit -
But always feel professional.
Ttelmah



Joined: 11 Mar 2010
Posts: 19944

View user's profile Send private message

PostPosted: Thu Sep 18, 2025 10:13 am     Reply with quote

A a comment, this line is wrong:

setup_spi(SPI_SS_DISABLED);

This turns off SPI slave select. It does not disable the SPI
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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