Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

fortran communicating to lpt

jankecc
Beginner
783 Views
Hello everybody. Is it possible to make program (using fortran) , which would send high and low voltages to lpt port? I am trying to write code in fortran. My goal is to make high and low pins on lpt, for controlling stepper motors. one pin would controll one stepper. High pin should rotate stepper for 1.8 degrees, using pic. This is possible in c (attached link), but is there code for doing so in fortran?

http://electrosofts.com/parallel/
0 Kudos
1 Reply
Paul_Curtis
Valued Contributor I
783 Views
Your lpt control code example is for DOS, where each port or device had a static memory address. Under Windows all external device control is virtualized via drivers, and while you can send predetermined bit patterns, your program has little control over the timing of when they get there (ie, message-pump operating systems are not strictly real-time).

Stepper motors are generally programmed by sending high-level commands from the computer (via a serial port or ethernet) to a driver board which interprets the commands onto dedicated power electronics for the device. This sort of progamming is readily accessible from Fortran.
0 Kudos
Reply