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.

Question about MIBSPI slave mode [TMS570LS3137]

Other Parts Discussed in Thread: HALCOGEN

Hi ,

I  have question about MIBSPI slave mode.

(Q1)
Is "Oneshot setting" possible in MIBSPI slave mode?
I set to "oneshot mode" in MIBSPI slave but TGENT was not clear after transfer.

(Q2)
Can "slave mode" control ENA pin at any timing?
For example, by using the tick trigger or GPIO trigger.
ENA signal is output as soon as CS signal is input to MIBSPI slave in any setting.
I want to control ENA pin timing.

Best regards,

Mino.M

  • Mino.

    Is the MibSPI configured with the MIB unit enabled?
    The answer to 1 should be yes but only in Mib Mode.

    #2 - not really control. The nENA is an indicator of whether or not the SPIBUF has been serviced.
    If the buffer is full, such that you would get an overrun if more data is shifted into the slave, then nENA goes high.
    So to control nENA, you need to keep the buffer empty. The MIB unit can keep SPIBUF empty by copying results into the MIB unit's RAM until that is filled too..

    -Anthony
  • Hi Anthony,

    Thank you for your answer.

    I have enabled MIB unit.

    But "TGENA" was not clear after transfer in slave mode & one shot mode.

    Since the "TGENA"  is not clear, slave would start the transfer when the CS signal is input.

    Do you know the reason why "TGENA" isn't clear in slave mode?

    If possible,I want example c code & HalCoGen cfg file.

    Best regards,

    Mino.M