 /*
- * Sketch1.ino
- *
  * Timer 3 counts the 1Mhz reference from the THCAD (Port E bit 6)
  * Timer 4 counts the signal from the THCAD (Port H bit 7)
  * Timer 5 controls the output to the stepper driver (pins 45-46)

            stepIndex = 0;
 	 
        }                
        else if( temp == 0 ) //are we moving up?
        {
           if( currPosSP > ( currPosACT + stepIndex )) //See if we have time to continue to speed up
           {

long thcCorrectInc = 1;
int FreqZero = 1212;
int incomingByte = 0;
long currPosACT = 1000000;
long currPosIN = 1000000;
long currPosSP = 1000000;
long thcOffset = 0;
boolean timer5ON = false;
int temp = 0;
