Missing pulse problem

by Jack Cain

I have a program which controls a 3 axis X, Y, Z machine via the parallel port. In order to have more computer time to do necessary calculations, I am sending an external 1 KHz pulse into the PPT, the program responds with a series of 1 to 31 pulses for each of the (3) axes representing relative speeds for each axis. (The max resulting pulse rate will be 31 KHz.)

The external circuit accepts the respective parallel data for each axis and generates a smooth train of pulses to drive stepper motors to run the machine. My problem is that there are missing output pulses in response to the 1 KHz clock. On careful investigations, there are exactly 15 missing pulses every 10 seconds (or 1 1/2 pulses missing per second). I can even view the missing pulse on the scope, although it is difficult.

I have tried removing the mouse, but no improvement. Each of the (3) computers I tried this on produce the same results, and each has WIN 98 as the base program. I switch to the DOS operation before running the program.
Another effort was to startup using a DOS startup disc, but still the problem. I am losing 1 1/2 pulses every 10 seconds and this is unacceptable.

Is there some resident housekeeping interruption in DOS??
Or is this a carryover from WIN 98? Should I completely remove all traces of WIN on my hard drive and use DOS 6.22
alone?

Hope someone has some good suggestions!
Thanks,
Jack C.

Posted on Mar 26, 2008, 7:24 PM
from IP address 69.64.129.47

Respond to this message   

Goto Forum Home


Response TitleAuthor and Date
*Just wondering....Antoni on Mar 27
Post your QBASIC source code! on Mar 27
 Like this ... on Mar 27
 Missing pulsesJack Cain on Mar 27
  Where is the 1K pulse being sent? on Mar 27
  Interrupts? on Mar 28
   You typed "arisenm." Did you mean "arisen?"Typing Police on Mar 28
    "arisnm"Ralph on Mar 28
    * Getting tired of the Police and Useless Humorless posts. on Mar 28
   * End of usefullness in this thread W/O reply on Mar 28
    * True if OPwon't post code ->>>>>> Jack Cain on Mar 28
     Parallel port problemsJack C. on Mar 31
      Wrong port address? on Mar 31
      * OOPS! 632 = &H278 on Mar 31
      Maybe it is TIMER that is wrongDavid on Mar 31
       True, TIMER values should also be Singles for KHZ on Mar 31
        TimerJack C. on Mar 31
         I realize that, but you continue to try anyway on Mar 31
         Try this on Mar 31
          Don't forget operator precedence, Ted on Apr 1
           * I did, thanks on Apr 1
      How long is the on time of the pulse? on Apr 1
       Pulse timeJack C. on Apr 1
        That seems a bit shortDavid on Apr 1
        If you can just use the 1Khz pulse to count then on Apr 1
         Why not set the timer to 1msDavid on Apr 1
          Try it with some "output" code on Apr 1