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

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0432

hello team

im working with TMS570LS0432 controller with MIBSPI module.my slave device is 23LC1024 SRAM device.have configured using the HALCOGEN version4 .this my code

uint16 TX_Data[]={0xAA,0x55};

            uint16 RX_Data[2];

            mibspiInit(); //initializes the mibspi modul

                      mibspiSetData(mibspiREG1,0,TX_Data);//Set Buffer Data to the transfer group0

            mibspiTransfer(mibspiREG1,0);//Initiates a transfer for the  transfer group0.

            while(!(mibspiIsTransferComplete(mibspiREG1,0))); //Checks to see if the transfer for the specified transfer group0 has finished.

            mibspiGetData(mibspiREG1,0,RX_Data);//Retrieves Buffer Data from receive buffer

            while(1);

for interfacing with sram

but m unable to read and write.plz help me.

thanks in advance

  • hello team,

    im workin with tms570ls0432 microcontroller. im using the mibspi module.have configured using the halcogen version4.should send and recieve data from sram 23lc1024.the code i have used is

    /* USER CODE BEGIN (2) */
    uint16 txBuffer[]={0xaa,0X55};
    uint16 rxBuffer[1];
    /* USER CODE END */

    void main(void)
    {
    /* USER CODE BEGIN (3) */
        while(1)
        {
        mibspiInit();//initializes the mibspi module

        mibspiSetData(mibspiREG1,0,txBuffer);//Set Buffer Data to the transfer group0

        mibspiTransfer(mibspiREG1,0);//Initiates a transfer for the  transfer group0.

        while((mibspiIsTransferComplete(mibspiREG1,0))); //Checks to see if the transfer for the specified transfer group0 has finished.

        mibspiGetData(mibspiREG1,0,rxBuffer);//Retrieves Buffer Data from receive buffer
        }.

    the interface connection with sram is

    but while workin with ccs im unable to read and write data while debugging.i dont know where i went wrong.can you plz help me.

  • Hello:

    Are you able to see the data in the MOSI/MISO lines using a scope? Could you try using loopback mode and checking the outcome? After calling mibspiInit() call mibspiEnableLoopback(mibspiREG1, Digital_Lbk)

    Regards,

    Enrique

  • hello

    thank you. when i tried with the looback mode im able transmit and recieved data.but as i know loopbackmode is the self test mode.since i have to communicate with the slave device (23LC1024-SRAM DEVICE)my code goes wrong.

    have to write a code so that i can read and write data from slave device using mibspi module in tms570ls0432.can you help me in this.thanks in advance