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.

HIGH SPEED SPI (HSSPI) TMS320F2837xD

Other Parts Discussed in Thread: CONTROLSUITE

Hi. I'd like to know Why example 17-3 Datasheet TMS320F2837xD (2396 pages) say " Baud Rate Calculation in Non-High Speed Mode (HS_MODE=0)" and they are using LSPCLK = 50MHz.

Doesnt HSSPI mean max. freq LSPCLK = 40MHz?

Thks

  • Hi Arcadio,

    The 40MHz limitation is actually on the SPICLK.  LSPCLK is common to other communications peripherals like McBSP and can be up to 200MHz. To get 40MHz SPICLK, you will want to set the LSPCLK to 200MHz:


  • Hi,Devin

    I check the SPICCR register (page 1900 of 2396 in the TRM -spruhm8c),but I cannot find the bit of HS_MODE,any mistake?

  • You are right. This bit field is missing in SPICCR register in TRM as well as in header file. This will be corrected in next release of TRM and controlSUITE which is planned towards the end of this month. 

    Following should be SPICCR register definition -

    struct SPICCR_BITS {                    // bits description
        Uint16 SPICHAR:4;                   // 3:0 Character Length Control
        Uint16 SPILBK:1;                    // 4 SPI Loopback
        Uint16 HS_MODE:1;                   // 5 High Speed mode control
        Uint16 CLKPOLARITY:1;               // 6 Shift Clock Polarity
        Uint16 SPISWRESET:1;                // 7 SPI Software Reset
        Uint16 rsvd1:8;                     // 15:8 Reserved
    };

    Regards,

    Vivek Singh