Hi all, I wounder how to setup custom freq for I2C bus?
I need to get Freq 346 Khz on clock bus. I tried to setup TWBR bit using formuala and the table:
freq = clock / (16 + (2 * TWBR * prescaler))
TWBR prescaler Frequency
12 1 400 kHz (the maximum supported frequency)
32 1 200 kHz
72 1 100 kHz (the default)
152 1 50 kHz
78 4 25 kHz
158 4 12.5 kHz