do you use pull up?
did you connect the sda/scl pins properly?
try to toggle the used pins to see if you use the right pins.
try some other programs to see if it works.
read the errata from atmel for the chip/revision. early models have many flaws. but unlikely that twi would not work.
use a scope and check the signals.
↧