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.

AM5726: am5726 spi

Part Number: AM5726

Hi guys,

I need advice.

We would like to transmit data to 4 external devices via SPI.

Need a soft of "fire and forget" mode. Where we write several requests into SPI module, while SPI rises/lowers CS to per requests on its own, without software interaction.

Is it Possible?

Any example and hint will be appreciate.

Best regards

  • Hi,

    Need a soft of "fire and forget" mode. Where we write several requests into SPI module, while SPI rises/lowers CS to per requests on its own, without software interaction.

    I'll need a little more details here. Can you please elaborate a little more?

    Are you transmitting same data to all the 4 devices or different data to different devices?

    If you are writing different data, is there a specific sequence in which you'll be accessing these devices or is it random?

    Any other similar details about the use case would also be helpful.

    Regards,
    Parth

  • Hi,

    We have to transmit data to 4 different devices.

    That is, we share the same MCSPI between 4 devices, SPI lines are shared, each device has separate CS, which is controlled by MCSPI master.

    Order is less important. 

    Example:

    We would like to transmit sequence of 8, 24, 32 and 16 bytes to 4 difference devices.

    We expect that we write 8, 24,32,16 bytes to 4 different TX channels in SOC and assume that each sequence is transmitted though the same DI/CLK/DO with its own CS. 

    After some time I expect that to find in each corresponding RX buffer the same amount of bytes as transmitted.

    Best regards

    Rasty

  • Hi Rasty,

    Looking at TRM section 24.4.2.3 it look like automatic chip select should be possible

    I am looking into this. Meanwhile, you can also refer to TRM section 24.4 for details.

    Regards,
    Parth