smitgovani
Member level 2
i m using j thermocouple nd 8051 uc... i want to display temperature in 7 seg led...
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
l=3That was done to seperate digits of a number.
Suppose val contains 123.
now,
l=val%10; // l will contain 3
m=(val/10)%10; //m will contain 2
l=3
m=2
but which will display 1....
should i need to take 1 more variable
then what should b its formula??
and a last can 8bit adc transfrer 3 digit analog data??
No , I didnt forget the last digit. I just told him what his code is doing. He asked thatHello!
I think papunblg wrote the general idea to extract each digit. Yes, he forgot the last one.
But can't you guess the next step by yourself?
In plain arithmetic, how would you extract the "1" from "123"?
Hint: % is the remain of the division by something. Therefore 123 % 10 is 3.
And the integer division yields : 123 / 10 = 12.
Dora.
i can't clamp...
then what should we do...i can't clamp so i have to use devider .....then circuit will b complicated ( thermocouple to amplifier ad594 to voltage devider then adc0808 then 8051)
---------- Post added at 11:32 ---------- Previous post was at 11:31 ----------
can i directly use thermocouple to adc0808
o/p range is 0 to 42.283mv......
---------- Post added at 11:33 ---------- Previous post was at 11:32 ----------
can i directly use thermocouple to adc0808
o/p range is 0 to 42.283mv......
---------- Post added at 11:34 ---------- Previous post was at 11:33 ----------
or any amplification ckt which gives o/p till 5000mv....???
i think as per ad594 datasheet you can set or mange your amplified output from 5v to 15v so you can set your IC in such way that your max will be +5v
if you want amplifier you can use circuit suggested by mr. papunblg in early post .