// *******************************************************************
// KJ10-30 Chords, Phase 3A--ADDITIONAL CODE 1			  S215 11 1010
// *******************************************************************

//||||||||||||||||||||||||| I N T E R R U P T S ||||||||||||||||||||||
#pragma code InterruptVectorLow = 0x08
void InterruptVectorLow (void)
{
  _asm
    goto InterruptServiceLow //jump to interrupt routine
  _endasm
}

//===================================================================
#pragma code
//|||||||||||||||||||||| FUNCTION PROTOTYPES ||||||||||||||||||||||||
void 	CheckForSwitchErrors(void);
void	SerialOut(unsigned short d, unsigned char length,
			unsigned char finished);
//|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#define	INT_ENABLE	INTCONbits.GIE		//Global Interrupt Enable. 
	//When IPEN = 0 (no interrupt priority), 1 enables all unmasked 
	//interrupts. and 0 disables all interrupts including peripherals.
#define SOCLK		LED0
#define SODATA		LED1
#define SOLATCHIT	LED2