Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How does ADC0804 transfer variable data to the 80s51 and display it on LCD?

Status
Not open for further replies.

desmond

Member level 1
Joined
Nov 24, 2006
Messages
36
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,538
hi all

i am a beginner, if something wrong, plx teach me ......thx !!!
i would like to know how does the adc0804 transfer the virable data to the 80s51 and display the variable data onto the LCD in C language . which i connect the LM35d at 6 pin of adc0804.........thx

besides, what is the problem of that program

#include<REGX51.H>
#include"lcd.h"
#define adc_in P0
#define adc_rd P2_0
#define adc_wr P2_1
#define enable P3_3
mian(viod)

{
init_lcd();
clear_lcd();
display_LCD_string("test");
gotoxy(2,1);
display_LCD_number(volt);
while(1);
}

void display_LCD_number;
{ adc_wr=0; start adc0804
adc_wr=1; end adc0804
adc_rd=0; start read adc0804
volt=adc_in; read adc0804's data
volt=volt<<1; the voltage of data X2
adc_rd=1; end read

}
 

Re: adc 0804 problem

anyone can help ???
 

Re: adc 0804 problem

maybe main instead of mian?
 

Re: adc 0804 problem

Please correct the spelling and then compile see what happened:|
 

Re: adc 0804 problem

hey guys...........
still can't work ar.....
i need help.....
thx
 

adc 0804 problem

**broken link removed**
see how I had done ADC interfacing with parallel port. Use the same logic.

Bibin John
www.bibinjohn.tk
 

Re: adc 0804 problem

that's really what i want....
thx very much
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top