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.

CCS/MSP430F5529: MSP430 SPI with LTC6820 ISOSPI

Part Number: MSP430F5529

Tool/software: Code Composer Studio

I'm trying to implement an  isoSPI Isolated Communications Interface IC with MSP430F5529 when I use arduino UNO with ltc6820 the isoSPI signal wave is shown in the 1st image It work correctly and received data. But MSP430 the wave shown in the 2nd image. What should I do to take 1st wave form using MSP430? And these are the settings void init_spi(void)
{
  WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
  UCBxCTL1 |= UCSWRST;                     // Stop USCI state machine
 
  // SPI take control over the PINs
  CLK_PxSEL |= IO_SPI_SCLK;  
  SIMO_PxSEL |=  IO_SPI_SDI;
  SOMI_PxSEL  |= IO_SPI_SDO;
 
  STE_PxSEL &= ~(IO_SPI_CS); // SPI_CS needs to be output driven by SW
  STE_PxREN &= ~(IO_SPI_CS); // Pullup/Pull down resistor disabled  
  STE_PxOUT |= IO_SPI_CS;    // Set CS to HIGH
  STE_PxDIR |= IO_SPI_CS;    // SPI_CS needs to be output driven by SW  
 
  UCBxCTL0 |= 0x29;//UCMSB + UCMST + UCSYNC;       // 3-pin, 8-bit SPI mstr, MSB 1st
  UCBxCTL1 |= UCSSEL_2;                     // SMCLK = 8MHz Hz
  UCBxBR0 = 0x8;//SPI_BAUDRATE_REG;                              // SMCLK/8 = 1.04 MHz
  UCBxBR1 = 0;
  UCBxCTL1 &= ~UCSWRST;                     // Start USCI state machine
}

  • Per LTC6820 data sheet (Rev C) Tables 1-3, the first looks like "long -1" (CS-falling) and the second looks like "long +1" (CS-rising). In isolation, CS-rising is harmless, and I suppose might indicate a transient startup event.

    What does the rest of your transaction look like? If you have more scope channels, a probe of /CS and/or SCK might be useful.

    Also, what does your data-transfer code look like?

  • Thank you. problem solved. the UCCKPH bit was changed into 0 and MISO line was pulled up then the data transmission was back in to normal.

**Attention** This is a public forum