sertxd in hexa format

jyb

Senior Member
hello every body
i am french and so i dont write english perfectly
is there a good soul which can tell me a simply way to output hexadecimal characters to the computer using sertxd instruction: i can't find it!

jyb
 

hippy

Ex-Staff (retired)
b0 = $AB
b1 = b0 / $10 + "0"
If b1 > "9" Then : b1 = b1 + 7 : End If
b2 = b0 & $0F + "0"
If b2 > "9" Then : b2 = b2 + 7 : End If
SerTxd( "b0 = $",b1,b2, " = ",#b0, CR, LF )
 

jyb

Senior Member
serial out of hexa values to pc using sertxd

thanks for your answer
exactly my need is how to display an i2c memory contain (64kb) to a pc in their hexadecimal form using sertxd
i done this work in decimal form but can't find the way to do same in hexa form
it is very heavy to translate each character of a 64kb string, stepping one by one, i try using $ or 0x ,it don't work .
i think may be i dont understand correctly the meaning of the english basic manual...help! please
jyb
 

BeanieBots

Moderator
The use of "$" and "0x" is only applicable when writing numbers within code. It is NOT a conversion method.

If you want to send large amounts of data from memory to a PC display, it would probably be better to convert from raw data to HEX at the PC. Some terminal programs actually support such features themselves.
 

jyb

Senior Member
yes!!

it is so simple that i did not think to make translation into the pc instead the picaxe and the plus , i free memory ,which is not huge on the 40x2

thank you !
jyb
 
Top