 
 extern "C" int main(void){
 	CORE_PIN33_CONFIG = 0;  // completely disables the pin
-	noInterrupts();
 	Serial.begin(115200);
 
 	pinMode(LED, OUTPUT);

	analogWriteFrequency(MT_C_PWM, PWM_FREQ);
	analogWriteFrequency(MT_D_PWM, PWM_FREQ);
	analogWriteFrequency(MT_E_PWM, PWM_FREQ);
	
	// for fastest speeds configure 8 bit analog reads and no averaging
	analogReadResolution(8);
	analogReadAveraging(32);

	ledBlinkTime = 0;

	SPI.begin_SLAVE(ALT_SCK, MOSI, MISO, ALT_CS0);
  	SPI.setCTAR_SLAVE(8, SPI_MODE0);

	noInterrupts();
	if (dataExpected == 0){
		command = SPI0_POPR;
		Serial.println(command);
		CLEARARRAY(spiBuff);

		switch(command){
