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

serial comminication
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
MCUprogrammer



Joined: 08 Sep 2020
Posts: 221

View user's profile Send private message

PostPosted: Thu Oct 12, 2023 8:50 am     Reply with quote

there is. Now, when sending this 5 bytes of data, I will set the CTRL (PIN_C5) output to high. Is it true that I will set the CTRL (PIN_C5) output to low while reading incoming data? Do you need anything else?
_________________
Best Regards...
MCUprogrammer
_______________________________
Work Hard
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Oct 12, 2023 2:57 pm     Reply with quote

from my fuzzy memory..
you should have #use RS-232(....... ctrl=pin_c5 ) or similar.It's in the manual..
also have a look at the CCS example program code for 'rs-485.c' or similar....
I think the compiler will create code to handle the 'ctrl' pin as needed

sadly help could have come a lot earlier if we'd KNOWN the actual hardware you're using.... seems you have a 'device' that has RS-485 so the PIC needs 'RS-485'

proper RS-485 will use a MAX485 chip and 3 biasing resistors( 120r between A and B, a pullup on A and a pull down on B ) ,check the MAX485 datasheet for values though !!
MCUprogrammer



Joined: 08 Sep 2020
Posts: 221

View user's profile Send private message

PostPosted: Thu Oct 12, 2023 11:26 pm     Reply with quote

Just adding this is enough. enable=PIN_C5. I looked.
thanks...
_________________
Best Regards...
MCUprogrammer
_______________________________
Work Hard
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