hello everybody.I want catch directly 1Hz frequency from pin's of com port (in other word if i connect one led directly to the serial port it regularly on and off).Is it operative and how?
hello everybody.I want catch directly 1Hz frequency from pin's of com port (in other word if i connect one led directly to the serial port it regularly on and off).Is it operative and how?
Man ....
U r using which type of serial comm RS232 .... then to check that ur serial port is working or not just short pin nos 2 & 3 with any metal body and open Hyperterm of the PC and check that whatever you are writing is getting back to u or not .....
if it is then the comm lines are healthy ....else it is faulty .....[]
I think in your case u need to use the RTS pin.
The EscapeCommFunction API enables u to do so.
u can find it here:
http://msdn.microsoft.com/en-us/library/aa363254(VS.85).aspx
just use the RTS setting function and and sleep function.