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.

SPI on F2837xd

Hi.. Has Any one worked with SPI module on F2837xd?. 

I am facing some problem for interfacing.  

1. - I am using CCS5.5 updated and I can not see SPICCR register for any SPI module a,b,c.  I can see all other registers of SPI module in register view window. Is there any way to see that register.

2. - I am trying to interface a SPI slave IC. To start with, I tried Control suit example of SPI loop back with modification of 8 bit character length. I see same data in SPIRXbuf after transmission, If I transmit data 0x98 i.e.0x9800 left justified data then I expect SPI RX buf to be 0x0098, right justified received data 

instead  I get 0x9800 in SPI RXbuf.

3. Similarly when I connect to chip and view data on CRO I get transition on MISO pin but do not get physical data in SPIRXBUF. I get same data which I transmit as explained above.

4. I have defined GPIO 16/17/18/19 as peripheral pins.

 Can any one help?

thanks in advance

Abhijit

  • Abhijit,

    1) I cannot see the SPICCR register:
    [BL] Well your CCS setup is doing better than my CCS 5.5 installation.  My register view currently only shows the CPU registers.  That being said please note that you can add SpiaRegs.SPICCR as an expression into the expression view.

    2 & 3) My 8-bit configuration doesn't make sense based on what I'm seeing experimentally:
    [BL] What you expect is what I believe you should expect.  Are you using the FIFO?


    Thank you,
    Brett

  • Sorry Brett,

    I was out of office on personal tour so could not reply.

    for 1. OK 

    for 2.3.4. Your reply in confusing.

    Yes I am using FIFO.Is that any thing to do with 8 bit configuration

    I even tried by removing internal loop back and used external hard wire loop back on MOSI & MISO pins. To confirm I check particular by configuring  GPIO pin as input pin. I am getting proper data in GPIO mode . My slave IC works on 8 bit mode. I have already worked with F2812 SPI earlier on 8 bit  mode. Not sure what is happening on F28377D

    regards

    Abhijit