View previous topic :: View next topic |
Author |
Message |
ksraja
Joined: 08 Dec 2014 Posts: 8
|
Need library for MCP4728 |
Posted: Thu Jan 22, 2015 3:56 am |
|
|
Hi
Any of you provide the library file for mcp4728. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19506
|
|
Posted: Fri Jan 23, 2015 2:19 am |
|
|
Given the lack of replies, I doubt it.
However it is not exactly rocket science. 95% will just be the same code as for talking to a small I2C EEPROM. Just change the addresses to talk to the registers in this chip. Something like the 2401.c driver, with the I2C address changed for those in this chip. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9225 Location: Greensville,Ontario
|
|
Posted: Fri Jan 23, 2015 6:25 am |
|
|
First step is to download PCM P's 'I2C scanner' program from the code library! Use it to confirm your PIC and PCB WILL communicate with the device.
After that is confirmed, the driver is fairly easy. Just start with one simple function, get it working, then build from that.
Without actual chips, it's not possible to confirm code will work properly.
Jay |
|
|
|