10-14-2013 07:42 PM
Hello ,
I have to parse a frame (13 words each of 16 bits each) ....Now the frame is a string array with (8A6E) kind of values which then need to be converted into a 16bit binary form for further parse.
available is string to byte function (8bit) ...and I need 16bits together only( parse requires MSB(2-15) like operations ...any suggestions??
10-14-2013 07:50 PM
Try Hexadecimal string to number.
10-14-2013 08:21 PM
Thanks ..but my input string array is normal ascii ...(HEX is only the display) .... (Šn -->8A6E(display) --> 1000101001101110 ) ....and then I should be parsing this binary data ...
soory for not being specific in prob description above
Thanks
10-14-2013 08:33 PM
That is still not clear. Exactly what do you mean be "normal ASCII". When you see 8A6E on the string indicators, is that normal display or Hex display.
If that is normal display, you'll need to do what I said. If it is hex display, then use typecast to typecast it to a U16 datatype, or an array of U16.
10-14-2013 08:49 PM
Yes ..it is the hex display ...and I think then I would try the typecast ..thanks a lot ...