Ports
June 19, 2013, 06:14:53 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Make serial port continuously ON-OFF  (Read 1283 times)
chavantushar
Member
***
Posts: 12


« on: November 11, 2011, 10:12:07 am »

I want to make serial port continuously ON-OFF using C or C++ or .NET.Can anyone please suggest me code required for it?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1642


WWW
« Reply #1 on: November 11, 2011, 10:23:00 am »

What do you mean by "continuously ON-OFF"?

Jan
Logged
chavantushar
Member
***
Posts: 12


« Reply #2 on: November 12, 2011, 04:28:01 am »

In other words you can say "to get 1 and 0(high and low signals) or getting suare wavw at the output of serial port"
Logged
Guido Koerber
Frequent Contributor
****
Posts: 71


« Reply #3 on: November 12, 2011, 06:00:53 am »

You can do that only with the handshake signals, the data signal can not be controlled direct, it is driven by the data shift register.
Logged
chavantushar
Member
***
Posts: 12


« Reply #4 on: November 12, 2011, 09:41:19 am »

Sir,can you please explain in detail?
Thx for ur co-operation.
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1642


WWW
« Reply #5 on: November 12, 2011, 10:37:34 am »

In .NET's SerialPort class, see the RtsEnable and DtsEnable properties.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!