![]() | ![]() | ![]() |
| |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
![]() |
| | Tools |
| | #1 |
|
I need a serial or parallel port circuit with its program to generate a square wave using the computer
| |
| |
| | #2 |
|
I'm assuming you need variable frequency, but what about amplitude of the square wave? what programming language/operating system is it going to be run on?
__________________ Jeff To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. | |
| |
| | #3 |
|
If you need just raw output both ports are "ready to go" as is. To output a simple square you simply need to output a stream of 1's and 0's, which can be done quite easily in Linux and Win9X/Me using almost any programming language - although I would recommend C and/or ASM. If you're attempting this from later versions of Windows, you will need to use the COM port control provided by MS or one of several other ones offered both freely and commercially on the net (just google it). If you need to interface the square wave to a specific circuit, you'll need to supply more details. Generally speaking, you could use Maxim's MAX232 IC and optic-couplers to interface to the ports electrically and safely. Hope this helps! Avital | |
| |
|
| Tags |
| circuit, parallel, port, serial |
| Thread Tools | |
| Display Modes | |
| |