Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Have some hex (I think) that I'm trying to figure out how to convert?
I have a list of hex (I believe) that I'm trying to figure out what it is. I know what it is directly related to, and the values, but I don't know how it comes to the conclusion. I've been googling for 3 days and the obvious "convert hexadecimal to ascii/decimal/whatever" websites are not of any use. I don't know if it's converted to float, or if there is some kind of middleman treatment that is making it come up with the result it does. Sadly, I do not have a for-sure match of 1 hex to 1 result. But I do know that all of it comes out to be in the range of 1.9 to 2.1.
I don't have enough information, I'm kind of shooting in the dark. But maybe there is something obvious that I am missing. Here is one of the lines (out of 44) of the 80 characters of hex.
004C8346005284460060854600688646
00708746007E8846008E894600A48A46
00B28B4600CC8C46
That is all on one line, but yahoo doesn't care for that many characters with no spaces.
I notice there is a "00XXXX46" pattern. All of the lines contain this pattern, except it also does "00XXXX47" I believe it is raw output from an Analog to Digital converter. Any numbers figured from that string would be in the range of 1.916416 - 2.074627.
The ADC chip on the board is ADS7809U. The datasheet I found on it says it outputs straight binary or two's complement binary depending on some option. This is WAY far away from my area of expertise, but it's kind of been thrown at me to see what I can make of it. Any ideas are much appreciated.
Thanks!
1 Answer
- djp32563Lv 41 decade agoFavorite Answer
My best answer is that the data is going to be implementation specific. That is, what the sequence of data means depends on how the chip is being used. This is NOT going to be a direct conversion to ASCII characters. I cannot answer your question positively, but I might be able to shed some light that might help you get the answer.
I looked up the spec sheet on that ADC, and it looks like what is being outputted is voltage levels that are coming into the chip. The only problem with that assumption is that, per the data sheet, the chip is designed to output 16 bits of data, whereas your data cycle is 32 bits. Whether the data is straight binary or two's complement is determined by examining the state of a pin on the chip. I would say just from you have given us that the chip is set up to accept a range of +/-3.33V, but what those voltages mean I have absolutely no idea.
Your implementation might be outputting sequences of 6 byte format real numbers (after a translation), with a 1 byte NULL spacer. That would be my best guess, but by no means a definitive one.