How to set SPI when I use TI F28069M and BOOSTXL-DRV8301

Hallay
Hallay Altair Community Member

Hello expert

I need to use TI board to control motor by PSIM as below.

According to TI data, SPI setting is GPIO 14,24,25,27.

But PSIM SPI Block just allow GPIO 12-15 or 24-27.

Can anyone tell me how to assign SPI in GPIO 14,24,25, and 27?

thank you

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • VSiddhartha
    VSiddhartha
    Altair Employee

    Hi Hallay,

    There is an example in PSIM. Goto PSIM»»»File»»»Open Examples»»»Code Generation »»»F2806x target»»» TI DRV8301-HC-C2 PMSM InstaSPIN Lab11.

    I hope this example will help you.

    Thank you,

    Vishwanatha Siddhartha

  • Hallay
    Hallay Altair Community Member

    Hello Vishwanatha

    This example use DRV8301-HC-C board.

    It's GPIO 16-19 for SPI. This match PSIM SPI Block.

    However, F28069M with BOOSTXL-DRV8301 provide GPIO 14,24,25, and 27 for SPI.

    There is no suitable SPI port to choose in PSIM.

    This confuse me.

    thank you

  • VSiddhartha
    VSiddhartha
    Altair Employee

    Hi Hallay,

    I can see only 14, 15, 19 and some other pins are for SPI in F28069M Pin out structure (From datasheet). With F28069M there is no option to configure individual ports for SPI. There are some other targets (For example 2837x) with which you can configure individual ports for SPI.

    In PSIM the example designed based on these pins and DRV8301 HC. You may try using the combinations available in PSIM if 28069M to be used.

    Thank you,

    Vishwanatha Siddhartha

  • Hallay
    Hallay Altair Community Member

    Hello Vishwanatha

    According to your description.

    PSIM can't generate code with below combination.

    It's pity to hear that.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.