LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2004, 12:24 AM   #1
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
Why the STROBE pin in parallel port??


hi all,
I am thinking about interfacig a simple walking mechanism(with some 4-5 stepper motors) to the parallel port.
My questions;
1.What is the use of the pin STROBE??

"The interface will be rather "dumb", where the computer will have to produce all signals for motor movement. This will keep the hardware from getting too complicated, while still allowing a fair degree of software control. By "dumb interface", I mean if you want a motor to make 50 steps, you have to send the right 1-byte command to the data bus, and then send 50 STROBE operations. Also, all motors are stepped at once, so if three motors need to be stepped 20,30,and 45 times respectively, you would have to send the appropriate 1-byte command to the data bus, STROBE 20 times, send a new 1-byte command, STROBE 10 more times, then send a final command, and STROBE 15 times. A "smart" interface would be nice, but beyond the scope of this project. " in http://www.woodyweb.ca/~woody/controller.html
This appears to be very simple,but I dont understand what STROBE is doing here...please help.

2.Should I procede with VC++ or GCC??I mean is there any specific adv/disadvantage??I am very new to programming with GCC.

Thanks in advance,
Arun.
 
Old 08-30-2004, 08:58 AM   #2
od51
LQ Newbie
 
Registered: Apr 2004
Location: Australia
Distribution: Mandrake 9.0 /10.0
Posts: 14

Rep: Reputation: 0
On a parallel interface the strobe signal indicates that the data lines are ready to be read by the receiver. The receiver must acknowledge that it has read the data before another character can be sent. As far as I can see, you need to send the same character many times, so it is not necessary to change the data buffer, just reassert the strobe signal as many times as that character needs to be sent.
That is, the character to order one step is put into the data buffer, and then the strobe asserted fifty times, so that the motor receives fifty command characters.
 
Old 09-01-2004, 08:24 AM   #3
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Original Poster
Rep: Reputation: 30
Thanks,I think I have got it for now.
--arun
 
Old 09-01-2004, 08:28 AM   #4
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Original Poster
Rep: Reputation: 30
Now what abt the second question?Should I proceed with VC++ or GCC?VC++ is definitely easy,since lots of sample programs are available in the net on the same topic,and I dont know the corresponding library/functions in GCC.Please help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the parallel port? kwyjibo99 Linux - Hardware 5 07-20-2005 05:47 PM
Need help to read a signal from the CTS pin of a serial port juan_de_margo Linux - Hardware 0 02-24-2005 03:36 AM
Parallel Port CD-RW dbrook42 Linux - Hardware 3 09-30-2003 07:54 PM
Controlling serial port RTS pin from 'C' program dcarter Slackware 1 09-26-2003 07:01 PM
Parallel port pin access Robert0380 Linux - Hardware 5 07-29-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration