Hi Paul, To know if everything is initialized correctly, I'll need to see into the functions you use in SPI_Enable: SPI_ClockMode GPIO_Set/ClearBits The values of SPI_MODE_1, SPIDOUT_MSP, SPIDIN_MSP, and SPICLK_MSP Also, I never saw you enable either the transmit or receive interrupts for the SPI module. Without these enabled, I would expect a statement like while(!(UCA0IFG & UCRXIFG)); to just spin forever. Edit: Disregard the last statement. The interrupt flag will still be set regardless of whether interrupts are enabled. Best regards, Caleb Overbay
↧