I2c prescale the clock for bit rate selection in MC9s12dp256

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

I2c prescale the clock for bit rate selection in MC9s12dp256

1,486 次查看
dalmeda
Contributor I

In MC9s12dp256 I need to config I2c  prescale value .How to calculate SCL Divider value based.

 

how to calculate the data transmission speed ?

标签 (1)
0 项奖励
回复
1 回复

943 次查看
kef
Specialist I

Did you find IIC Block Guide? See table 3-4 IIC Divider and Hold Value. Suppose you have 8MHz bus clock and you want 100kHz IIC. 8M/100k = 80. So you start looking for SCL Divider closest to  80. You may have more than one choice. There are 5 IBFD (IBC) settings for divider=80: 0x14, 0x18, 0x47, 0x4B, 0x80.

0 项奖励
回复