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.

TMS320F28388D: SDFM setting for Servo motor

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hi experts,

I want to use SDFM with the following settings.(Repeat 1 to 4)

  1. Start SDFM with period of PWM timer in up-down mode
  2. Stop SDFM after getting the value in SDFM
  3. Clear SDFM's buffer
  4. return to "1"

Is there an SFDM sample program for this specification in C2000ware?

I checked the following folders but could not find it.
C:\ti\c2000\C2000Ware_4_01_00_00\driverlib\f2838x\examples\c28x\sdfm

Since this spec is a common usage in servo control, I assumed these projects were out there somewhere.

Best regards,
Sasaki

  • Sasaki,

    Did you check example sdfm_ex6_FIFO_freeze_claread.c? In this example, we use PWM sync (SDSYNC) feature to reset the SDFM data filter based on PWM timer event. SDSYNC event flushes out SDFM data filter buffers and get started over again. Based on your description, this is the example you are looking for.

    // FILE:   sdfm_ex6_FIFO_freeze_claread.c
    //
    // TITLE:  SDFM Filter sync with FIFO Freeze CLA Example.
    //
    //! \addtogroup driver_example_list
    //! <h1> SDFM Filter Sync CLA</h1>
    //!
    //! In this example, SDFM FIFO will not be filled until a SDSYNC event.
    //! On a SDSYNC event, SDFM data filter output will start filling FIFO
    //! and stop filling after programmable number 'N' of FIFO is filled.

    Regards,

    Manoj

  • Hi Manoj-san,

    Thank you for your information.

    I will check this example.

    Best regards,
    Sasaki