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.

CCS/TMS570LS3137: How to enable the TG again in ONESHOT mode?

Part Number: TMS570LS3137

Tool/software: Code Composer Studio

When I use different TG to transfer the data , I found the data on the oscilloscope.

But I use same TG to transfer the data , I only found the data first time on the oscilloscope.

The code is like this:

mibspiTransfer(mibspiREG1,0);

mibspiTransfer(mibspiREG1,0);

The manual about ONESHOTx said “After the transfer is finished the TGENAx control bit will be cleared and therefore no additional transfer can be triggered before the host enable the TG again.”But I have already enable the TG again.

Did I miss something?

 

PS:MIBSPI configration:master,3-pin mode;

TG:8 Groups,Length=16 of every group,Buffer Mode=4(Always),Oneshot Transfer,Trigger Event=TRG_ALWAYS,Trigger Source=TRG_DISABLED;

  • Hello Lic,

    1. configure the buffer mode of MibSPI TXRAM to 0x4 (continuous mode)
    or
    2. configure the buffer mode of MibSPI TXRAM to 0x1 AND re-write data to TXRAM (TXBUF is SET)

    In MibSPI mode, the CS signal has to be used.