LPT square wave



Hi,

I'm trying to write a program in C++ to communicate with an AVR
microcontroller's SPI via the LPT port.

I have to generate a clock (SCK) signal on one of the pins of the LPT.
I am using the WinIO library. I'd like to have way to create a square
wave of a given frequency (within some limit of course).

My question is: what is the best way to generate such signal and what
is the maximum frequency one can obtain? Excluding of course such code:
Code:

for (;;) {
pin = 0; pin = 1;
}

.



Relevant Pages

  • Re: LPT square wave
    ... microcontroller's SPI via the LPT port. ... I have to generate a clock signal on one of the pins of the LPT. ... is the maximum frequency one can obtain? ... pin = 0; ...
    (sci.electronics.design)
  • Re: XA1541 trouble
    ... Atn, Data and Reset inputs all change mode following their ... Clock doesn't - Clock's always high. ... above clearly tell that either your LPT port ... XA1541's DB-25 connector. ...
    (comp.emulators.cbm)