newracom / nrc7292_sdk

NRC7292 Standalone SDK Package
http://www.newracom.com/product
MIT License
36 stars 13 forks source link

SPI Max speed 16Mhz #13

Closed webrtcccccc closed 1 year ago

webrtcccccc commented 1 year ago

Dear Newracom,

I use the API to set the SPI clock. When the set clock is greater than 16mhz, the frequency is still maintained at 16mhz. Is it possible to set a higher speed?

nrc_spi_init(SPI_MODE0, SPI_BIT8, 16000000);

puffie commented 1 year ago

16MHz is maximum NRC7292 can support. If SPI frequency higher than 16MHz used, it will be adjusted to 16MHz.

webrtcccccc commented 1 year ago

Thanks for the reply, another question is when I set SPI Clock to 10MHz, 12MHz, or 14MHz, it will auto adjusted to 8MHz.

puffie commented 1 year ago

I'm thinking that underlying system function overrides the SPI clock to the one that can be supported by the system.

webrtcccccc commented 1 year ago

Thanks.