红外编码nec /*遥控接收在此中断程序内完成 //遥控码放在ir_da[]中 /************************************/ /* Interrupt for IR subroutine */ /* external interrupt source INT0 */ /************************************/ //#include //#include "funtion_sub.h" #include "message.H" #include "include.h" //#define uCHAR unsigned char extern bit ir_enable; extern bit ir_start; extern bit ir_key_continue_pressed; extern bit Using_Timer1; extern bit LeaderCode_9MS; extern bit LeaderCode_4_5MS; extern bit IR_Sending; extern bit IR_Keep_Press; //长按 extern bit IR_2MS_Re; extern bit IR_560US_Re; extern uCHAR ir_word; extern uCHAR ir_bit; extern uCHAR ir_data[4]; extern uCHAR idata IR_Tran_data[4]; extern uchar idata IR_Out_Times; extern uCHAR PRE_REMOTE_KEY; void RESET_IROUT() { LeaderCode_9MS=0; //强制中止IR_OUT Lead……