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.

TMDSCNCD28388D: C2000

Part Number: TMDSCNCD28388D

void    SPI_setBaudRate(uint32_t base, uint32_t lspclkHz, uint32_t bitRate)
{
uint32_t baud;

//
// Check the arguments.
//
ASSERT(SPI_isBaseValid(base));
ASSERT(bitRate <= (lspclkHz / 4U));
ASSERT((lspclkHz / bitRate) <= 128U);

//
// Set the clock.
//
baud = (lspclkHz / bitRate) - 1U;
HWREGH(base + SPI_O_BRR) = (uint16_t)baud;
}

请教一下,我想要将SPI的读写数据的能力设置成400kB/s

需要将函数中的bitRate设置成多少呢?

这个过程是怎么计算的呢?

特来请教

期待您的回复!