I2C AVR
Posted: Sun Jul 26, 2015 8:53 am
Arduino Mega 2560 R3
Macro component Stop ()
generates a delay of 10 ms, the standard indicates tBUF = 4.7 microseconds
in the macro (AVR_CAL_I2C.c) there delay_ms (10); !!!!
Init macro component
The speed I2C Harward is false and badly managed.
100 kbd -> 47 kbd really
400 kbd -> 58 kbd really
1 Mbd -> 111 kbd really
Meanwhile, this can be corrected with C
TWBR = 0; to 1M
TWBR = 12; for 400k
TWBR = 72; for 100k
Macro component Stop ()
generates a delay of 10 ms, the standard indicates tBUF = 4.7 microseconds
in the macro (AVR_CAL_I2C.c) there delay_ms (10); !!!!
Init macro component
The speed I2C Harward is false and badly managed.
100 kbd -> 47 kbd really
400 kbd -> 58 kbd really
1 Mbd -> 111 kbd really
Meanwhile, this can be corrected with C
TWBR = 0; to 1M
TWBR = 12; for 400k
TWBR = 72; for 100k