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.

TMS320F28379D: Read Encoder pulses

Part Number: TMS320F28379D

Hello EveryOne,

       I want to read pulses of rotary encoder which is interface with TMS320F28379D controller. I Refer eqep_ex2_pos_speed code from https://dev.ti.com/tirex/explore/node?node=AD4SwgaMeqoQEzFVD8GiEA__gYkahfz__LATEST. I just want to know in code which variable pulses are saved??. or anyone have simple code where only pulses of encoder  are measure??

Thanks

  • Hi Sayali,

    Can you explain more what you mean by wanting to read the pulses? Do you mean you want to view them? You should be able to hook up channels A and B to a scope and view the waveforms on that. They are not stored in any variables since the pulses are a waveform, not a value

    Regards,

    Peter

  • Okay.. So, on every high to low trigger pulse I want to increment variable. I have encoder which is 2500 PPR means we got 2500 pulses in 1 rotation. So I just want to know in which variable(in code)  I can get those 2500 count??

  • Hi Sayali,

    There is a DriverLib function denoted as EQEP_getPosition() which returns the current position of the encoder. I think this is what you are interested in. You can use this function and assign it to a variable within the project's interrupt handler and monitor the position through that. Please let me know if this is what you are looking for

    Regards,

    Peter