/***************************************************/
**函数称号:void PCA_Capture_Int();**功用描绘:PCA捕获中止函数,扩展32位计数**说 明:中止发生后,计数器将32计数成果高位写入/***************************************************/void PCA_Capture_Int(){//PCA捕获中止if(CR){//假如计数器溢出PCA_0.Dou_L++; //模块0高位暂时变量自加PCA_1.Dou_L++; //模块1高位暂时变量自加}if(CCF0){//假如模块0引脚承受中止CCF0 = 0; //清中止PCA_0.Match = CCAP0H;PCA_0.Match <<= 8;PCA_0.Match &= CCAP0L; //低位保存PCA_0.Dou_H = PCA_0.Dou_L; //高位保存PCA_0.Dou_L = 0; //清空高位自加容器}if(CCF1){//假如模块1引脚承受中止CCF1 = 0; //清中止PCA_1.Match = CCAP1H;PCA_1.Match <<= 8;PCA_1.Match &= CCAP1L; //低位保存PCA_1.Dou_H = PCA_1.Dou_L; //高位保存PCA_1.Dou_L = 0; //清空高位自加容器}}