Kommentar: Einfügen von HTML im Kommentar: Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a> Bild einfügen: <img src="BILDURL"> Text formatieren: <b>fetter Text</b> <i>kursiver Text</i> <u>unterstrichener Text</u> Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b> C Quellcode formatieren: <code>Quellcode</code> BASIC Quellcode formatieren: <basic>Quellcode</basic> (Innerhalb eines Quellcodeabschnitts ist kein html möglich.) Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst ! -> I > > > > > > Frends, > > > > > > How can I convert cnt1 to a HEX mumber > > > > > > word cnt1; > > > Serial_Write(0,cnt1); // send to the host > > > > > > Thanks. > > > > Dear Bram, > > > > what you will send to the host exactly? > > In your example you will send a byte with the 'Serial_Write'-function. But then it's > > unimportant if you send it in binary-format (0b....), hex-format (0x....) or decimal-format. > > The result, what the Serial_Write-function send is always the same. For the different > > notations note in the manual "Variablen": > > > > c=5; // decimal-format > > a=0x3ff; // hex-format > > x=0b1001; // binary-format > > > > > > But if your host need really the HEX-format in ASCII-format, you must convert it with the > > 'Str_Printf'-function in a character (%[width]x -> Hex-number) and send it then with > > "Serial_WriteText"! > > (http://www.c-control-pro.de/documentation/index.html?str_printf.htm) > > > > I hope this information helps you. Otherwise you must send more information about your > > host, maybe a datasheet!? > > > > Regards, Tobias > > > > Please note, that the Serial_Write-function only can send a byte, not a word!