Reading the datasheet of the MCP4728 breakout board (http://ww1.microchip.com/downloads/en/D ... 22187E.pdf) I see that it's possible to change the address of the chip, though it doesn't seem to be easy, as the LDAC pin has to be synced with the SCL pulses. I'm trying to figure out how to do it but was wondering if there's some code that achieves this easily.
What I'm trying to do is send the bytes mentioned on page 42, figure 5-11 of the datasheet, and at the same time count the pulses of the SCL pin, and drive a GPIO pin that is connected to the LDAC pin from high to low at the right time, but I'm struggling to even decipher the way raw bytes should be sent to the chip. If there's code that does this, it would be very helpful.
Thanks
Is it possible to change the address of an MCP4728 breakout
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- alexdry
- Posts: 16
- Joined: Sun Aug 16, 2020 4:51 am
- alexdry
- Posts: 16
- Joined: Sun Aug 16, 2020 4:51 am
Re: Is it possible to change the address of an MCP4728 break
I found a solution. It's here https://github.com/jknipper/mcp4728_program_address. You'll need an Arduino or Teensy, but it's super simple the way it is implemented. I managed to change the address in one of my two breakouts to 0x61.
Please be positive and constructive with your questions and comments.