I tried the pcisetup and this solved the problem for the motherboard parallel port, now it seems it works fine (i can see the strobe signal changing). The frequency of transfer id 1B/12us (quite slow). But I could not set the pci parralel port card to epp mode (I have the NetMos NM9805CV pci card). I will try some other pci parallel port card. Thank you for your help :)
BTW: how did you compile the pcisetup.c. I tried to compile the code, but i get the "undefined reference to `outb'" error. I did try to add the -O, -O2 gcc directive as described in man outb, but it did not help. Can you please show your makefile compiler instructions for this. Best Regards Klemen ________________________________ From: Jon Elson <[email protected]> To: Klemen Dovrtel <[email protected]>; Enhanced Machine Controller (EMC) <[email protected]> Sent: Wednesday, January 30, 2013 4:15 AM Subject: Re: [Emc-users] EPP data transfers Klemen Dovrtel wrote: > > --------------------- HAL file ---------------- > > loadrt threads name1=base-thread period1=2000000 name2=servo-thread > period2=20000000 # ns > It will probably be MUCH easier to test this in user mode. You need root privileges and can open access to the parallel port with the iopl(3) kernel service. You may also need to use something like my pcisetup program to put the port into EPP mode. Even though it is set to this mode in the BIOS, it may not actually be in EPP mode on a lot of motherboards. This program is at http://pico-systems.com/codes/pcisetup You can also find the source code in the same directory. Most of the LinuxCNC drivers for EPP devices do this (writing 0x80 to the I/O register 0x402 higher than the parallel port base register) to enable EPP mode. Jon ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
