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 configuration not mentioned in the TMS32LF2406A user guide.

Other Parts Discussed in Thread: TMS320LF2406A

Hello,

According to the Appendix D of TMS320LF2406A user guide, the DSP should send 0x03, 0x00, 0x00 to the EEPROM. An MSP430 is used instead of EEPROM. The MSP430 is configured to 3-pin SPI mode. The user guide did not mention the exact SPI configuration the EEPROM or an SPI enabled device should have. I am receiving 0x00, 0xC0,0x00, 0x00... the 0xC0 keep changing to a different value every time the DSP boot loading restarts. I am guessing the SPI configuration is not correct. What is the correct SPI configuration?

Following is the SPI Configuration in :

    //============================================================================
    // UCB0 Module setup for 3-pin SPI slave mode
    //    PORT3:
    //        PIN 1 : SIMO    (Slave In     Master Out    )
    //        PIN 2 : SOMI    (Slave Out    Master In    )
    //        PIN 3 : CLK        (SPI CLK                )
    //============================
================================================
    P3SEL |= 0x0E;

    UCB0CTL1 |= UCSWRST;                     // **Put state machine in reset**
    UCB0CTL0 |= UCSYNC + UCCKPL + UCMSB;     // 3-pin, 8-bit SPI slave
                                            // Clock polarity high, MSB
    UCB0CTL1 |= UCSSEL_2;                     // SMCLK 20MHz
    UCB0BR0 = 0x02;                         // divide by 2
    UCB0BR1 = 0;                             //
    UCB0CTL1 &= ~UCSWRST;                     // **Initialize USCI state machine**
    UCB0IE |= UCRXIE;                         // Enable USCI_B0 RX interrupt


Thanks,

Hummingbird