I2c prescale the clock for bit rate selection in MC9s12dp256

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

I2c prescale the clock for bit rate selection in MC9s12dp256

1,173 Views
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 ?

Labels (1)
0 Kudos
Reply
1 Reply

630 Views
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 Kudos
Reply