Nicholas wrote: > I am trying to test my I2C DAC using the following PIC C > language. But there > is no output at all when i used the digital multimeter to test it. The > microcntroller board has went though the functional test. > > Is the following sorce code logic flow right? To output a high at the DAC > output pin. Hi Nicholas, I see you are using the 'divide and conquer' approach -- this is good. I still think you should provide some more details: Nicholas, could you answer the following questions for starters?: 1) What is the value you are using for the pull-up resistors on the I2C bus? 2) What is the voltage of the voltage reference? 3) Or if you are not using one, does the MAX ADC chip have a built-in reference? I don't have the data sheet handy 4) What PICmicro are you using? 5) What does the digital multimeters say the voltage is WRTG (with respect to ground)? In other words, what voltage are you expecting and what are you actually measuring? 6) Could you show us the source code of all the C functions you are using but are not showing the source code to? Best regards, Ken Pergola -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads