linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* PCI to Parallel for PowerPC
@ 2007-11-25  5:06 Bai Shuwei
  2007-11-25 17:00 ` Clemens Koller
  0 siblings, 1 reply; 3+ messages in thread
From: Bai Shuwei @ 2007-11-25  5:06 UTC (permalink / raw)
  To: linuxppc-dev, linuxppc-embedded; +Cc: zhang_wei, puyq, shekr06

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

hi, all
    I bought a SMC1500 stepper motor card. And it can connect with host
through parallel port. My target board is PowerPC 440, which hasn't
parrallel port. So I bought a PCI to Parallel line for SMC1500. But when I
run the stepper motor, I find it's not stable. I  doubt there are somthing
wrong with my PCI to Parallel line. So I beg somebody can tell me where I
can bought the  appropriate conversion line from PCI to parallel, and does
somebody give me some idea about how to control my stepper motor
through PowerPC 440? thx all

Best Regards!

Buroc


-- 

Add: Tianshui South Road 222, Lanzhou, P.R.China
Tel: +86-931-8912025
Zip Code: 730000
URL: oss.lzu.edu.cn
Email: baishuwei@gmail.com, buroc@126.com

[-- Attachment #2: Type: text/html, Size: 1232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PCI to Parallel for PowerPC
  2007-11-25  5:06 PCI to Parallel for PowerPC Bai Shuwei
@ 2007-11-25 17:00 ` Clemens Koller
  2007-11-25 21:09   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Clemens Koller @ 2007-11-25 17:00 UTC (permalink / raw)
  To: Bai Shuwei; +Cc: linuxppc-dev, shekr06, puyq, zhang_wei, linuxppc-embedded

Bai Shuwei schrieb:

Please don't cross-post.

> hi, all
>     I bought a SMC1500 stepper motor card. And it can connect with host 
> through parallel port. My target board is PowerPC 440, which hasn't 
> parrallel port. So I bought a PCI to Parallel line for SMC1500. But when 
> I run the stepper motor, I find it's not stable. I  doubt there are 
> somthing wrong with my PCI to Parallel line. So I beg somebody can tell 
> me where I can bought the  appropriate conversion line from PCI to 
> parallel, and does somebody give me some idea about how to control my 
> stepper motor through PowerPC 440? thx all

Put that PCI Card to your host where your stepper was working
properly to see if it's a hardware issue with that card.

Then it depends on how you control your stepper motor. If you use
some bit-banging (which I wouldn't recommend) to drive each winding
and want to have smooth movement, you need a very precise timing
when it comes to some "more than low-speed" stepper motors,
otherwise your motors will start to coggle.
To be precise: you will first have to figure out what leads to
the effect of "it's not stable". Do you have an Oscilloscope?

Regards,
-- 
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany

http://www.anagramm-technology.com
Phone: +49-89-741518-50
Fax: +49-89-741518-19

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PCI to Parallel for PowerPC
  2007-11-25 17:00 ` Clemens Koller
@ 2007-11-25 21:09   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2007-11-25 21:09 UTC (permalink / raw)
  To: Clemens Koller; +Cc: puyq, linuxppc-embedded, linuxppc-dev, zhang_wei, shekr06


On Sun, 2007-11-25 at 18:00 +0100, Clemens Koller wrote:
> Put that PCI Card to your host where your stepper was working
> properly to see if it's a hardware issue with that card.
> 
> Then it depends on how you control your stepper motor. If you use
> some bit-banging (which I wouldn't recommend) to drive each winding
> and want to have smooth movement, you need a very precise timing
> when it comes to some "more than low-speed" stepper motors,
> otherwise your motors will start to coggle.
> To be precise: you will first have to figure out what leads to
> the effect of "it's not stable". Do you have an Oscilloscope?

Also, we might need to see the code you are using to control the
parallel port, it may be ignoring issues such as PCI write posting or
lacking appropriate memory barriers...

Ben.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-25 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-25  5:06 PCI to Parallel for PowerPC Bai Shuwei
2007-11-25 17:00 ` Clemens Koller
2007-11-25 21:09   ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).