Hi!
I am trying to get the command TBLW to work on my TMS320LF2406A device.
I am using the code below, and _Iref_Table is a table 15x12 where all cells are set to 0x0006.
LDP #m_gs_TorqueRef >> 7
LACL m_gs_TorqueRef
LACL #3
ADD #_Iref_Table
TBLW m_gs_TorqueRef
LACL #3
ADD #_Iref_Table
LDP #m_pf_20k_Test >> 7
TBLR m_pf_20k_Test
When I run this program m_pf_20k_Test is always 0x0006, for all values of m_gs_TorqueRef.
Does anybody have worked with that instruction?
Thanks Anders
Denmark