Help me with transforming a value from ADC of PIC16F870

Status
Not open for further replies.

momar128

Newbie level 3
Joined
Sep 9, 2003
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Pakistan
Activity points
20
help required

I am reading value from ADC of PIC16F870 and transform in to another value by using the equation (y-y1)=m(x-x1) where m=(y2-y1)/(x2-x1).
I also including the code where the value temp2 is the y of the equation.
This value is to be displayed on 4 digit 7 segment display. What I am doing I am not getting the result. Is there anyone can help me.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…