#include <p33fxxxx.h>
#include <timer.h>
// To Do : 宣告Timer1的中斷服務函式,並指定為no_auto_psv。
void __attribute__( ( interrupt , auto_psv ) ) _T1Interrupt( void )
{
// To Do : 清除Timer1中斷旗標。
IFS0bits.T1IF = 0;
// 改變IO Port狀態(Toggle)。
LATBbits.LATB5 = !LATBbits.LATB5;
}