TMS570LS1114 EQEP

TMS570LS1114  EQEP测量电机转速

   /* Elapsed time between unit position events */           
   deltaT = eqepREG2->QCPRD;
   /* Calculate Velocity from deltaT and the value of the unit position. */           
   /* The value of Unit Position is a sample value and should be changed by the User as per the actual value in the UNIT_POSITION_X macro above. */     
      
   velocity = (float)(UNIT_POSITION_X*1.0F/deltaT);
deltaT这个是编码器AB信号一个脉冲的时间还是什么时间?
目前不知道如何测量电机的转速。
有哪位用过TMS570Ls1114芯片的EQEP测量电机转速的功能吗?指点一下。

1 个回复