SPI baud rate

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI baud rate

476 Views
hardwaredevelop
Contributor I

I tested the MQX SPI example in folder MQX/examples/spi. I used the Vybrid pcm052 board / M4 processor. I changed the baud rate to 1000. I read back the baud rate, it returned 1017 ... no problem here.

On the scope, I measure a clock rate of 2600 Hz which gives 333 byte/s (1/2600 * 8bit). I'm a little bit confused.

Can anybody explain me why ?

0 Kudos
1 Reply

320 Views
RadekS
NXP Employee
NXP Employee

Are you sure, that bus clock at your board has right value?

I suppose that you used twrvf65gs10 BSP as base for your own BSP. Correct?

Unfortunately I was not able found value of external crystal/resonator at pcm052 board.

Main oscillator at twrvf65gs10 has clock 24MHz. Ratio between set and generated baudrate is approximately 2.5~2.6. This leads to 62MHz crystal at your board or some different clock settings. Is it possible?

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos