Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


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.

Reply
 
Tools
Old 18th October 2004, 09:46 PM   #1
Default need serial or parallel port circuit

I need a serial or parallel port circuit with its program to generate a square wave using the computer
shraouf is offline  
Old 18th October 2004, 09:51 PM   #2
Default

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.
jrz126 is offline  
Old 21st October 2004, 01:46 PM   #3
Default

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
Snowman is offline  
Reply

Tags
circuit, parallel, port, serial

Thread Tools
Display Modes




All times are GMT. The time now is 10:55 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker