Go Down

Topic: Faster I2C (Read 90808 times) previous topic - next topic

kstrauss

That is some excellent material that I completely missed in Google. Thanks!

Phlogi

Has anyone used wire with the arduino mega? I don't see if conditions for the atmega1280 in the wire utility twi.h file...
Code: [Select]

 #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega328P__)
   // activate internal pull-ups for twi
   // as per note from atmega8 manual pg167
   sbi(PORTC, 4);
   sbi(PORTC, 5);
 #else
   // activate internal pull-ups for twi
   // as per note from atmega128 manual pg204
   sbi(PORTD, 0);
   sbi(PORTD, 1);
 #endif

Go Up