DSPRelated.com
Forums

Blackfin RS232

Started by sriram2480 October 28, 2003
Hi all
My application requires sending of the data after receiving RTS
signal (either can be L-H or H-L).....i would like to know what all
registers on blackfin will be help catch that signal......does
anyone has any software code of that type...Would be very helpful in
my application
Thanks
Rwgrads
Sriram



--On Tuesday, October 28, 2003 7:11 PM +0000 sriram2480 <>
wrote:

> My application requires sending of the data after receiving RTS
> signal (either can be L-H or H-L).....i would like to know what all
> registers on blackfin will be help catch that signal.

The Blackfin lacks hardware handshaking. RTS and CTS must be routed to bit I/O
and sampled/set with software. If the inbound signal is off, you should
disable the transmitter on the next transmit interrupt. If it's on and you
have characters to send, you should enable the transmit interrupt. If the
transmit interrupt is off, sample the signal in your background loop or timer
interrupt handler. If it's on, sample it in your transmit interrupt handler as
well.

Because the handshake is handled by software, there will be latency from when
it's asserted to when characters stop getting transmitted. The peer should
assert the signal well before it runs out of buffer, to allow for that latency.