AnsweredAssumed Answered

SPI Chip select toggles between bytes

Question asked by Roger Pease on Dec 10, 2014
Latest reply on Feb 17, 2016 by Carlos Hass

I am using an MKL24Z32VLH4 device. We are using SPI0 to talk to a bluetooth module. CW 10.6, Processor expert


Despite setting Chip-select toggling to no,




I am still getting that chip select toggling per each byte (sorry for the sideways picture)





I also noticed there is no hardware buffer for sends/receives (well, it's one byte long) ..... I am using the sample code


  char RecvBlock[] = {0x0,0,0,0,0};

  char SendBlock[] = {0x08,0,0,0,0};



  while(1) {

        spiBluetoothBlockReceived = 0;

        LDD_TError Error1 = BLUETOOTH_ReceiveBlock(BLUETOOTH_DeviceData,RecvBlock,5);

        LDD_TError Error2 = BLUETOOTH_SendBlock(BLUETOOTH_DeviceData,SendBlock,5);

        while (spiBluetoothBlockReceived == 0);



Do I need to use the DMA? Or is there another setting I am missing?