Hello, I am using UCB1 module in MSP430FR69891 for SPI communication. However, there is issues with the SIMO signal. in the pic, it shows the data signal is just "oscillating", during the whole data transfer process. The configuration code I am using the following: // Configure GPIO for SPI P3SEL0 |= BIT0 | BIT1; // Set P3.0, P3.1, P3.2 for SPI Communication, B1 P3SEL1 &= ~(BIT0 | BIT1); // P3.0 CLK, P3.1 Data Output GPIO_setAsOutputPin(GPIO_PORT_P3, GPIO_PIN2); // set P3.2 for SPI Chip selection UCB1CTLW0 = UCSWRST; UCB1CTLW0 |= UCMST | UCSYNC | UCCKPH | UCMSB ; // Master mode, 3-pin, 8-bit SPI, Synchronous mode, MSB first UCB1CTLW0 |= UCSSEL__SMCLK; // Select SMCLK UCB1BR0 = 0x02; // divide 2 UCB1BR1 = 0; UCB1CTLW0 &= ~UCSWRST; // **Initialize USCI ** Did I miss any information while configuring the module? Thx
↧