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.

Endat 22 library use

Hi, I'm try to use the Endat_22 library with the 379S microcontroller.

I've see thatin the setup procedure, is necessary to turn on the EPWM1, EPWM2, EPWM3 and EPWM4 devices.

I understand the EPWM4 that is used to generate the clock for the encoder and the SPI, but I don't understand the EPWM1-2-3 function.

Now in my device I already use the EPWM0-1-2-3 modules whith the relative hardware output, so I can't set the EPWM1-2-3 for the Endat pourpose.

Is there a way to use another EPWM modules with the Endat library?

If I don't interested in the delay calculation made by the CLB in the 379S, can I use the library with the 377S device in the same way?

Regards

Giuseppe

  • Hi Giuseppe,

    The internal logic (CLB), which is responsible for doing the Position Manager functionality, requires clocks which come from ePWM1-ePWM4. 

    Note that the functionality of ePWM1-ePWM3 is not restricted by Position Manager.  PM merely requires that the ePWM clocks be on (and these ePWM clocks to be running at 100MHz).  This means that you can use ePWM1-ePWM3 to control FETs (or be used however you wish).  Also note that the other ePWM modules in the device are also available to be used.

    Position Manager is only available on the '379D and '379S today.

    If you wished to create your own implementation that doesn't do delay compensation and doesn't use the PM, it is likely feasible.  However, there will be obstacles to overcome - specifically with managing the control of the data line/transceiver.  I might recommend using a CLA to manage the protocol with some amount of bit-banging.


    Thank you,
    Brett

  • Thank you for your reply.
    If I have understand well, the only necessary thing it to leave the /2 clock divider for the EPWM modules.

    For my personal curiosity, is there a chance to see the lib source code expecilly to see the CLB configuration?
    If necessary I can subscribe a NDA document.

    Regards
    Giuseppe
  • Hi Giuseppe,

    Correct.

    ===

    Source code configurations for the CLB, etc will not be meaningful without any design background on the CLB architecture, which remains TI internal information.  As such, we do not provide source code of the PM libraries - an exception may be if there is a specific reason for doing so, such as avionic certifications. 

    If you wish to explore this further, you should contact your local FAE.


    Thank you,
    Brett

  • Clear.

    Thank you for your help

    Regards

    Giuseppe