Ok, check me on this: To read a bunch of data from the devantech device: Send a start Write the address (with write bit cleared) as $00 Write another byte that says what register I want to read from (starting address) Issue 19 pairs of "read a byte" commands Issue a stop Or, do I have to do this: Send a start Write the address (with write bit cleared) as $00 Write another byte that says what register I want to read from Read a byte Issue a repeated start Write another byte that says what register I want to read from Read a byte Issue a repeated start (repeat till nauseous...) Issue a stop I have the first case written, but all I'm getting back is 00s. But I may need to check that it's been pinged, with all this hacking about I may have that turned off at the moment.
Message
Re: [AVR-Chat] I2C again
2007-07-02 by David VanHorn
Attachments
- No local attachments were found for this message.