Some ports require external pullups. Is your port connected a pcb? If so try and solder a pullup on that line if you dont have one. On 2013/02/07 04:00 PM, Klemen Dovrtel wrote: > I used oscilloscope. I am using the base thread period to execute > data/address read/write periodically and I can easily measure/detect the > data_strobe signal (pin 14) during data read/write. But if measure the > address strobe signal (pin 17), nothing happens. > > > ________________________________ > From: Marius Liebenberg <[email protected]> > To: Enhanced Machine Controller (EMC) <[email protected]> > Sent: Thursday, February 7, 2013 2:34 PM > Subject: Re: [Emc-users] EPP data transfers > > How do you measure the strobe signal? You do realize that it is very > quick and only happens during data transfer. I.E. Once on every read and > very write. > > On 2013/02/06 08:00 PM, Klemen Dovrtel wrote: >> Hello everybody, >> >> I will continue here... I tested the epp parallel port mode and i can read >> and write data. Now i also tried to write the address but nothing happens, >> The strobe signal doesn't change its state. >> >> I also tried to set the wait signal to 0 and monitor the data_strobe (pin14) >> and address_strobe (pin 17) signal with oscilloscope after i executed a >> simple code (please see below). If i monitor the address_strobe signal >> nothing happens, but if i monitor the data_strobe signal, i can see the >> pause between the two read32() command. >> >> The parallel port pins i fine (not burned), i can control them using >> ptest.hal. >> >> Any idea what could be wrong? Does anybody have a simple code (executable) >> that send the data using address_write/address_read so that i can test my >> hardware? >> >> Regards >> Klemen >> >> >> // simple code >> EPP_ADDR(0); >> EPP_ADDR(1); >> EPP_ADDR(2); >> EPP_ADDR(3); >> datain êd32(); // or write32(dataout) >> EPP_ADDR(0); >> EPP_ADDR(1); >> EPP_ADDR(2); >> EPP_ADDR(3); >> datain êd32(); // or write32(dataout) >> >> -------------- >> static inline void EPP_ADDR(int w) { >> outb(w, ioaddr+3); >> } >> >> static inline __u32 read32(void) { >> return inl(ioaddr+4); >> } >> >> >> >> >> >> >> ________________________________ >> From: Klemen Dovrtel <[email protected]> >> To: Jon Elson <[email protected]>; Enhanced Machine Controller (EMC) >> <[email protected]> >> Sent: Thursday, January 31, 2013 8:24 AM >> Subject: Re: [Emc-users] EPP data transfers >> >> 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ºse-thread period1 00000 name2=rvo-thread period2 >>> 000000 # 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
-- Regards / Groete Marius D. Liebenberg MasterCut cc Cel: +27 82 698 3251 Tel: +27 12 743 6064 Fax: +27 86 551 8029 Skype: marius_d.liebenberg Skype Me^(TM)! <skype:marius_d.liebenberg?call> Get Skype <http://www.skype.com/go/download> and call me for free. --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 130207-0, 2013/02/07 Tested on: 2013/02/07 07:24:46 PM avast! - copyright (c) 1988-2013 AVAST Software. http://www.avast.com ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
