Reading Input from LPT-Port


hello , first sorry english  :smiley-red:

i'm trying understand how read data paralel-port of linux machin...

the idea: have linuxcnc running, provides stepper signals on lpt-port. each of 3 axis there 2 pins:

1. direktion (either high or low)
2. step (whenever signal comes motor should 1 step)

while understand how read data direktion, can not find solution, how read step data...
while thinking problems have come 2 solutions
1. use interrupts, whenever status of step pin changes run subroutin step
2. use loop timing same duration of signal.

are ideas right or there way beginner, not think about.
if have interesting links topic please tell me, can understand more of material.

steve

if wire things suitably able read 6 pins single arduino read of relevant arduino port. see http://arduino.cc/en/reference/portmanipulation

i surprised if data pc fast not read without using interrupts.

what fastest step pin changes?

i guess it's possible step pulse short (even if it's not frequent) may possible arduino miss between 2 successive reads. in case need use interrupts.

you haven't said why trying , wonder if easier pc pass higher-level data arduino? arduino going data - doesn't have capacity store of it.

if want use arduino control stepper motors there ready-made solutions that.

...r


Arduino Forum > Using Arduino > Interfacing w/ Software on the Computer > Reading Input from LPT-Port


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support