Mega 2560 I2C clock speed

Hi,

I want to use the I2C communication at fast speed (400).
Is it possible with a Mega 2560 board, and how to do.

Thanks for your help

Vincnet68

400 ?
Are you crazy?

400 what?

There is different speed mode :

« Standard mode » ? 100 kbit/s,
« Fast mode » ? 400 kbit/s,
« Fast plus mode » ? 1 Mbit/s,
« High-speed mode » ? 3,4 Mbit/s,
« Ultra-fast mode » ? 5 Mbit/s.

Thanks

400kbits-1 should be possible, yes.
Check the processor data sheet.

Yes.. speed can be changed to 400kHz by altering parameter in "twi.h"

#define TWI_FREQ 100000L

change to 400000