Re: [CAD_CAM_EDM_DRO] Parallel port interface for pulse Encoder
Posted by
hesham elsayed
on 2007-08-04 23:31:38 UTC
Dear john,
kindly note that the 2085 pulse per second is the pulse rate that reaches the parallel port finally,(i read it by an oscilloscope)
and i save it to a file,i use C language under DOS(for faster response as DOS is a single task operating system)
i use inportb to read ,so can you tell me where the problem is?
Regards,
Hesham
Jon Elson <elson@...> wrote:
heshammm2003 wrote:
you connecting this to? Did you check the voltage levels out of
the encoder? It may require pull-up resistors to +5 V if the
encoder outputs are open-collector.
You say "couldnt read the data at that rate", but you don't say
how fast the encoder was turning. At 60 RPM, the encoder would
produce, I think, 8340 counts per second. Even a 486 CPU could
read that fast enough, but not if you have a print statement
every read. The screen update is really slow on PCs because it
has to copy the whole screen up to scroll, pixel by pixel.
Jon
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
[Non-text portions of this message have been removed]
kindly note that the 2085 pulse per second is the pulse rate that reaches the parallel port finally,(i read it by an oscilloscope)
and i save it to a file,i use C language under DOS(for faster response as DOS is a single task operating system)
i use inportb to read ,so can you tell me where the problem is?
Regards,
Hesham
Jon Elson <elson@...> wrote:
heshammm2003 wrote:
> Dear all,What rate is the C program reading the port? What port pins are
>
> first let me say hi to all the members,
> kindly if any one can help me abount readind a pulse encoder that sends
> 2085 pulses per second square wave TTL voltage level, the port couldnt
> read the data at that rate even using C lanuage under DOS
> can any body help?
you connecting this to? Did you check the voltage levels out of
the encoder? It may require pull-up resistors to +5 V if the
encoder outputs are open-collector.
You say "couldnt read the data at that rate", but you don't say
how fast the encoder was turning. At 60 RPM, the encoder would
produce, I think, 8340 counts per second. Even a 486 CPU could
read that fast enough, but not if you have a print statement
every read. The screen update is really slow on PCs because it
has to copy the whole screen up to scroll, pixel by pixel.
Jon
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
[Non-text portions of this message have been removed]
Discussion Thread
heshammm2003
2007-08-02 06:51:47 UTC
Parallel port interface for pulse Encoder
Jon Elson
2007-08-02 08:17:56 UTC
Re: [CAD_CAM_EDM_DRO] Parallel port interface for pulse Encoder
hesham elsayed
2007-08-04 23:31:38 UTC
Re: [CAD_CAM_EDM_DRO] Parallel port interface for pulse Encoder
Jon Elson
2007-08-05 17:40:48 UTC
Re: [CAD_CAM_EDM_DRO] Parallel port interface for pulse Encoder