This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2C Clock frequency

I am using the TWI peripheral and want the clock frequency to be 400kHz.

In the data sheet it says for the register setting: 0x06680000 = 400kbps (actual rate 410.256 kps), which when set does what it says.

For the TWIM peripheral it says 0x06400000 = 400kbps .

If I set the TWIM setting for the TWI peripheral I get 400 kbps which is what I want. Please could you explain what this is about ?

Why would I want 410.256 kbps instead of 400 kbps ?

Related