附录附录一 报警器原理图附录二 主程序部分主要代码int main(void) { System_Init();Show_Init(); while(1){keycode=KEY_Scan(0);//µÃµ½¼üÖµKey_Action();if(com!=0){keycode=com-0x30;Key_Action();com=0;}if(step==0){Adc_Action();Ds18b20_Action();str[0]=0x01;str[1]=0x03;str[2]=0x00;str[3]=0x48;str[4]=0x00;str[5]=0x06;str[6]=0x45;str[7]=0xDE;//if(cntms>500){cntms=0;CLR_BufUart2();for(cntutx=0;cntutx<8;cntutx++){RSTX=1;Uart2Send(str[cntutx]);RSTX=0;}}delay_ms(1500);cntms++;if(cntu2>=15){if(USART_RX_BUFUart2[0]==0x01&&USART_RX...
发表评论取消回复