I am trying to develop a simple temperature indicator for thermocouple or RTD input using a 16-bit delta sigma ADC interfaced with ATmega16 using I2C protocol. Also I'm using 7-segment display.
Now, I have written code in C language for getting ADC count for some input voltage. I have made use of interrupts for I2C communication.
But the problem is that I'm unable to read data from ADC in infinite while loop in main function.
I don't get any response from the slave(ADC).
I've attached code for reference.
Please suggest any modifications/corrections.