PORTS Forum

Ports and Interfaces => Serial Ports => Topic started by: Prasad on September 25, 2012, 11:14:41 pm

Title: using ST16C1550 for switch position detecting
Post by: Prasad on September 25, 2012, 11:14:41 pm
Hi,

I have a 16c550 UART interfaced externally to a Blackfin DSP . I want to use this UART for sensing position of a 3- pole switch.
For this I am thinking of the RS232 modem control lines to interface to the key positions and upon detecting a particular position, the corresponding control line will go high or low( interrupt or polling based)

Any idea how to realise this logic.

Thanks ,
Prasad
Title: Re: using ST16C1550 for switch position detecting
Post by: Jan Axelson on September 26, 2012, 01:16:18 pm
In .NET, see the SerialPort class's CtsHolding, DsrHolding, RtsEnable, and DtrEnable properties.

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx