Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

adc (ADS78440) USING 8051

Status
Not open for further replies.

amitpj

New Member
Hi..

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);
 }
}
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top