I need to write DAC filter coefficients in several Page-1 registers, using the I2C interface. These coefficients are all 16-bits (MSB plus LSB). For example the first filter command is: w 30 01 7F FF [Where 7F=MSB, FF=LSB]
To accomplish this, do I use two sequential writes into Page-1 register 01 then register 02?
w 30 01 7F [MSB]w 30 02 FF [LSB]
I have all the necessary filter coefficients, just want to double check that I am interpreting the datasheet correctly.
Thanks, Terry
Hi Terry,
You can use:
w 30 01 7F FF
or
w 30 01 7F
w 30 02 FF
In the first case, the I2C will auto increment the register as you continue to send data without another write command. In the second case you are specifying each address which can often be easier to troubleshoot but is not necessary if you don't skip any addresses.