This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1114 EQEP

Other Parts Discussed in Thread: TMS570LS1114

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测量电机转速的功能吗?指点一下。
  • /*根据deltaT和单位位置值计算速度。* /

    /*单元位置的值是一个示例值,用户应该根据上面UNIT_POSITION_X宏中的实际值进行更改。* /

    速度=(浮动)(UNIT_POSITION_X * 1.0 f / deltaT);
    注释的不是很清楚吗