AnsweredAssumed Answered

SPI using KEA128

Question asked by Jashan Mahadevu on Jun 29, 2015
Latest reply on Jul 1, 2015 by Jashan Mahadevu

hi all,

         i am working on KITMC07XS5617EVB and KEA128 via SPI. I am initialising it but the SPI_D register is not updating, am initialising SPI0 using following code...

 

void SPI_INIT(){

  SIM_SCGC |= SIM_SCGC_SPI0_MASK;

  SPI0_C1 |= SPI_C1_SPE_MASK;

  SPI0_C1 |= SPI_C1_MSTR_MASK;

  SPI0_C1 |= SPI_C1_CPHA_MASK;

  SPI0_C2 |= SPI_C2_SPMIE_MASK;

  SPI0_S |= SPI_S_SPTEF_MASK;

  SPI0_S |= SPI_S_MODF_MASK;

  SPI0_S |= SPI_S_SPRF_MASK;

  SPI0_S |= SPI_S_SPMF_MASK;

}

 

am i missing something here in SPI ???

Outcomes