I2C again
2007-07-01 by Dave VanHorn
Ok, before I start banging on this again.. I have the Devantech sonar connected, verified per docs that SDA and SCL are connected to the right pins on the M128, and they are pulled high, and that the scope sees valid high and low levels. I have the code that IMHO should start a ping, but I'm not getting an ACK to the slave address. I start the bus, I send E1 (E0 ID + 1 bit for write) with ACK requested, and what I see on the bus is E1 followed by a high bit, which means NAK. It's as if the sonar dosen't hear me. I also tried it on the broadcast address 00, which gives me the same result. Tired different speeds, noticing that the devantech docs don't say what speed to use. Any ideas?