#include//1638he165合并程序2018/5/26#include#include#defineucharunsignedchar#defineuintunsignedintsbitSU0=P2^0;//计数脉冲识别sbitSU1=P2^1;//计数脉冲识别sbitSU2=P2^2;sbitDJ1=P1^0;sbitDJ2=P1^1;sbitQH=P3^2;//输出端sbitCK=P3^3;//时钟上升沿有效sbitPL=P3^4;//移