Hello and first sorry for my english :blush:
I'm trying to understand how to read Data from the paralel-Port of my Linux machin...
The Idea: I have an linuxcnc running, which provides stepper signals on the LPT-Port. For each of the three axis there are two pins:
- direktion (either high or low)
- step (whenever this signal comes the motor should do one step)
While i understand how to read the data for direktion, i can not find a solution, how i read the step data... While thinking about this problems i have come to two solutions 1. Use Interrupts, whenever the status of the step pin changes run a subroutin to do a step 2. use a loop which timing is the same as the duration of the signal.
Are my ideas right or is there another way which I as a beginner, do not think about. If you have interesting links for this topic please tell me, so i can understand more of this material.