CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Need library for MCP4728

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ksraja



Joined: 08 Dec 2014
Posts: 8

View user's profile Send private message

Need library for MCP4728
PostPosted: Thu Jan 22, 2015 3:56 am     Reply with quote

Hi

Any of you provide the library file for mcp4728.
Ttelmah



Joined: 11 Mar 2010
Posts: 19369

View user's profile Send private message

PostPosted: Fri Jan 23, 2015 2:19 am     Reply with quote

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: 9174
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 23, 2015 6:25 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group