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: C2000 Position Manager for EnDat 2.2 (PM_endat22_lib.lib)

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE

I am having trouble communicating to EnDat2.2 encoder motor using PM_endat22_lib.lib.

 

I have custom HW with following minor change:

- Instead of SPI-B used in IDDK (Please refer to sprui35.pdf   -> See Figure 2 on Page 6 and Table 6 on Page 33) i.e. GPIO 24,25,26,27. I am using SPI-A on my custom HW i.e. GPIO 58,59,60,61

- Rest of all GPIO pins i.e. 6,7, 34 and 32 are map correctly.

 

I have tested my custom HW using BiSS-C encoder using PM_bissC_lib.lib and everything works i.e. I am able to read BiSS-C encoder position correctly.

 

 

Now I try to use same set up for endat using example code with SPI-A modification i.e. “C:\TI\controlSUITE\libs\app_libs\position_manager\v01_02_00_00\endat22\examples\PM_endat22_BasicPosAcc_DelComp”  

 

When I run modified PM_endat22_BasicPosAcc_DelComp example and monitor ENDAT_DIR(GPIO34), ENDAT_CLK(GPIO6) and ENDAT_DOUT(GPIO59) and ENDAT_DIN(GPIO58) line on oscilloscope,

 

Questions

1. I notice that ENDAT_DIR never toggles. Always remains low. ?  For ENDAT_DIR should be High when transmitting and should go low when receiving data.

2. Can you confirm PM_endat22_BasicPosAcc_DelComp (v01_02_00_00) works on IDDK?

3. Which EnDat 2.2 or 2.1 motor PM_endat22_lib.lib has been tested with?

 

Let me know if you required more information.

 

PJ