Article View: alt.comp.lang.learn.c-c++
Article #660Parallel Port Help
From: Clinton Langan
Date: Fri, 29 Jan 1999 00:00
Date: Fri, 29 Jan 1999 00:00
16 lines
1767 bytes
1767 bytes
I have developed a little stepper motor circuit, and now require to turn on some bits on the DATA port. I have some of the user input and menus done, but can't get the Parallel Port to turn the stepper. The port is set up correct, as I can turn on and off DATA bits on a test board. So I'm looking for help to get me going. The way this should work, is when the user pushes a key the program sets Data bit 1 to low and turns on my circuit "this works as if I ground the circuit low the motor turns". On the motor I have an optic that is read back to the BUSY #11. This counts the number of times the wheel turns, and when equal to 360 the program prints "1 Complete Turn". This will do this for 50 complete turns , and quite. If the count doesn't equal 360 on any one of the turns, the program will print "Defective Optic and Reel" and go back to the main menu. Thanks Clinton
Technical Details
Message-ID:
<8zqs2.6321$b8.3040307@hme2.newscontent-01.sprint.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fab7a,d0295ddb0c5a0c41,start X-Google-Attributes: gidfab7a,public X-Google-Thread: 114592,d0295ddb0c5a0c41,start X-Google-Attributes: gid114592,public X-Google-Thread: 1014db,d0295ddb0c5a0c41,start X-Google-Attributes: gid1014db,public From: "Clinton Langan" <clangan@sprint.ca> Subject: Parallel Port Help Date: 1999/01/29 Message-ID: <8zqs2.6321$b8.3040307@hme2.newscontent-01.sprint.ca> X-Deja-AN: 438498290 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@sprint.ca X-Trace: hme2.newscontent-01.sprint.ca 917648708 209.103.17.135 (Fri, 29 Jan 1999 17:25:08 EDT) Organization: Sprint Canada Inc. Reply-To: "Clinton Langan" <clangan@hitechgaming.nb.ca> NNTP-Posting-Date: Fri, 29 Jan 1999 17:25:08 EDT Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c,ctdl.lang.c