HEX/de
From MCS Wiki AVR
				
								
				< HEX(Difference between revisions)
				
																
				
				
								
				m (1 revision)  | 
		 (→Example)  | 
		||
| (3 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | = <span class="f_Header">Funktion</span> =  | |
| − | + | Gibt die Zeichenkettendarstellung einer hexadezimalen Zahl zurück.  | |
<span style="font-family: Arial;"> </span>  | <span style="font-family: Arial;"> </span>  | ||
| Line 15: | Line 15: | ||
<span style="font-family: Arial;"> </span>  | <span style="font-family: Arial;"> </span>  | ||
| − | = <span class="f_Header">  | + | = <span class="f_Header">Anmerkungen</span> =  | 
<div style="padding: 0px; margin: 0px 0px 0px 4px;">  | <div style="padding: 0px; margin: 0px 0px 0px 4px;">  | ||
{| width="487" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"  | {| width="487" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"  | ||
| Line 23: | Line 23: | ||
| valign="top" width="100%" style="width: 428px; border: 1px solid rgb(0, 0, 0);" |    | | valign="top" width="100%" style="width: 428px; border: 1px solid rgb(0, 0, 0);" |    | ||
| − | + | Zeichenkettenvariable.  | |
|- style="vertical-align: top;"  | |- style="vertical-align: top;"  | ||
| valign="top" width="11%" style="width: 50px; border: 1px solid rgb(0, 0, 0);" |    | | valign="top" width="11%" style="width: 50px; border: 1px solid rgb(0, 0, 0);" |    | ||
| − | + | x  | |
| valign="top" width="100%" style="width: 428px; border: 1px solid rgb(0, 0, 0);" |    | | valign="top" width="100%" style="width: 428px; border: 1px solid rgb(0, 0, 0);" |    | ||
| − | + | Numerische Variable vom Typ Byte, Integer, Word, Long, Single oder Double.  | |
|}  | |}  | ||
| Line 40: | Line 40: | ||
<span style="font-family: Arial;"> </span>  | <span style="font-family: Arial;"> </span>  | ||
| − | = <span class="f_Header">  | + | = <span class="f_Header">Siehe auch</span> =  | 
[[HEXVAL]] , [[VAL]] , [[STR]] , [[BIN]] , [[BINVAL]]  | [[HEXVAL]] , [[VAL]] , [[STR]] , [[BIN]] , [[BINVAL]]  | ||
| Line 48: | Line 48: | ||
<span style="font-family: Arial;"> </span>  | <span style="font-family: Arial;"> </span>  | ||
| − | = <span class="f_Header">  | + | = <span class="f_Header">Beispiel</span> =  | 
<br/><source lang="bascomavr">  | <br/><source lang="bascomavr">  | ||
| − | $regfile = "m48def.dat" '   | + | $regfile = "m48def.dat" ' Mikrocontroller  | 
| − | $crystal = 8000000 '   | + | $crystal = 8000000 ' Taktfrequenz  | 
| − | $baud = 19200 '   | + | $baud = 19200 ' Baudrate  | 
$hwstack = 32 ' default use 32 for the hardware stack  | $hwstack = 32 ' default use 32 for the hardware stack  | ||
$swstack = 10 ' default use 10 for the SW stack  | $swstack = 10 ' default use 10 for the SW stack  | ||
Latest revision as of 22:44, 1 March 2013
Contents | 
Funktion
Gibt die Zeichenkettendarstellung einer hexadezimalen Zahl zurück.
Syntax
var = HEX( x )
Anmerkungen
| 
 var  | 
 Zeichenkettenvariable.  | 
| 
 x  | 
 Numerische Variable vom Typ Byte, Integer, Word, Long, Single oder Double.  | 
Siehe auch
HEXVAL , VAL , STR , BIN , BINVAL
Beispiel
$regfile = "m48def.dat" ' Mikrocontroller $crystal = 8000000 ' Taktfrequenz $baud = 19200 ' Baudrate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Dim B As Byte , J As Integer , W As Word , L As Long B = 1 : J = &HF001 W = &HF001 L = W Print B ; Spc(3) ; Hex(b) Print J ; Spc(3) ; Hex(j) Print W ; Spc(3) ; Hex(w) Print L ; Spc(3) ; Hex(l) End
| Languages | English • Deutsch | 
|---|