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.

MibSPI TXRAM and RXRAM

Hi,

I am using TMS570 USB kit and now I am working on MibSPI module (with out DMA). Here we have 128 RAM buffers (TXRAM and RXRAM) which can be configured to multiple TGs. If my TXRAM TG is configured to have 10 buffers then my RXRAM TG will have same size (10 bufers) or its (RXRAM TG) configurable? If the size of RXRAM TG size is configurable pls let me know the steps to be followed.

Thanks & regards,

Ajay.

  • Hi Ajay,

    What you stated is correct, the Transfer Group configuration is same for both transmit and receive.

    Regards,

    Diwakar

  • Hi Diwakar,

    But in TRM its stated as "The buffers can be partitioned into multiple TGs" (section 14.10), which gives the impression like we can configure more than 8 TGs.

    Thanks & Regards,

    Ajay.

     

  • Ajay,

    On TMS570LS3x you have up to 128 buffers for TX and for RX. In MIBSPI mode, the buffer are used by a Transfer Group.
    On this device you have up to 8 Transfer Group.
    The number of buffer you can assign per Transfer Group is programmable.

    Example:

    In your application you need 3 transfer group:
    TG0 needs 8 buffers.
    TG1 needs 16 buffers.
    TG2 needs 4 buffers.

    This is a total of 28 buffers (part of the 128) the remaining buffers are not used.

    The MIBSPI also support multiple data format.
    In the previous example, it is possible to configure the MIBSPI to use:

    TG0 with Data Format 0 (configured as 16 bits character)
    TG1 with Data Format 1 (configured as 8 bits character)
    TG2 with Data Format 2 (configured as 12bits character)

    To simplify the configuration of MIBSPI (and in fact all other modules) we recommend using HalCoGen.

    Best Regards,

    Jean-Marc

  • Okay, Thanks Marc.

     

    Regards,

    Ajay.