This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware: how to use spi in cc2640?

Tool/software: Starterware

Hello
There is one question.
I am trying to SPI communication epc 610 and  cc 2640.
Can cc 2640 continuously transfer 16 bits when doing spi communication?

Instead of transmitting 8 bits twice, spi clock must continuously transmit 16 bits of data to the epc 610 chip with 16 bits continuously.

help me

  • Moving this thread to the BLE forum.

  • Hi Soo Hyun Lee,

    As I know, you can edit datasize in setting. However, I did not try to do them before. Please update for me if you is successful with them

    /*!
     *  @brief  Function to initialize the SPI_Params struct to its defaults
     *
     *  @param  params      An pointer to SPI_Params structure for
     *                      initialization
     *
     *  Defaults values are:
     *      transferMode        = SPI_MODE_BLOCKING
     *      transferTimeout     = SPI_WAIT_FOREVER
     *      transferCallbackFxn = NULL
     *      mode                = SPI_MASTER
     *      bitRate             = 1000000 (Hz)
     *      dataSize            = 8 (bits)
     *      frameFormat         = SPI_POL0_PHA0
     */
    extern void SPI_Params_init(SPI_Params *params);

    Best wishes