??? 06/02/05 08:19 Read: times |
#94225 - May I ask a question? Responding to: ???'s previous message |
Pritam said (on 02/Jun/05 11:44 am):
I can't explain all the things b'coz of some circumstances. Pritam said (on 02/Jun/05 12:01 pm) 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. May I ask you what happended in just 17 minutes (or even less since it must have taken time for you to type the second post) that you explained it all? It would have been much better if you had provided all details in your first post. What do you think? I am quite sure if you had done that, you must have got good information/answers by now. |
Topic | Author | Date |
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 |