Labs/Lab6/Watkins_William_Lab6_Part2.c
// <editor-fold defaultstate="collapsed" desc="CCP3Handler()">
/******************************************************************************
 * CCP3handler interrupt service routine.
 *
 * Handles CCP3 for Alive LED
 ******************************************************************************/

CCP3handler interrupt service routine.

Handles CCP3 for Alive LED
CCP3handler interrupt service routine . Handles CCP3 for Alive LED
void CCP3Handler() {
    if(PIR2bits.TMR3IF && ((CCPR3H & 0b10000000) > 1) )
    {
        TMR3X++;
        PIR2bits.TMR3IF = 0;
    }
    if(CCPR3X == TMR3X)
    {
        aliveLED();
    }
    PIR4bits.CCP3IF = 0;      
}
void CCP3Handler ( ) { if ( PIR2bits . TMR3IF && ( ( CCPR3H & 0b10000000 ) > 1 ) ) { TMR3X ++ ; PIR2bits . TMR3IF = 0 ; } if ( CCPR3X == TMR3X ) { aliveLED ( ) ; } PIR4bits . CCP3IF = 0 ; }
<editor-fold defaultstate="collapsed" desc="CCP3Handler()">
 CCP3handler interrupt service routine.
<editor - fold defaultstate = " collapsed " desc = " CCP3Handler () " > CCP3handler interrupt service routine .
// Check if Timer 3 has overflowed and it matched after rolling over // If so, increment extension byte //Clear flag and return to polling routine