#include #include "intrins.h" //_nop_();延时函数用 #define uchar unsigned char #define uint unsigned int sbit SO = P3^6; //P3.6口与SO相连 sbit SCK = P3^4; //P3.4口与SCK相连 sbit CS = P3^5; //P3.5口与CS相连 sbit wx = P2^6; sbit dx = P2^7; const unsigned char DevID = 1; //本机设备ID u