Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/02/05 07:01
Read: times


 
#94223 - My quary to Raghunathan sir
Responding to: ???'s previous message
Respcted Sir,
Thank u very much for replying me.My problem is as follows
I m using 0 to 2V range as a i/p for ADC. So for full range i m getting C8 (1101 1000)as a output. My ultimate aim is to display 0 to 100 deg celcius on LCD display. So i want to convert C8 data to 100.
I m using and trying to implement eqn y= mx + c. i m doing calculations in decimal.
i.e. for i/p=2v (C8h or 200d), o/p=100, c=0
so it becomes
100 = m*200
so m= 0.5 I dont know how to deal with float variables in micro-controllers. So i m multiplying whatever data by 5 and later on displaying dot(decimal pt.)
so when C8 is multiplyed my 5 ans=3E8h=1000d (i wil be displaying 100.0)
So for converting this 3E8 h to decimal equivalent i want 16-bit hex to dec conversion code.
Sir, what do u think about my logic? is it right? Plz guide. I wil be very thankful to u.
Waiting for ur +ve reply.

Pritam


List of 19 messages in thread
TopicAuthorDate
Hex to Dec Coversion Assembly code            01/01/70 00:00      
   back to math            01/01/70 00:00      
   Poor question            01/01/70 00:00      
      never underestimate anybody            01/01/70 00:00      
         If you want respect here...            01/01/70 00:00      
         At least you've achieved something            01/01/70 00:00      
            Net score            01/01/70 00:00      
   Format            01/01/70 00:00      
      DAA instruction helps BCD conversion            01/01/70 00:00      
      My quary to Raghunathan sir            01/01/70 00:00      
         May I ask a question?            01/01/70 00:00      
            Reply to Mr. Ijaz Ahmed            01/01/70 00:00      
               underestimating            01/01/70 00:00      
         How about ...            01/01/70 00:00      
         Looks OK            01/01/70 00:00      
         It can be easier to re-map a range.....            01/01/70 00:00      
         lookup table?            01/01/70 00:00      
            was thinking the same            01/01/70 00:00      
   hextobcd conversion            01/01/70 00:00      

Back to Subject List