Tool/software: Code Composer Studio
Hello everybody,
I am trying to become acquainted with SPI communication with LAUNCHXL F28379D launchpad and I want to clarify something regarding the SPI Mode configuration that I am using. If I want to communicate with an external device through SPI that is configured for SPI Mode 3(Clock Polarity =1 and Clock Phase = 1) then shouldn't I initialize SPI inside my stack like this?
SpixRegs->SPICCR.bit.CLKPOLARITY = 1; // Rising edge
SpixRegs->SPICTL.bit.CLK_PHASE = 1; //
Doesn't it guarantee SPI Mode 3?
Thank you in advance
Stamatis