I2C Error with DAC | Cypress Semiconductor
I2C Error with DAC
I am trying to talk to an I2C DAC with the PSoC4, and I am getting and error that I think is due to how the DAC wants to recieve the data.
The DAC is a MCP4725A0T-E/CH I2C DAC, and the comunication protocol calls for three bytes of data, a stop bit, and then three bytes of data on a write. I have implemented this in PSoC Creator, but I get an error when trying to write a byte after the stop bit. I know that the first three bytes are being written correctly, as you can see in the attached image, but nothing is being written after the stop bit is sent. This is also when I get an error thrown (the error value = 4, which is SCB_I2C_MSTR_ERR_BUS_ERR or Error condition:Master encountered bus error. Bus error is misplaced start or stop detection.)
This seems to be an issue with how the PSoC implements I2C. Anyone know of a workaround for this?