编码器程序51 角度结算时间 intHXA_CALC_TIMES=1000; sbitA_PORT=P2^7; sbitB_PORT=P2^6; bitA_LAST_STATE; bitB_LAST_STATE