I2c prescale the clock for bit rate selection in MC9s12dp256

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2c prescale the clock for bit rate selection in MC9s12dp256

1,497件の閲覧回数
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 返信

954件の閲覧回数
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 件の賞賛
返信