Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] I2C again

2007-07-02 by David VanHorn

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.