Software managed RTS

On a Stamp9G20, I want to connect the ttyS5 (TXD4, RXD4) to a RS485 driver but this interface doesn't have a dedicated RTS line.
Can I manualy (in software) toggle an output (ie PB17) to simulate the RTS line?
Do I need a specific serial port setup?

Re: Software managed RTS

You can use the GPIO sysfs interface to toggle the RTS line (any unused PIN that fits your needs).
See http://armbedded.eu/node/258 for an how-to.

Syndicate content