Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Any idaes why my PIC/ parallel port communication so slow?

Status
Not open for further replies.

JohnJohn20

Advanced Member level 4
Joined
Feb 2, 2012
Messages
111
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,377
Hi. I have a PIC oscillating at 1MHz. It takes ADC readings and transmits them to my laptop via the parallel port.

The PIC board communicates by toggling two of the parallel port high and low using opto couplers.

So to send a high bit, both pins would go low (for ~1ms) then both high (pulse finished signal, for ~1ms) and to send a low bit, one pin goes low (for ~1ms) then both go high (for ~1ms).

I use a qbasic program to watch these pins and waits for their state to change.

If I send through a 67 bit data stream (that is 134 changes of state) I can't send it any faster than 0.11 seconds. That is, I can't make the pulses any shorter than 1ms. Any suggestions why?

I have read that the parallel port is capable of 12Mb per second. My laptop is old (it has a parallel port!) with a 1.3GHz celeron processor.

Thanks. Chris.
 

Enhanced Parallel Port (EPP) was created by Intel, Xircom, and Zenith in 1991. EPP allows for much
more data, 500 kilobytes (KB) to 2 megabytes (MB)
The maximum speed of the Centronics interface is 150 kilobits per second, though Interfacebus.com contends that the cable typically offered no more than 10 kbps connectivity.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top