my question partains SPI speed. How do i know which prescaler to use based? should it be based on the device that i would like to talk to over the protocol?
An example using the HAL library is that it has the following prescaler variables
- SPI_BAUDRATEPRESCALER_2
- SPI_BAUDRATEPRESCALER_4
- SPI_BAUDRATEPRESCALER_8
- SPI_BAUDRATEPRESCALER_16
- SPI_BAUDRATEPRESCALER_32
- SPI_BAUDRATEPRESCALER_64
- SPI_BAUDRATEPRESCALER_128
- SPI_BAUDRATEPRESCALER_256
Lower prescaler variables result in a faster datarate. But how do i know which one to use or which one gives the best optimal results?