Sebastian Kuzminsky wrote:
> Hi folks, I'm new to RTAI, and I'm confused.
> 
> I'm writing a device driver for EMC2, for an FPGA board from Mesa
> Electronics called the 7i43.  The 7i43 interfaces to the PC over a
> parallel port (EPP).  I'm doing regular old inb() and outb() calls to talk
> to the EPP controller on the PC, to ask it to talk to the FPGA for me.
> Nothing funny or complicated there.
> 
> When I turn on an I/O debugging flag in my driver, it logs, with
> rtapi_print_msg(), the values of all bytes it reads & writes.  This shows
> up in the kernel logs, with microsecond-resolution timestamps.
> 
> The timestamps on the log messages are confusing me...
> 
> Sometimes the delay between successive I/O operations is on the order of
> 3-4 microseconds, which seems reasonable.  Here's a snippet of my syslog,
> each line is the debug output corresponding to one inb() or outb()
> to the EPP controller, showing what it did.
> 
> That part looks fine to me.  So far so good...  Now for the confusing
> part:
> 
> Sometimes the delay between successive I/O operations is on the order
> of 200-300 microseconds!
> 

Is this code part of a HAL function and running in a HAL thread?  If so,
are you are running it in the EMC servo thread?  Do you have a base 
thread?  The base thread is higher priority and will interrupt the servo 
thread.

Regards,

John Kasunich

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to