Library for 12-bit DAC MCP4725 from Microchip

The MCP4725 is excellent replacement for digital resistors MCP413x / 415x / 423x / 425x. Ideal for creating digital controls for analog power supplies.

Supports all sensor features:

  • Quick recording. Only 16-bit is written directly into the chip, bypassing all registers, nothing is saved in the eeprom.

  • Write to the register. The 24-bit is written to the register, nothing is saved in the eeprom.

  • Eeprom record with checking the busy flag. The 24-bit is written in the register and in eeprom.

  • Three types of sleep. With pull-down to the ground using the built-in resistors: 1KΩ, 100KΩ and 500KΩ.

  • Read current and saved voltage and sleep type.

  • General reset. All devices on the i2c bus supporting General Call will be reset.

  • General waking up. All devices on the i2c bus supporting General Call will wake up.

The DAC is slow, generates 16Hz 9-bit sine wave on 16MHz Arduino Nano - not good for audio application.

Link - github.