xuhao)?Р {Р delay(3000);Р LcmPrintf("提示:您插入的模块不正确!\n");Р }Р?while(1)Р?{Р Р if(abc!=xuhao);Р elseР {Р delay(2000);Р LcmPrintf("连接的模块是M%u\n",xuhao);Р delay(5000);Р break;Р }Р?}Р}Р//---------------------------------------------------------------------------------- Рchar s_write_byte(unsigned char value) Р//---------------------------------------------------------------------------------- Р// writes a byte on the Sensibus and checks the acknowledge Р{ Р unsigned char i,error=0; Р for (i=0x80;i>0;i/=2) //shift bit for masking Р { if (i & value) Р DATA=1; //masking value with i , write to SENSI-BUS Р else DATA=0; Р _nop_(); //observe setup time Р SCK=1; //clk for SENSI-BUS Р _nop_();_nop_();_nop_(); //pulswith approx. 5 us Р SCK=0; Р _nop_(); //observe hold time Р } Р DATA=1; //release DATA-line