> AVR311 and AVR315 have pretty good descriptions of how TWI works. Right.. What I'm wrestling with at the moment, is what the SONAR wants though. I discovered one interesting thing today though.. You can START a ping using the broadcast address, but you CANNOT read the data using the broadcast address.. !@#!@$!% This makes sense IF there are multiple devices on the bus, but in the limited testing case where only one device is present, it left me chasing ghosts for a while... The acroname support people did not spot that error either. > I used a variation of SMBus for a multi-drop project with ARM9 CPU, keypad, > IMU and servo board - each with m128 processors. Works pretty well. My big > hint: Keep your transactions stateless so the occasional corrupt packet > doesn't mess things up (i.e. don't depend upon the results of a previous > command like auto-incrementing a pointer. Hmm.. I'm not sure I understand. If I address the device, and do a ripple-read of all the registers, isn't that really the same as addressing the device multiple times and reading only one register each time? Or am I misunderstanding?
Message
Re: [AVR-Chat] I2C again
2007-07-02 by David VanHorn
Attachments
- No local attachments were found for this message.