Skip to content

MCP4725 a 12-bit DAC library for STM32 (ARM processors) using HAL drivers ⚡

Notifications You must be signed in to change notification settings

SMotlaq/mcp4725

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microchip MCP4725

This is a HAL based library for I²C MCP4725 12-bit Digital-to-Analog Converter with EEPROM. This library has been ported from this Arduino library to STM32 using HAL drivers.

  • operating/reference voltage 2.7v - 5.5v
  • output voltage from 0 to operating voltage
  • maximum output current 25mA
  • output impedance 1 Ohm
  • maximum output load 1000pF/0.001μF in parallel with 5 kOhm
  • voltage settling time 6 μsec - 10 μsec
  • slew rate 0.55 V/μs
  • add 100μF & 0.1 μF bypass capacitors within 4mm to Vdd
  • device has 14-bit EEPROM with on-chip charge pump circuit for fail-safe writing
  • estimated EEPROM endurance 1 million write cycles
  • if Vdd < 2v all circuits & output disabled, when Vdd increases above Vpor device takes a reset state & upload data from EEPROM

Supports all MCP4725 features:

  • Fast write
  • Register read & write
  • EEPROM read & write
  • Power down
  • General reset
  • General wake-up

Donate

Is it helpfull?

Buy me a Coffee

How to use

This section will be completed asap

Result

This is a 100 Hz sine wave generated by MCP4725:

sine

Contact

Telegram or E-mail: pilot.motlaq@gmail.com


About

MCP4725 a 12-bit DAC library for STM32 (ARM processors) using HAL drivers ⚡

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project