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.

Unable to write the TMS320F28335 SPI registers

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

i am trying to configure the SPI and while compiling the code in ccs3.3 its getting compile but the SPI registers are not getting written...

as per data sheet its not EALLOW protected also so what is the problem i am not able to figure it out..

kindly help asap.

thanks,

dhiraj

  • Dhiraj,

    I would double check the code you are using against some of the examples found within the device support folder.  It is possible you are trying to access the registers incorrectly in your code.  They can be found in controlSUITE in this folder (or similar)

    C:\TI\controlSUITE\device_support\f2833x\v132\DSP2833x_examples_ccsv4

    Regards,
    Daniel

  • Dhiraj Kumar Dhiraj said:

    Hi,

    i am trying to configure the SPI and while compiling the code in ccs3.3 its getting compile but the SPI registers are not getting written...

    as per data sheet its not EALLOW protected also so what is the problem i am not able to figure it out..

    kindly help asap.

    thanks,

    dhiraj

    Check that you have enabled the clock to the SPI.

    EALLOW

    SysCtrlRegs.PCLKCR0.bit.SPIAENCLK = 1;   // SPI-A

    EDIS

  • Lori Heustess said:

    Check that you have enabled the clock to the SPI.

    EALLOW

    SysCtrlRegs.PCLKCR0.bit.SPIAENCLK = 1;   // SPI-A

    EDIS

     Hi Lori,

    Am also trying to unlock the registers (SPIRXBUF 0x0000-7047, SPITXBUF 0x0000-7048) to read and write data .So i followed your suggestion

    to enabled the clock to the SPI.Even though not able to write the data in registers.

    Could you pls suggest any alternative?

    Thanks!

    Indra