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.

LAUNCHXL-F28379D: f28379d

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: TMS320F28379D, C2000WARE

PGA411-Q1 communication with TMS320F28379d via SPI

how to interface to TMS320, how to read the angle of the resolver can I get any sample code to configure it .

  • Hi G,

    We do not have any specific examples for how to communicate PGA411-Q1 with the TMS320F28379D, but one of our C2000Ware SPI examples can be used as a starting point to properly configure the SPI (more specifically the external loopback example).

    C:\ti\c2000\C2000Ware_version\driverlib\f2837xd\examples\cpu1\spi 

    Best Regards,

    Marlyn

  • Hi Marlyn 

    thanks so much for your response.

    I am done with SPI communication.

    communication with master and slave after that how can I rotate that resolver I need basic stuff on that.

    how to connects tms320f28379d and pga411 module.

  • Hello,

    I am glad you were able to finish the SPI configuration. 

    how can I rotate that resolver I need basic stuff on that

    For this question you will need to post another question on the E2E forum, so that it gets routed to the correct person and team. This is not something I can help with as it does not pertain to a C2000 device.

    how to connects tms320f28379d and pga411 module.

    Are you asking about a physical connection? The PGA411 has four SPI pins (NCS, SCLK, SDI, and SDO). These pins can be connected to the TMS320F28379D through the CS, SPICLK, SPIMOSI, SPIMISO pins. 

    Best Regards,

    Marlyn

  • thanks for your response yes I am done with that part on the pga411 development board we have msp430 is it correct. 

    after giving The PGA411 has four SPI pins (NCS, SCLK, SDI, and SDO). how can I understand it is working or not. 

    that means pga411 working or not how can I know that. 

    // Configure GPIOs for external loopback.
    //
    void configGPIOs(void)
    {

    /*
    * -External Connections:
    * -GPIO58 and GPIO63 - SPI-MOSI
    * -GPIO59 and GPIO64 - SPI-MISO
    * -GPIO61 and GPIO65 - SPI-STE
    * -GPIO60 and GPIO66 - SPI-CLK
    *
    */

    /* SPI-A configuration */
    /* GPIO59 is the SPI-MISO. */
    GPIO_setMasterCore(59, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_59_SPISOMIA);
    GPIO_setPadConfig(59, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(59, GPIO_QUAL_ASYNC);

    /* GPIO58 is the SPI-MOSI clock pin. */
    GPIO_setMasterCore(58, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_58_SPISIMOA);
    GPIO_setPadConfig(58, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(58, GPIO_QUAL_ASYNC);

    /* GPIO61 is the SPI-STEA. */
    GPIO_setMasterCore(61, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_61_SPISTEA);
    GPIO_setPadConfig(61, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(61, GPIO_QUAL_ASYNC);

    /* GPIO60 is the SPI-CLKA. */
    GPIO_setMasterCore(60, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_60_SPICLKA);
    GPIO_setPadConfig(60, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(60, GPIO_QUAL_ASYNC);

    /* SPI-B configuration */
    /* GPIO64 is the SPI-SOMIB. */
    GPIO_setMasterCore(64, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_64_SPISOMIB);
    GPIO_setPadConfig(64, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(64, GPIO_QUAL_ASYNC);

    /* GPIO63 is the SPISIMOB clock pin. */
    GPIO_setMasterCore(63, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_63_SPISIMOB);
    GPIO_setPadConfig(63, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(63, GPIO_QUAL_ASYNC);

    /* GPIO65 is the SPICLKB. */
    GPIO_setMasterCore(65, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_65_SPICLKB);
    GPIO_setPadConfig(65, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(65, GPIO_QUAL_ASYNC);

    /* GPIO66 is the SPISTEB. */
    GPIO_setMasterCore(66, GPIO_CORE_CPU1);
    GPIO_setPinConfig(GPIO_66_SPISTEB);
    GPIO_setPadConfig(66, GPIO_PIN_TYPE_PULLUP);
    GPIO_setQualificationMode(66, GPIO_QUAL_ASYNC);
    }

    I have given the connection as above mention code

    after that what to do.

  • Hello,

    thanks for your response yes I am done with that part on the pga411 development board we have msp430 is it correct

    My apologies for not fully understanding here, but are you asking if the setup is correct with an msp430?

    that means pga411 working or not how can I know that.

    The datasheet for the pga411 provides some details on how to convert the data to find the angle and velocity values. Have you received any data from the pga411?

    Also, just curious, but you should only need one SPI for this communication. Is there a particular reason you have configured the pins for both SPIA and SPIB?

    Best Regards,

    Marlyn