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.

TMS570LS2124: MIB-SPI Questions

Part Number: TMS570LS2124
Other Parts Discussed in Thread: HALCOGEN

Hello . I have several question about MIB-SPI and Compatibility mode SPI .

Can I use the same SPI module for example SPI1 or SP5 both modes (MIB-SPI and compatibilty) to get access to the defferent devices with different chip selects signal. for example - the compatibilty mode used to get information from One SPI Slave and after receiving information, we switch to the MIB mode to receive information from another slave with different chip select. After receiving information from second one, we swith off MIB and consequently get information from first device in compatibility mode -  etc... 

I ask about this one because I get problem with device which communicated in compatibility mode, after switching on MIB-SPI. 

And next question - I can switch on MIB-SPI mode only once after reset,  All next writing to the register MIBSPIE were ignored as 1 as 0. Is it normal behaviour? May be I need permit the reinitialization MIB RAM after RESET Initialization?

Best regards

Andrii Shevchuk

 

Best regards.

Andrii Shevchuk

  • Hi Andrii,

    Can I use the same SPI module for example SPI1 or SP5 both modes (MIB-SPI and compatibilty) to get access to the defferent devices with different chip selects signal

    For single instance of SPI, it is not possible to keep that instance of SPI in both SPI and MIB-SPI at the same time.

    And also, you can see using Halogen especially either one of the drivers can be generated and not both for single instance.

    So, this is not possible and not used before.

    And also, at one time slot one instance will act as only one mode either compatibility SPI or MIBSPI.

    The below highlighted bit will decide whether the instance should act as SPI compatibility or MIBSPI.

    If you want to use two different instances in two different modes, that is allowed. Example, SPI1 can be used as MIBSPI and SPI5 can be used as compatibility mode or vice versa.

    or example - the compatibilty mode used to get information from One SPI Slave and after receiving information, we switch to the MIB mode to receive information from another slave with different chip select.

    Using HALCoGen it is the limitation maybe using custom code you can do it. But there is no example for it now.

    And next question - I can switch on MIB-SPI mode only once after reset

    There is no such limitation. 

    And i will suggest you to do follow below sequence while switching to MibSPI3.

    Do this reset sequence before enabling MibSPI mode.

    And also do this start after your required initializations.

    --
    Thanks & regards,
    Jagadish.