Part Number: MSP432E401Y Hello, So I've been working with the MSP432E401Y's spimaster example with SDK v3.3. The external ADC I'm using needs a high SCK Frequency (ideally at 85 MHz). But, the MSP432's documented maximum rate of 60 MHz would work too (unless there's a way to go higher than that). I'm setting the bitRate to be 60 MHz, but it somehow maxed out at 10 MHz when I looked at it on a logic analyzer. How would I configure it to get a larger frequency? My setup: /* Open SPI as master (default) */ spiParams.frameFormat = SPI_POL0_PHA1; spiParams.bitRate = 60000000; spiParams.mode = SPI_MASTER; spiParams.dataSize = 12; spiParams.transferMode = SPI_MODE_BLOCKING; masterSpi = SPI_open(CONFIG_SPI_MASTER, &spiParams); if (masterSpi == NULL) { Display_printf(display, 0, 0, "Error initializing master SPI\n"); while (1); } else { Display_printf(display, 0, 0, "Master SPI initialized\n"); } Documentation Showing that I can supply up to 60 MHz: 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; Logic Analyzer Output:
↧