wave1021 发表于 2013-10-31 18:53
比如像STC的单片机,每块都有唯一的ID,你在程序上写着你那块的ID,每次都读比较一次,如果他把程序弄到其他 ...
void main(void)
{
unsigned char i = 0;
unsigned char j = 0;
unsigned char idata *idata_point;
serial_port_initial(); //串口初始化
idata_point = 0xF1;
for(j=0;j<15;j++)
{
i = *idata_point;//ID
send_UART(i);
idata_point++;
}
while(1);
} |