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 Hardware Handshake

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

View user's profile Send private message

RS232 Hardware Handshake
PostPosted: Thu Aug 13, 2015 8:21 pm     Reply with quote

Chip 24FJ128GA306 has Hardware RTS/CTS flow control lines.

I can't see anything in the CCS #use RS232( ) that even mentions hardware flow control.

On earlier projects (PIC18) I implemented RTS/CTS in my code.

Does CCS have any functions to enable/use the built in Hardware RTS/CTS.

I some how don't think the hardware can do that automatically. I guess I'm being a little lazy and could study the data sheet some more. !

My question is:

Must I handle the UARTs built in Flow control ?

Thanks
Ttelmah



Joined: 11 Mar 2010
Posts: 19382

View user's profile Send private message

PostPosted: Fri Aug 14, 2015 12:26 am     Reply with quote

It is in #use RS232. However _only__ if you enable buffering. Look again. It is a huge section entitled 'Flow Control Options', after the section 'Serial Buffer Options'. You can specify the pins for RTS/CTS, what level to use, and control the actual timing involved (there is a misprint in the manual here, with the FLOW_CONTROL_MODE option referring to RTS, when it should refer to CTS). SIMPLEX_MODE controls RTS.

Are you sure you are using the current manual?.
soonc



Joined: 03 Dec 2013
Posts: 215

View user's profile Send private message

Thanks
PostPosted: Fri Aug 14, 2015 5:07 am     Reply with quote

Ttelmah wrote:


Are you sure you are using the current manual?.


Thanks You nailed it.

As the V5.048 IDE debugger really is not working (it is being fixed, I hope)
I moved down to the V4.124 IDE and of course the help file does not include "Flow Control Options" in the #use RS232

Thanks again.
soonc
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