 |
plc.myforum.ro PLCs users www.plc.myforum.ro!
|
| View previous topic :: View next topic |
| Author |
Message |
ratko Member 3

Joined: 20 Jul 2012 Posts: 524
|
Posted: 19/06/2013 22:22 Post subject: Use a serial port as a Square wave Generator |
|
|
Use a serial port as a Square wave Generator
Richard L. Grier made a good work.
A RS-232 serial port may be used as a counter/timer and frequency meter, with certain limitations.
This application uses of one of the hardware input handshaking lines to count pulses and to make measurements in code based on pulse timing. This example uses the Carrier Detect (DCD) input line plus ground, but either Dataset Ready (DSR) or Clear to Send (CTS) input lines might be used instead.
Download:
http://home.comcast.net/~hardandsoftware/Use%20the%20serial%20port%20as%20a%20Pulse%20counter.doc
Download the EXE (Note the .NET Framework 4.0 is required and must be installed on the target PC).
http://home.comcast.net/~hardandsoftware/FrequencyCounter.zip
Here is an another application and description that may be of interest
Download:
http://home.comcast.net/~hardandsoftware/SquarewaveGenerator.doc
http://home.comcast.net/~hardandsoftware/SquareWave3.exe
Enhanced Serial Port Object for Visual Studio™ 2008 an Visual Studio 2010
Copyright © Richard L. Grier 2010
http://home.comcast.net/~hardandsoftware/enhanced_serial_port_object_for.htm
Download the Enhanced SerialPort code now.
http://home.comcast.net/~hardandsoftware/TestEnhanced.ZIP
http://home.comcast.net/~hardandsoftware/TestEnhancedSerialPort.zip |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|