PDA

View Full Version : flow control



pierre2030
- 12th February 2006, 17:13
-hi,I'm doing my final year project. I'm using the pic16f877a to modulate the data send from PC via RS232. In order to avoid
data overflow, Flow Control technique should be using. As I know, Pin RTS(request to send) and Pin CTs(clear to send) in RS232 need to be
utilized if i used Flow Control technique.
-can anyone tell me the detail about how to write the programme in Picbasic for flow control?
-which pin i should connect in Pic16f877a for RTS and CTS?

thank u

sougata
- 15th February 2006, 04:53
Hi,

You may use any pin, which you should set high just before your send routine and poll for any other pin to be set high by the computer before actually dumping the data. MAX232 supports two TX and two RX lines so there should be no problem interfacing. The same goes true for the Hserout. Have a timeout so that your loop is not endless. However it would be better to use interrupts to poll for the CTS if you would do other jobs than just sit dumb in a routine.

Regards

Sougata