These are the library files for use with the 'F1 controller
board and Micro-C compiler by Dave Dunfield. They are all
written in assembler and can be used with assembler programs.

To set up Micro-C to work with these routines:
1) Make a backup copy of the \mc\lib11 library
2) Copy these files into your existing \mc\lib11 directory.
3) Start programming ...

The Micro-C compiler compiles its code by reading the
"extindex.lib" file in the \mc\lib11 directory. Starting at the
top it compiles the initialisation routines, then executes a
jump to main() c program. Following that come the interrupt
routines and then the organisational routines, followed finally
by the individual functions. I have divided these sections up
and marked them accordingly in the file. Into these sections I
have put all the routines for the 'F1 board, though some of them
are commented out with a "*" character so it won't be seen by
the compiler.
In this way it is possible to optimise your code very quickly
and so reduce the compile time. To enable or disable driver 
routines i.e. stepper motors or servo motors, you will have to 
edit the "extindex.lib" file. I have set up the drivers so that 
the initialisation routines, interrupt routines and drivers are 
all in separate files, these can be added or deleted by adding 
or removing the "*" infront of the filename.
All the interrupt routines are listed the same way in the
"6811int.ram". To activate or disable the interrupt routine just
add or remove the comment at the start of the line.  It will be
noticed that the same interrupt can be used for different 
functions, as an interrupt can only be used once you should
ensure that any other reference to that interrupt is commented out.

There are three test programs included, time.hex, motest.hex and
servo.hex. These can be downloaded to the board with the Buffalo 
monitor by using the "Load t" command. Once downloaded they can be 
run with the command "g 2000". The threeprograms are:

Time.hex ...Displays an Hour/minute/second clock on the screen
of the host computer, tests interrupt and serial connections.

Motest.hex ...Drives the stepper motors and motor1. The sequence
is:
	Step stepper 1 to position 1000
	Step stepper 2 to position 500 with motor 1 half speed
	Step stepper 1 to position 0 
	Step stepper 2 to position 0 with motor 1 half speed backwards.

Servo.hex ...Tests the servo motors and analog inputs. It takes
a reading of analog 0 and analog 1 and sets Servo 1 and 2
proportionally. 

Please report any bugs to me, p.dunster@uow.edu.au. Otherwise,
have fun!

Cheers
Pete
