 /*
- * 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)

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

              OCR5B = newOCR/2;
           }
        }
        else if( temp != 0 && currPosSP < currPosACT) //if we are moving down and we should be
        {
           if( currPosSP < ( currPosACT - stepIndex  )) //See if we have time to continue to speed up
           {
