I'm really just looking for someone to help me out with this code, I know there has to be any easier way to configure all the registers in the AD7147 that I'm using, but I just don't know how to code it, here is what I have so far:
All I have to do is go through a list of registers and assign them values, I just don't know how to do it an easier way. Could someone please show me how to do this easier?
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Thu Nov 29, 2007 10:13 am
Some of the i2c devices I have worked with autoincrement the address between bytes. This allows you to write to consecutive bytes by just addressing the first byte and then writing multiple bytes. _________________ The search for better is endless. Instead simply find very good and get the job done.
achotto
Joined: 19 Nov 2007 Posts: 9
Posted: Thu Nov 29, 2007 11:52 am
"The AD7147-1 address pointer register automatically increments after each write. This allows the master to sequentially write to all registers on the AD7147-1 in the same write transaction"
This is a quote from the data sheet of the AD7147. So can you give me an example of how I would write to a set of sequential registers? would I just do a lot of i2c_write() commands in a row?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum