Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Amol Jamble
amoljamble

posted on 2016/04/28 10:58:24 AM CEST

Communication

Need help to complete code for I2C DAC.

Hi please help me to complete this code , I am new to PIC.


//Controller : Pic18f4585
//DAC8574


void Put_dac(int address, int dac_data)

{


return
}




void Get_adc(int address, int adc)

{


return
}


main:

{

Put_dac(1,20000); it sends dac address and voltage in decimal
Put_dac(2,20000);
Get_adc(2,ADC); ADC is variable to store adc value


}