This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

convert string to string



hello everyone,

 

im facing a problem, im sending a HEX values to the PC, put the PC program display it as string, BUT i want it as HEX, i cant change the PC part, because its displaying other information too, it will be easier for me if i change the TI code,

for example,

i want to send 0xEA  on the screen i received it as ê,,, i want to see it as EA

i did like that

tempTXFrame= 0xEA;
ltoa(tempTXFrame,TCPTemp);

            TXFrame[0]        = 0x41;
            TXFrame[1]        = TCPTemp[0];
            TXFrame[2]        = TCPTemp[1];

////////////////////////

it suppose i receive 6561 but i receive on the screen 23 ?????? i think im using the wrong function, im newbie with strings

any advice will be great, thanks all

Hasan