}
void PIT0_IRQHandler(void)
{
DisableInterrupts; //禁止总中断
a++;
PIT_Flag_Clear(PIT0); //清中断标志位
EnableInterrupts; //开总中断
}
void FTM1_IRQHandler()
{
u8 s=FTM1_STATUS; //读取捕捉和比较状态
// All CHnF bits can be checked using only one read of STATUS.
u8 CHn;
FTM1_STATUS=0x00; //清中断标志位