This library has been made to easily interface and use the MCP4725 DAC with an Arduino or chipKit.
The MCP4725 is a low-power, high accuracy, single channel, 12-bit buffered voltage output Digital-to-Analog Convertor (DAC) with non-volatile memory (EEPROM). Its on-board precision output amplifier allows it to achieve rail-to-rail analog output swing.
The DAC input and configuration data can be programmed to the non-volatile memory (EEPROM) by the user using I2C interface command. The non-volatile memory feature enables the DAC device to hold the DAC input code during power-off time, and the DAC output is available immediately after power-up. This feature is very useful when the DAC device is used as a supporting device for other devices in the network.
The device includes a Power-On-Reset (POR) circuit to ensure reliable power-up and an on-board charge pump for the EEPROM programming voltage. The DAC reference is driven from VDD directly. In power-down mode, the output amplifier can be configured to present a low, medium, or high resistance output load.
The MCP4725 has an external A0 address pin. This A0 pin can be tied to VDD or VSS of the user’s application board.
MCP4725.zip (Filesize is 367.77 KiB. Downloaded 2702 times)
Some demos are included to demonstrate most of the functions. This is a multi-platform library that will work with several different development board types.
Nice to know:
This library will default to I2C Fast Mode (400 KHz) when using the hardware I2C interface.