#include "twi.h" void twi_init(void) { TWSR=0x00; TWBR=0x0F;//see how to configure clock freq of twi.here the freq for 16mhz xtal is nearabout 347khz TWCR =(1<