Mcp4725 DAC
Posted: Wed Oct 20, 2021 3:23 am
There is a problem with the mcp4725 DAC component- when I first started using the chip I couldn't get an output. I wound up writing my own code - posted on the v8 forum.
))
The problem occurs if the chip is in power down. It can be woken either by a general call reset on the i2c bus or by using the normal 3 byte command.
Unfortunately the component uses the fast 2 byte form of the command in Initialise, SetOutput and Enable - so if the dac is powered down (and mine was) there is no way to wake it.
Need to use SetOut3 to bringthe DAC out of it's sleep mode. This could also give the option to set the power down parameters and write the data to eeprom (though not added yet)...
Martin
))
The problem occurs if the chip is in power down. It can be woken either by a general call reset on the i2c bus or by using the normal 3 byte command.
Unfortunately the component uses the fast 2 byte form of the command in Initialise, SetOutput and Enable - so if the dac is powered down (and mine was) there is no way to wake it.
Need to use SetOut3 to bringthe DAC out of it's sleep mode. This could also give the option to set the power down parameters and write the data to eeprom (though not added yet)...
Martin