SPI Baud Rate Settings

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SPI Baud Rate Settings

跳至解决方案
5,456 次查看
rayhall
Contributor V

In the MC9S12XEP100RMV1.pdf data sheet it gives the formula to calculate the baud rate for SPI.

 

This is...

 

BaudRateDivisor = (SPPR + 1) * 2(SPR + 1)

Baud Rate = BusClock / BaudRateDivisor

 

You have to lookup a table to find the SPPR and SPR values. This table is based on a bus of 25 Mhz.

 

I am using 24 Mhz bus. Where do I find a table for this speed ?

 

Ray.

标签 (1)
0 项奖励
回复
1 解答
1,774 次查看
iggi
NXP Employee
NXP Employee

Use the excel sheet attached. Baud rate changes according to the value of the bus clock.

Regards,

Ivan

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,775 次查看
iggi
NXP Employee
NXP Employee

Use the excel sheet attached. Baud rate changes according to the value of the bus clock.

Regards,

Ivan

0 项奖励
回复
1,774 次查看
rayhall
Contributor V

Thank you Ivan,

Ray.

0 项奖励
回复