First page Back Continue Last page Overview Graphics
Laboratory 4.4 : Loop Delay, External References
Modify the stepper motor program to place the delay loop in a separate file.
Load the delay count into a variable (DelayCount) in the main program.
Read the delay count variable in the program module with the delay loop.
Make the label for the delay loop visible to external modules. Make the delay count variable in the main program visible to other modules.
Let the delay loop know that the delay count variable is defined in another module. Let the main routine know that the label for the delay loop is defined externally.