How to convert the 16 bit hex value into 16 bit decimal value in C?

Status
Not open for further replies.

dayal

Member level 3
Joined
Aug 26, 2007
Messages
54
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,629
Hai,
I would like to convert the 16 bit hex value into 16 bit decimal value , can anyone tell me how i can do it in the C coding(keil). reply please...
thanks
by
dayal
 

Re: ADC conversion

Hi,
I am not sure about the 16-bit decimal value??
I use small routine to convert bin value to decimal.It results in 2, 3, or 4 bcd values which I then can send to LCD , etc.
Let me know if this is what you need??
ZS1BFE
 

ADC conversion

Like ZS1BFE i am also not sure what exactly you are looking for. Can you give some example of the 16 bit hex value and corresponding "so called" 16 bit decimal value?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…