Powered by Invision Power Board


Forum Rules Forum Rules (Please read before posting)
  Reply to this topicStart new topicStart Poll

> Interfacing Adc And Lcd With Atmel 89c51, coding problem
Qaisar Azeemi
Posted: November 17, 2011 07:09 am
Reply to this postQuote Post


Newbie
**

Group: Members+
Posts: 46
Member No.: 36,124
Joined: November 17, 2011




Hi every one,

I am using ADC0808, microcontroller 89C51, and 16X2 Alpha-numeric LCD to display the sensed data using sensors connected to ADC0808.

Problem:
1) what will be the data formate of output of ADC, is it binary or BCD?
2) what should be the data output of 89c51 that is acceptable for LCD?
3) what is the acceptable data formate for LCD , Binary , BCD or Ascii? i know about commands that are in hex form to be given to
LCD. also i know about display of alphabets on lcd but The problem is that i want to display the data sensed by sensors connected to the ADC.

Procedure will be like that..... the output of ADC is Inputted to 89c51 and the same feeded input to 89c51 is then displayed on LCD.

can any one please guide me about that. I will be very thankful to u.

sincere regards

M Qaisar Azeemi
PMEmail Poster
Top
Sch3mat1c
Posted: November 17, 2011 04:46 pm
Reply to this postQuote Post


Forum Addict ++
Group Icon

Group: Moderators
Posts: 19,464
Member No.: 73
Joined: July 24, 2002




The ADC is binary.

You will need to write a driver to send data to the LCD, or find one already written.

You also need a conversion program to change the binary ADC data into decimal numbers to read. If you are writing in C, there are functions for this.

Your microcontroller does not have an internal ADC?

Tim


--------------------
Answering questions is a tricky subject to practice. Not due to the difficulty of formulating or locating answers, but due to the human inability of asking the right questions; a skill that, were one to possess, would put them in the "answering" category.
PMEmail PosterUsers Website
Top
darmin
Posted: November 17, 2011 06:20 pm
Reply to this postQuote Post


Newbie
**

Group: Members+
Posts: 35
Member No.: 35,919
Joined: October 15, 2011





I believe that the 89C51 has an internal 10bit ADC .

PMEmail Poster
Top
Qaisar Azeemi
Posted: December 26, 2011 07:55 am
Reply to this postQuote Post


Newbie
**

Group: Members+
Posts: 46
Member No.: 36,124
Joined: November 17, 2011




@darmin: No, 89c51 doesn't have any inbuilt ADC. while PICs and AVRs have inbuilt ADCs.
PMEmail Poster
Top
millwood
Posted: December 26, 2011 09:14 pm
Reply to this postQuote Post


Forum Addict ++
*******

Group: Trusted Members
Posts: 1,823
Member No.: 25,377
Joined: July 26, 2009




QUOTE
Problem:


all three of those questions can be easily answered by reading the respective datasheet.

being willing and able to read / understand device datasheet is truly a pre-requiresite in this field.

if you aren't wiling / able to do so, you may want to think about if you have a career somewhere else.
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 


:: support us ::




ElectronicsSkin by DutchDork & The-Force