I am working on adc( ads7844) here i dont know how to take the output of ads7844 to input of lcd so can any one tell me the logic for that.. It must be in c lang..
You will need to look at the data sheet for the ads7844 to figure out how to communicate it.
If you do not have a driver for the LCD you need to look at its data sheet to figure out how to use it.
Code:
unsigned int yourReadAdcFunc(void)
{
unsigned int result;
// code as needed
...
return result;
}
void yourLcdDisplayFunc(unsigned int val)
{
// convert val to a string and display it on the LCD
...
}
void main(void)
{
// init LCD
...
// init ADC
...
while(1)
{
unsigned int adcVal;
adcVal = yourReadAdcFun();
yourLcdDisplayFunc(adcVal);
}
}