Other Parts Discussed in Thread: SYSCONFIG
Hi Team,
Hope you are doing well.
I am using AM243x-LP and programming the eQEP interface for motor speed calculation (position data is not required).
With reference to the velocity calculation in TRM(page 7825) I have the following lines of code.
- Setting GPIO1_28 high // select eQEP2 function
- HW_WR_REG32 (0x0322020, 1250); // EQUEP_QUPRD register; 100kHz switching frequency and 25MHz clock frequency configured in sysconfig.
- HW_RD_REG32 (0x30220018) // EQUEP_QPOSLAT register; To read incremental position value (delta X)
I am able to see the QEPA, QEPB and QEPI signals on the encoder terminals but when I insert it in J21 of LP, I am unable to read the 'x(k+1) - x(k)' value in EQEP_QPOSLAT Register (0x03220018).
Ideally after sysconfig configuration of eQEP and J21 LP connection, I should be able to see some nonzero value in the 0x03220018 register.
Am I missing some important configuration here? Can you please let me know your thoughts on this?
I am using the Teknic motor (https://www.ti.com/tool/LVSERVOMTR)
Please let me know if you need any further information in this regard and wish you a pleasant day ahead.
Thanks and Regards,
Vaidehi Anil Deoskar