Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #407325 > unrolled thread

problem with PCIe parallel port in EPP mode

Started byJon Elson <elson@pico-systems.com>
First post2016-04-13 11:46 -0500
Last post2016-04-21 14:37 -0500
Articles 20 on this page of 54 — 13 participants

Back to article view | Back to sci.electronics.design


Contents

  problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-13 11:46 -0500
    Re: problem with PCIe parallel port in EPP mode Tim Wescott <tim@seemywebsite.com> - 2016-04-14 11:15 -0500
      Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 13:52 -0500
        Re: problem with PCIe parallel port in EPP mode rickman <gnuarm@gmail.com> - 2016-04-14 15:25 -0400
          Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-14 13:05 -0700
            Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 15:38 -0500
          Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 15:25 -0500
            Re: problem with PCIe parallel port in EPP mode rickman <gnuarm@gmail.com> - 2016-04-14 16:41 -0400
              Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-14 16:52 -0500
                Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-14 15:20 -0700
                  Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-15 16:43 -0500
                    Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-27 13:50 -0500
        Re: problem with PCIe parallel port in EPP mode "John Miles, KE5FX" <jmiles@gmail.com> - 2016-04-18 00:40 -0700
          Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-19 11:36 -0500
            Re: problem with PCIe parallel port in EPP mode "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-04-19 18:34 -0500
              Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-19 20:48 -0400
                Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-19 22:30 -0500
                  Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-20 20:35 -0400
                Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-23 17:57 +1000
                  Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-23 10:50 -0400
                    Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-23 11:44 -0400
                    Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-24 13:23 +1000
                      Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-24 18:34 -0400
                        Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-24 19:39 -0400
                          Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-24 19:51 -0400
                            Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-25 01:26 -0400
                              Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-25 12:32 -0400
                        Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-25 11:35 +1000
                          Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-24 22:27 -0400
                            Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-25 12:45 +1000
                              Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-25 12:33 -0400
                                Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-25 12:48 -0400
                                  Re: problem with PCIe parallel port in EPP mode krw <krw@nowhere.com> - 2016-04-25 18:42 -0400
                                    Re: problem with PCIe parallel port in EPP mode Clifford Heath <no.spam@please.net> - 2016-04-26 09:27 +1000
                                      Re: problem with PCIe parallel port in EPP mode DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-25 20:05 -0400
              Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-19 22:25 -0500
    Re: problem with PCIe parallel port in EPP mode Hul Tytus <ht@panix.com> - 2016-04-14 22:05 +0000
      Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-15 16:50 -0500
        Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-16 17:04 +0200
          Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-16 16:15 -0500
            Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-17 04:04 +0200
              Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-17 00:00 -0500
                Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-17 15:43 +0200
                  Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-17 11:16 -0500
                    Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-17 09:58 -0700
                      Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-17 18:43 -0500
                        Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-18 00:15 -0700
                          Re: problem with PCIe parallel port in EPP mode Jon Elson <elson@pico-systems.com> - 2016-04-18 09:40 -0500
                            Re: problem with PCIe parallel port in EPP mode Johann Klammer <klammerj@NOSPAM.a1.net> - 2016-04-18 19:14 +0200
                              Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-19 11:41 -0500
                                Re: problem with PCIe parallel port in EPP mode Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-19 12:00 -0700
                                  Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-19 15:01 -0500
    Re: problem with PCIe parallel port in EPP mode "colin_toogood@yahoo.com" <colin_toogood@yahoo.com> - 2016-04-21 06:28 -0700
      Re: problem with PCIe parallel port in EPP mode Jon Elson <jmelson@wustl.edu> - 2016-04-21 14:37 -0500

Page 1 of 3  [1] 2 3  Next page →


#407325 — problem with PCIe parallel port in EPP mode

FromJon Elson <elson@pico-systems.com>
Date2016-04-13 11:46 -0500
Subjectproblem with PCIe parallel port in EPP mode
Message-ID<VcGdnc_RTKBC6pPKnZ2dnUU7-WXNnZ2d@giganews.com>
I've been making motion control devices that connect to the parallel port in 
EPP mode since 2001.  I had some problems many years ago with non-compliant 
EPP implementations on motherboard multi-I/O chips and PCI cards, but it 
seemed they got it figured out and they all worked since about 2006.

Then, I got a SIIG PCIe card a few days ago with the Oxford OXPCIe952 chip, 
and it didn;t work with code that has been fine for almost 15 years.
Breaking out the logic analyzer, I found that all output operations were 
fine (with bit 5 of the control reg set to 0) but when setting bit 5 of the 
control reg to 1 to read, and giving the INB command to the EPP data 
register, it produces no DATASTB/ pulse.

Anybody have any ideas what is going on?  I think 3 generations of Oxford 
chips in PCI cards have worked fine with the same code.  I tried a number of 
variations in the code to see if I could make it work with the Oxford 952 
chip, but couldn't get anything to change.

Thanks in a dvance for any ideas!

Jon

[toc] | [next] | [standalone]


#407532

FromTim Wescott <tim@seemywebsite.com>
Date2016-04-14 11:15 -0500
Message-ID<O_KdnVaCifuRX5LKnZ2dnUU7-fOdnZ2d@giganews.com>
In reply to#407325
On Wed, 13 Apr 2016 11:46:22 -0500, Jon Elson wrote:

> I've been making motion control devices that connect to the parallel
> port in EPP mode since 2001.  I had some problems many years ago with
> non-compliant EPP implementations on motherboard multi-I/O chips and PCI
> cards, but it seemed they got it figured out and they all worked since
> about 2006.
> 
> Then, I got a SIIG PCIe card a few days ago with the Oxford OXPCIe952
> chip, and it didn;t work with code that has been fine for almost 15
> years. Breaking out the logic analyzer, I found that all output
> operations were fine (with bit 5 of the control reg set to 0) but when
> setting bit 5 of the control reg to 1 to read, and giving the INB
> command to the EPP data register, it produces no DATASTB/ pulse.
> 
> Anybody have any ideas what is going on?  I think 3 generations of
> Oxford chips in PCI cards have worked fine with the same code.  I tried
> a number of variations in the code to see if I could make it work with
> the Oxford 952 chip, but couldn't get anything to change.
> 
> Thanks in a dvance for any ideas!
> 
> Jon

Make motion-control devices that connect to the USB port instead?

-- 
www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#407544

FromJon Elson <jmelson@wustl.edu>
Date2016-04-14 13:52 -0500
Message-ID<i92dnfFEsc8ae5LKnZ2dnUU7-bPNnZ2d@giganews.com>
In reply to#407532
Tim Wescott wrote:


> 
> Make motion-control devices that connect to the USB port instead?
> 
USB is not, in a sense, real time.  It is desinged to give regular bursts of 
data, but if you want to read position, calculate PID and send velocity, all 
in 1 ms, it gets VERY difficult.  If you want to hand off a block of points 
to hit to some microcontroller, and just keep feeding it waypoints, you can 
do that with USB.  If you want to have the PC's processor in the servo loop, 
USB doesn't work.  One advantage of having the PC in the loop is that you 
can plot a whole bunch of parameters in real time when setting the system 
up.

So, we have strong reasons to NOT use USB for real time motion control in 
the LinuxCNC project.

Jon 

[toc] | [prev] | [next] | [standalone]


#407545

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 15:25 -0400
Message-ID<neoqkb$9o3$1@dont-email.me>
In reply to#407544
On 4/14/2016 2:52 PM, Jon Elson wrote:
> Tim Wescott wrote:
>
>
>>
>> Make motion-control devices that connect to the USB port instead?
>>
> USB is not, in a sense, real time.

PCs are not, in most senses, real time.  I'm surprised you've done as 
well as you have.


> It is desinged to give regular bursts of
> data, but if you want to read position, calculate PID and send velocity, all
> in 1 ms, it gets VERY difficult.  If you want to hand off a block of points
> to hit to some microcontroller, and just keep feeding it waypoints, you can
> do that with USB.  If you want to have the PC's processor in the servo loop,
> USB doesn't work.  One advantage of having the PC in the loop is that you
> can plot a whole bunch of parameters in real time when setting the system
> up.
>
> So, we have strong reasons to NOT use USB for real time motion control in
> the LinuxCNC project.

I've never seen anyone construct a serious controller on a PC under a 
non-real time operating system... but then I don't get out much.

I don't get the parameter plotting thing.  Why can't you use a USB 
connected processor that is powerful enough to do the job using the PC 
as a remote keyboard and display in a sense?  GUI on the PC, real time 
guts on the USB MCU.  I don't get why this can't work well and get 
around the lack of real time I/O hardware on the PC?

Sorry I don't have any suggestions for making your parallel port work 
better.  Have you contacted Oxford?  Or do they not support operations 
other than printer comms?

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#407548

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2016-04-14 13:05 -0700
Message-ID<05bdcada-11bf-4327-a7e9-6fe8145c585b@googlegroups.com>
In reply to#407545
Den torsdag den 14. april 2016 kl. 21.25.12 UTC+2 skrev rickman:
> On 4/14/2016 2:52 PM, Jon Elson wrote:
> > Tim Wescott wrote:
> >
> >
> >>
> >> Make motion-control devices that connect to the USB port instead?
> >>
> > USB is not, in a sense, real time.
> 
> PCs are not, in most senses, real time.  I'm surprised you've done as 
> well as you have.
> 
> 
> > It is desinged to give regular bursts of
> > data, but if you want to read position, calculate PID and send velocity, all
> > in 1 ms, it gets VERY difficult.  If you want to hand off a block of points
> > to hit to some microcontroller, and just keep feeding it waypoints, you can
> > do that with USB.  If you want to have the PC's processor in the servo loop,
> > USB doesn't work.  One advantage of having the PC in the loop is that you
> > can plot a whole bunch of parameters in real time when setting the system
> > up.

usb have lots of bandwidth there is no reason you can't plot the same
parameters of something running in a USB device. people manage to tune 
and debug complex control systems running on embedded devices all the time


> >
> > So, we have strong reasons to NOT use USB for real time motion control in
> > the LinuxCNC project.
> 
> I've never seen anyone construct a serious controller on a PC under a 
> non-real time operating system... but then I don't get out much.
> 

lots of cnc run by mach3, it's running on windows!

> I don't get the parameter plotting thing.  Why can't you use a USB 
> connected processor that is powerful enough to do the job using the PC 
> as a remote keyboard and display in a sense?  GUI on the PC, real time 
> guts on the USB MCU.  I don't get why this can't work well and get 
> around the lack of real time I/O hardware on the PC?

anything is possible, but using a pc with "dumb" IO seems to still be the 
norm

letting the PC do the heavy lifting with planning the optimum movements
and then use some cheap MCU on usb to actually do it seems like it would 
be the more sensible option 

I run a cnc from a cheap arm board and I've often thought if it wouldn't 
be possible to to tack that onto linuxcnc to get all the features

> 
> Sorry I don't have any suggestions for making your parallel port work 
> better.  Have you contacted Oxford?  Or do they not support operations 
> other than printer comms?
> 

-Lasse

[toc] | [prev] | [next] | [standalone]


#407552

FromJon Elson <jmelson@wustl.edu>
Date2016-04-14 15:38 -0500
Message-ID<94KdnVGQeJ7AYpLKnZ2dnUU7-anNnZ2d@giganews.com>
In reply to#407548
Lasse Langwadt Christensen wrote:


>> Sorry I don't have any suggestions for making your parallel port work
>> better.  Have you contacted Oxford?  Or do they not support operations
>> other than printer comms?
I'm not even sure they allow contact from "end users".  I have not found any 
"contact us" for them.  Oxford Semi was bought by PLX, then PLX was bought 
Avago.

Jon

[toc] | [prev] | [next] | [standalone]


#407551

FromJon Elson <jmelson@wustl.edu>
Date2016-04-14 15:25 -0500
Message-ID<arWdnVq0vfXOYZLKnZ2dnUU7-fOdnZ2d@giganews.com>
In reply to#407545
rickman wrote:


> PCs are not, in most senses, real time.  I'm surprised you've done as
> well as you have.
> 
There are several real time options for Linux.  RTAI is not keeping up with 
the latest kernels, but if you don't mind running a few year old kernel, it 
can produce real time latency jitter of around 5 us on selected 
CPU/motherboard combinations.  Most CPU/mobos can do under 15 us jitter.

We've been doing this since 1997 (using ISA plug-in cards), and I've been 
making hardware for it since 2001 (using EPP parallel port.)

Jon

[toc] | [prev] | [next] | [standalone]


#407553

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 16:41 -0400
Message-ID<neov35$qjc$1@dont-email.me>
In reply to#407551
On 4/14/2016 4:25 PM, Jon Elson wrote:
> rickman wrote:
>
>
>> PCs are not, in most senses, real time.  I'm surprised you've done as
>> well as you have.
>>
> There are several real time options for Linux.  RTAI is not keeping up with
> the latest kernels, but if you don't mind running a few year old kernel, it
> can produce real time latency jitter of around 5 us on selected
> CPU/motherboard combinations.  Most CPU/mobos can do under 15 us jitter.
>
> We've been doing this since 1997 (using ISA plug-in cards), and I've been
> making hardware for it since 2001 (using EPP parallel port.)

Are you running LinuxCNC under RTAI?

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#407561

FromJon Elson <jmelson@wustl.edu>
Date2016-04-14 16:52 -0500
Message-ID<FeSdnVR6rtErjY3KnZ2dnUU7-UednZ2d@giganews.com>
In reply to#407553
rickman wrote:

> On 4/14/2016 4:25 PM, Jon Elson wrote:
>> rickman wrote:
>>
>>
>>> PCs are not, in most senses, real time.  I'm surprised you've done as
>>> well as you have.
>>>
>> There are several real time options for Linux.  RTAI is not keeping up
>> with the latest kernels, but if you don't mind running a few year old
>> kernel, it can produce real time latency jitter of around 5 us on
>> selected
>> CPU/motherboard combinations.  Most CPU/mobos can do under 15 us jitter.
>>
>> We've been doing this since 1997 (using ISA plug-in cards), and I've been
>> making hardware for it since 2001 (using EPP parallel port.)
> 
> Are you running LinuxCNC under RTAI?
> 
Yes, exactly.  But, there are now other options, Xenomai and rt-preempt, 
although these don't give as good latency as rtai.  They are getting much 
closer, though, and have much better debug capabilities, as the RT 
components run in user space, rather than kernel space.

Also, an offshoot is Machinekit, mostly aimed at ARM platforms like the 
Beagle Bone.

Jon

[toc] | [prev] | [next] | [standalone]


#407567

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2016-04-14 15:20 -0700
Message-ID<936e01cb-3df2-4d98-ac65-f61990a929ab@googlegroups.com>
In reply to#407561
Den torsdag den 14. april 2016 kl. 23.50.50 UTC+2 skrev Jon Elson:
> rickman wrote:
> 
> > On 4/14/2016 4:25 PM, Jon Elson wrote:
> >> rickman wrote:
> >>
> >>
> >>> PCs are not, in most senses, real time.  I'm surprised you've done as
> >>> well as you have.
> >>>
> >> There are several real time options for Linux.  RTAI is not keeping up
> >> with the latest kernels, but if you don't mind running a few year old
> >> kernel, it can produce real time latency jitter of around 5 us on
> >> selected
> >> CPU/motherboard combinations.  Most CPU/mobos can do under 15 us jitter.
> >>
> >> We've been doing this since 1997 (using ISA plug-in cards), and I've been
> >> making hardware for it since 2001 (using EPP parallel port.)
> > 
> > Are you running LinuxCNC under RTAI?
> > 
> Yes, exactly.  But, there are now other options, Xenomai and rt-preempt, 
> although these don't give as good latency as rtai.  They are getting much 
> closer, though, and have much better debug capabilities, as the RT 
> components run in user space, rather than kernel space.
> 
> Also, an offshoot is Machinekit, mostly aimed at ARM platforms like the 
> Beagle Bone.

The beagle bone has a programmable realtime unit, basically a 32 bit 200MHz
cpu with fast IO and access to memory and peripherals.  

Has anyone worked on moving the real time stuff to that? 


-Lasse 

[toc] | [prev] | [next] | [standalone]


#407742

FromJon Elson <jmelson@wustl.edu>
Date2016-04-15 16:43 -0500
Message-ID<1qqdnfErWpzb_YzKnZ2dnUU7-aPNnZ2d@giganews.com>
In reply to#407567
Lasse Langwadt Christensen wrote:


> The beagle bone has a programmable realtime unit, basically a 32 bit
> 200MHz cpu with fast IO and access to memory and peripherals.
> 
> Has anyone worked on moving the real time stuff to that?
Yes.  Charles Steinkuehler did all the heavy lifting.  So, the way 
Machinekit works, now, is they still have a 1 ms real time task on the ARM, 
that spoon feeds the PRUs position waypoints.  Then, the PRU does the step 
generation to hit those waypoints on time.  This seems to be working quite 
well, and they can run 6 stepper tasks and 5 PWM tasks all at once.

I did another project using his framework for the PRU to run a laser 
photoplotter.  I make up a file with run length encoded pixels (500 pixels 
of laser off, 53 pixels laser on, 192 pixels laser off, etc.)  So it is a 
16-bit token with an on/off bit followed by 15 bits of count.  The PRU has 
to unpack this and spoon feed the laser a bit every 5 us.  Works like a 
champ, and replaces an ancient PC running Windows 3.1 with an ISA bus DMA 
card.

Jon

[toc] | [prev] | [next] | [standalone]


#409494

FromJon Elson <jmelson@wustl.edu>
Date2016-04-27 13:50 -0500
Message-ID<jJadnfCMHMlFlLzKnZ2dnUU7-T-dnZ2d@giganews.com>
In reply to#407742
Jon Elson wrote:

And, I just got another cheap PCIe parallel port card from China, that is 
even less functional than the Oxford chipset one.  This one behaves like it 
has no EPP funtionality at all.  PCI enumeration lists it as serial only, 
but it seems to do SPP/Bidir, too.

So, right now, I only know of ONE PCIe plug in card that works, with the 
MosChip 9900.  This appears to be going obsolete, now there's the MosChip 
9901.  I will have to test that one, hopefully they didn't break any 
functionality.

Jon

[toc] | [prev] | [next] | [standalone]


#407976

From"John Miles, KE5FX" <jmiles@gmail.com>
Date2016-04-18 00:40 -0700
Message-ID<4c7e973d-0738-480a-844f-564e5750838c@googlegroups.com>
In reply to#407544
On Thursday, April 14, 2016 at 11:50:52 AM UTC-7, Jon Elson wrote:
> Tim Wescott wrote:
> 
> 
> So, we have strong reasons to NOT use USB for real time motion control in 
> the LinuxCNC project.
> 
> Jon

Parallel ports on the PCI bus work essentially the same way, through deferred procedure calls.  No such thing as "real time" on a PC anymore, if there ever was.  Your best bet is to plan accordingly.

-- john, KE5FX

[toc] | [prev] | [next] | [standalone]


#408204

FromJon Elson <jmelson@wustl.edu>
Date2016-04-19 11:36 -0500
Message-ID<M9qdnXmSfsipw4vKnZ2dnUU7-LXNnZ2d@giganews.com>
In reply to#407976
John Miles, KE5FX wrote:

> On Thursday, April 14, 2016 at 11:50:52 AM UTC-7, Jon Elson wrote:
>> Tim Wescott wrote:
>> 
>> 
>> So, we have strong reasons to NOT use USB for real time motion control in
>> the LinuxCNC project.
>> 
>> Jon
> 
> Parallel ports on the PCI bus work essentially the same way, through
> deferred procedure calls.  No such thing as "real time" on a PC anymore,
> if there ever was.  Your best bet is to plan accordingly.

NIST has been been doing this since 1996 or so, I started using the EMC 
program in 1998.  We got about 10 us jitter on a 100 MHz pentium classic, 
which was sure good enough for regular motion control.

I'm now using LinuxCNC (the successor of the old EMC and EMC2 program) and 
on a good motherboard you can get jitter down to about 4 us.  I've sold 
about 300 motion control interfaces that use the EPP parallel port, it has 
worked fine for years.  When using the RTAI real time package, as far as I 
know, an INB or OUTB instruction is just what it says, read or write a byte
from an I/O port.

Jon

[toc] | [prev] | [next] | [standalone]


#408257

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2016-04-19 18:34 -0500
Message-ID<nf6f52$e24$1@dont-email.me>
In reply to#408204
"Jon Elson" <jmelson@wustl.edu> wrote in message 
news:M9qdnXmSfsipw4vKnZ2dnUU7-LXNnZ2d@giganews.com...
> When using the RTAI real time package, as far as I
> know, an INB or OUTB instruction is just what it says, read or write a 
> byte
> from an I/O port.


I've always wondered how much buffering goes on with those.

Obviously(?), you can't get a parallel port going into the nanoseconds (Fclk 
= 8MHz, at least in the original case).  PCI (33MHz+) PPs exist, so are they 
inserting wait states, or what?

Are IO instructions cached/buffered, or do they WAIT the CPU until the 
transaction is complete?  I never looked deep enough to get a clear answer.

I know all the memory space of a Pentium is pulled through caches -- that 
was one of its big features after all, internal L1 cache plus expandable 
external L2 cache (if you had the money to afford it).  And it's very 
typical to have PCI cards with large memory apertures, usually directly into 
e.g. video or texture RAM, or IO buffers.

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: http://seventransistorlabs.com 

[toc] | [prev] | [next] | [standalone]


#408261

Fromkrw <krw@nowhere.com>
Date2016-04-19 20:48 -0400
Message-ID<0rjdhb1mmfebgp7p5gm2dhehnm082e48ub@4ax.com>
In reply to#408257
On Tue, 19 Apr 2016 18:34:40 -0500, "Tim Williams"
<tiwill@seventransistorlabs.com> wrote:

>"Jon Elson" <jmelson@wustl.edu> wrote in message 
>news:M9qdnXmSfsipw4vKnZ2dnUU7-LXNnZ2d@giganews.com...
>> When using the RTAI real time package, as far as I
>> know, an INB or OUTB instruction is just what it says, read or write a 
>> byte
>> from an I/O port.
>
>
>I've always wondered how much buffering goes on with those.
>
>Obviously(?), you can't get a parallel port going into the nanoseconds (Fclk 
>= 8MHz, at least in the original case).  PCI (33MHz+) PPs exist, so are they 
>inserting wait states, or what?
>
>Are IO instructions cached/buffered, or do they WAIT the CPU until the 
>transaction is complete?  I never looked deep enough to get a clear answer.

Depends but generally pipelined.  I/O  instruction ordering  can be
forced but I wouldn't expect it in the general case.  PowerPC has an
EIEIO instruction (Enforce In-order Execution of I/O) to accomplish
this, for example.

>I know all the memory space of a Pentium is pulled through caches -- that 
>was one of its big features after all, internal L1 cache plus expandable 
>external L2 cache (if you had the money to afford it).  And it's very 
>typical to have PCI cards with large memory apertures, usually directly into 
>e.g. video or texture RAM, or IO buffers.

Main memory is, of course, coherent.  Anything mapped into I/O is up
for grabs but probably not coherent.  I/O devices generally don't
snoop caches.

[toc] | [prev] | [next] | [standalone]


#408284

FromJon Elson <elson@pico-systems.com>
Date2016-04-19 22:30 -0500
Message-ID<bo6dnXmsJ-sgaovKnZ2dnUU7-W_NnZ2d@giganews.com>
In reply to#408261
krw wrote:



>>I know all the memory space of a Pentium is pulled through caches -- that
>>was one of its big features after all, internal L1 cache plus expandable
>>external L2 cache (if you had the money to afford it).  And it's very
>>typical to have PCI cards with large memory apertures, usually directly
>>into e.g. video or texture RAM, or IO buffers.
> 
> Main memory is, of course, coherent.  Anything mapped into I/O is up
> for grabs but probably not coherent.  I/O devices generally don't
> snoop caches.
On X-86 PCs, I/O is a separate address space, so totally separate from the 
memory address space.  I would think in all systems, out of order execution 
and memory tricks must leave I/O order as programmed.  Writing GO to the 
command register before writing the memory location or disk location could 
cause real trouble.

Jon

[toc] | [prev] | [next] | [standalone]


#408369

Fromkrw <krw@nowhere.com>
Date2016-04-20 20:35 -0400
Message-ID<cm7ghb1mo1nb0vk03mootfelfjdlnsns67@4ax.com>
In reply to#408284
On Tue, 19 Apr 2016 22:30:05 -0500, Jon Elson <elson@pico-systems.com>
wrote:

>krw wrote:
>
>
>
>>>I know all the memory space of a Pentium is pulled through caches -- that
>>>was one of its big features after all, internal L1 cache plus expandable
>>>external L2 cache (if you had the money to afford it).  And it's very
>>>typical to have PCI cards with large memory apertures, usually directly
>>>into e.g. video or texture RAM, or IO buffers.
>> 
>> Main memory is, of course, coherent.  Anything mapped into I/O is up
>> for grabs but probably not coherent.  I/O devices generally don't
>> snoop caches.
>On X-86 PCs, I/O is a separate address space, so totally separate from the 
>memory address space.

Sure, you don't want I/O cached, for one thing.

>I would think in all systems, out of order execution 
>and memory tricks must leave I/O order as programmed.  Writing GO to the 
>command register before writing the memory location or disk location could 
>cause real trouble.

Forcing in-order execution hits performance.  PowerPC gives the
programmer the option.

[toc] | [prev] | [next] | [standalone]


#408738

FromClifford Heath <no.spam@please.net>
Date2016-04-23 17:57 +1000
Message-ID<571b2aff$0$5997$b1db1813$19ace300@news.astraweb.com>
In reply to#408261
On 20/04/16 10:48, krw wrote:
> On Tue, 19 Apr 2016 18:34:40 -0500, "Tim Williams"
> <tiwill@seventransistorlabs.com> wrote:
>
>> "Jon Elson" <jmelson@wustl.edu> wrote in message
>> news:M9qdnXmSfsipw4vKnZ2dnUU7-LXNnZ2d@giganews.com...
>>> When using the RTAI real time package, as far as I
>>> know, an INB or OUTB instruction is just what it says, read or write a
>>> byte
>>> from an I/O port.
>>
>>
>> I've always wondered how much buffering goes on with those.
>>
>> Obviously(?), you can't get a parallel port going into the nanoseconds (Fclk
>> = 8MHz, at least in the original case).  PCI (33MHz+) PPs exist, so are they
>> inserting wait states, or what?
>>
>> Are IO instructions cached/buffered, or do they WAIT the CPU until the
>> transaction is complete?  I never looked deep enough to get a clear answer.
>
> Depends but generally pipelined.  I/O  instruction ordering  can be
> forced but I wouldn't expect it in the general case.  PowerPC has an
> EIEIO instruction (Enforce In-order Execution of I/O) to accomplish
> this, for example.
>
>> I know all the memory space of a Pentium is pulled through caches -- that
>> was one of its big features after all, internal L1 cache plus expandable
>> external L2 cache (if you had the money to afford it).  And it's very
>> typical to have PCI cards with large memory apertures, usually directly into
>> e.g. video or texture RAM, or IO buffers.
>
> Main memory is, of course, coherent.

How sure are you of that? The LOCK prefix exists to bus-lock a CAS
operation all the way to main memory, instead of just from a CPU-local
cache. Why would they do that if main memory was consistent anyway?
I mean, the memory is consistent, but each processor's view of it is
not.

[toc] | [prev] | [next] | [standalone]


#408774

Fromkrw <krw@nowhere.com>
Date2016-04-23 10:50 -0400
Message-ID<3n2nhbplacv1tuat2tb5uagsrd35er634r@4ax.com>
In reply to#408738
On Sat, 23 Apr 2016 17:57:09 +1000, Clifford Heath
<no.spam@please.net> wrote:

>On 20/04/16 10:48, krw wrote:
>> On Tue, 19 Apr 2016 18:34:40 -0500, "Tim Williams"
>> <tiwill@seventransistorlabs.com> wrote:
>>
>>> "Jon Elson" <jmelson@wustl.edu> wrote in message
>>> news:M9qdnXmSfsipw4vKnZ2dnUU7-LXNnZ2d@giganews.com...
>>>> When using the RTAI real time package, as far as I
>>>> know, an INB or OUTB instruction is just what it says, read or write a
>>>> byte
>>>> from an I/O port.
>>>
>>>
>>> I've always wondered how much buffering goes on with those.
>>>
>>> Obviously(?), you can't get a parallel port going into the nanoseconds (Fclk
>>> = 8MHz, at least in the original case).  PCI (33MHz+) PPs exist, so are they
>>> inserting wait states, or what?
>>>
>>> Are IO instructions cached/buffered, or do they WAIT the CPU until the
>>> transaction is complete?  I never looked deep enough to get a clear answer.
>>
>> Depends but generally pipelined.  I/O  instruction ordering  can be
>> forced but I wouldn't expect it in the general case.  PowerPC has an
>> EIEIO instruction (Enforce In-order Execution of I/O) to accomplish
>> this, for example.
>>
>>> I know all the memory space of a Pentium is pulled through caches -- that
>>> was one of its big features after all, internal L1 cache plus expandable
>>> external L2 cache (if you had the money to afford it).  And it's very
>>> typical to have PCI cards with large memory apertures, usually directly into
>>> e.g. video or texture RAM, or IO buffers.
>>
>> Main memory is, of course, coherent.
>
>How sure are you of that? The LOCK prefix exists to bus-lock a CAS
>operation all the way to main memory, instead of just from a CPU-local
>cache. Why would they do that if main memory was consistent anyway?
>I mean, the memory is consistent, but each processor's view of it is
>not.

It's been a long time since I've looked at this stuff but it has to be
choherent, at least on a memory model level or MPs wouldn't work.

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | sci.electronics.design


csiph-web