- This topic has 3 replies, 3 voices, and was last updated 10 years, 10 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › ADC interfacing with 8051uc
hi
I am doing the project of water level conroller.If i am doing only adc then i will get the answer.
In water level i have maintain the lowest and highest level.for that lowest level my adc pattern is 15h and the highest level my adc pattern is 0ffh.
As a final control element i will use the relay.
I willm get the only one answer that is 15h.when i cahange the dloat position i will not getthe change in adc while connectn with the 8051.My program is
org 0000h
mov p1,#0ffh
acall adc
mov a,p1
l3:cjne a,#15h,l2
setb p3.3
l2:cjne a,#0ffh,l3
clr p3.3
adc: setb rd
setb intr
clr wr
here: jb intr,here
clr rd
end
Ok. So what is your question actually ?
Please make it more understandable for others, so that they can help you better.
my question is when i am connect 8051uc with my data cannot change.My data is only 15h which is my lowest float position.with the change in float position my data remain 15h.
my friend you dont need ADC at all.
float gives only two values 0-low or 1-high. you can directly detect this level change through micro controller pin. but if your float is somewhat different read its manual, to understand its operation