Sunday, March 29, 2009

Configuring DAC for I2C Operation

Diagram shows how to set the switches to software operation (in this case I2C). Also where to connect the two I2C wires: SCLK, SDIN. SADDR sets the address for the chip which can be set with the switch as follows:
  • I2S=0, address is oo11010
  • I2S=1, address is 0011011 Use this address since it is already configured this way for hardware mode
Notice that the address is only 7 bits. In I2C, the address byte is 7 bits followed by the read(=1)/write(=0) bit. In our case, we want to write, so we use 00110110

Next notice that to switch from H/W mode to S/W mode (I2C mode) you only need to move the mode switch from "0" to "z" and we are done

No comments:

Post a Comment