Gonzalo Delgado

Implementing a flow control (RTS/CTS) for SCI

Discussion created by Gonzalo Delgado on Jun 23, 2006
Latest reply on Jun 25, 2006 by David Payne
I am trying to implement a flow control (RTS/CTS) so I can be able to download a textfile using the serial port and the hyperterminal. After I have sucessfully recevied the text file I will transmit it using the SMAC protocol.
I am using 2 SARD boards, SMAC 4.1a .
The problem that I am having is that I cannot receive all bytes and program them to the Flash at the same time. I have to tell the PC (hyperterminal) to stop sending me more bytes (so I need a flow control).
I have checked the board schematic and the RTS and CTS pins are connected to the DB9 terminal, so I don't need any other connections. I was planning to declare the CTS pin as a KBi or just an input pin and RTS as an output
How is the logic from the RTS/CTS flow control? If I receive a logic 1 in the CTS that means the PC ir ready to transmit and if I put the RTS high that means I am ready to receive??
Any suggestions on how to implement this?
Thanks :smileyhappy: