Author Topic: using ST16C1550 for switch position detecting  (Read 4115 times)

Prasad

  • Member
  • ***
  • Posts: 16
using ST16C1550 for switch position detecting
« 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

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 2812
    • Lakeview Research
Re: using ST16C1550 for switch position detecting
« Reply #1 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