#include#include//-----------------------------------------------------//*定义25045端口---------sbitCS=P1^1;//*片选sbitSO=P1^0;//*串行输出sbitSI=P1^3;//*串行输入sbitSCK=P1^2;//*串行时钟输入charcommand;//*指令字//-------------------------------------sbitK1=P3^0;//计程开关intpulsdate;