Re: How to produce a fast clock output?

From: Amundsen Zhuang (a_roald_at_hotmail.com)
Date: 08/08/03


Date: 7 Aug 2003 18:21:10 -0700

Fletcher Glenn <f-g-l-e-n-n@quest.com> wrote in message news:<3F2FCBC9.3A924278@quest.com>...
> Amundsen Zhuang wrote:
> >
> > I want to produce a clock output on the pin of parallel port. I used
> > SIGALRM to implement it, and I only got a clock output with
> > 20ms-cycle.
> >
> > How could I produce a clock output that's cycle is 20us?
>
> You can't, unless you can gain exclusive use of the CPU. If you
> did this, the system would no longer work. All UNIX tasks are
> subject to time-slicing, meaning that you can only use so much
> time before the system cuts over to another task. During the time
> that the system is processing these other tasks, your task is
> suspended.

OK. I needn't keep the clock running continuous. I only want the clock
running in the time-slice. The clock can be interrupted.
So, how can I get such a fast clock? By the way, I have to implement
it on parallel port. I can't use other hardware resource.
Thanks a lot.



Relevant Pages

  • Has anyone yet made a routine...?
    ... to treat a parallel port as a synchonous ... perhaps using the system clock (counted-down appropriately for the bps ... is there a more speed-efficient way of doing ASCII to EBCDIC ...
    (comp.lang.c)
  • Re: send more than 8 bits with parallel port
    ... on PCs running Windows versions later than 9x, ... length for the clock, ... more older PCs (that is, until the War Department issues the Ultimatum ... experimenter-type interfaces to replace the parallel port for classroom ...
    (sci.electronics.basics)
  • Re: How to produce a fast clock output?
    ... the system would no longer work. ... I needn't keep the clock running continuous. ... KHz) since the parallel port contains 74LS374 chips as buffers/latches, ... the "rdtsc" which is an extremely precise CPU ...
    (comp.unix.programmer)
  • Re: Timespec for DCM outputs (Spartan 3) ?
    ... Lock each clock output to a pre-defined BUFGMUX location. ... Then, describing each FFs in a different block, ... > constraints only seem to work on pins, flipflops, pads and latches. ...
    (comp.arch.fpga)
  • Re: Word Clock thoughts
    ... use the clock on the PCI card, or I get these weird glitches - every fourth sample will hold the same value for a few cycles. ... There's no published standard for the voltage level of word clock signal level, only the rise time of the waveform. ... With the console's word clock output properly terminated at the HDR end, the clock voltage dropped below the input threshold of the HDR and the HDR's "sync" light would blink intermittently. ...
    (rec.audio.pro)

Loading