05-23-2007 06:17 AM
05-23-2007 09:32 AM
05-27-2007 08:34 PM
05-30-2007 02:37 AM
Thank You So much. Eren BALCI
I could get it at the first intance only.
But is there a way to get a transmision rate above 2 MHz?
Best Regards
-Patil
05-30-2007 02:38 AM
05-30-2007 06:28 AM
Hi Patil,
2 MHz is impossible to achieve. That makes the period 0.5 usec.
I do not think Windows will switch the parallel port bits between 0 and 1 so quickly, and there are also hardware limitations.
However, it would be best to give it a try. Connect a scope to one of the output pins of your parallel port and flip this bit to 0 and 1 continiously in a loop.
Make sure that there is no unncessary code lines in the loop so it is very fast. No user interface, no printf's, nothing but the loop.
It would be fastest with assembly codes but I do not know how to do that.
Run the program, and measure the square wave frequency on the scope. Do not forget to make it a finite loop..
My guess is you'll get something between 100-200 kHz.
Note that the speed of your code's execution will depend on other processes running on Windows or whatever your OS is.
If 2 MHz is critical, you should use a high-speed DIO board which is driven by its own hardware, not Windows.
Hope this helps.