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.
Part Number: MSP432P401R
Tool/software: Code Composer Studio
I developed my project with reference to Examples/TI Drivers/spiloopback.
http://dev.ti.com/tirex/explore/node?node=AC9hN5J9IbnJPExEuCz-7Q__z-lQYNj__LATEST
Does this driver automatically use DMA for SPI communication?
Do I have to set it up separately?
What is the maximum SPI maximum speed?
It is said that the datasheet is 16MHz, what settings need to use it?
Hi Joonbum,
Yes the SPI driver already utilizes DMA, you don't have to configure it separately.
You can use the spi params structure to configure the bit rate:
typedef struct { SPI_TransferMode transferMode; /*!< Blocking or Callback mode */ uint32_t transferTimeout; /*!< Transfer timeout in system ticks */ SPI_CallbackFxn transferCallbackFxn;/*!< Callback function pointer */ SPI_Mode mode; /*!< Master or Slave mode */ /*! @brief SPI bit rate in Hz * * Maximum bit rates supported by hardware: * Device Family | Slave Max (MHz) | Master Max (MHz) | * ------------- | ------------------ | ---------------- | * MSP432P4 | 16 MHz | 24 MHz | * MSP432E4 | 10 MHz | 60 MHz | * CC13XX/CC26XX | 4 MHz | 12 MHz | * CC32XX | 20 MHz | 20 MHz | * * Please note that depending on the specific use case, the driver may not * support the hardware's maximum bit rate. */ uint32_t bitRate; uint32_t dataSize; /*!< SPI data frame size in bits */ SPI_FrameFormat frameFormat; /*!< SPI frame format */ void *custom; /*!< Custom argument used by driver implementation */ } SPI_Params;
Thanks,
Alexis
**Attention** This is a public forum