User Tools

Site Tools


glossary:glossary_h

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
glossary:glossary_h [2019/10/09 11:10] – [Handshaking] Bob Vetterleinglossary:glossary_h [2019/11/12 01:47] – [Hexadecimal or Hex] Bob Vetterlein
Line 57: Line 57:
  
 When a hex number is used in a program or written text, it is usually proceeded by some characters to identify which number system you are using.  Consider the number 100. In decimal this is one hundred. In binary this is four. In hex it is two hundred fifty six (0001 0000 0000). If you mean 256 then some programmers and programs would put a letter combination such as '0x', '0h' or # before the number (0x100) or a letter such as H or h after (100h). In the MERG forum you will generally see hexadecimal 100 shown as 0x100.  When a hex number is used in a program or written text, it is usually proceeded by some characters to identify which number system you are using.  Consider the number 100. In decimal this is one hundred. In binary this is four. In hex it is two hundred fifty six (0001 0000 0000). If you mean 256 then some programmers and programs would put a letter combination such as '0x', '0h' or # before the number (0x100) or a letter such as H or h after (100h). In the MERG forum you will generally see hexadecimal 100 shown as 0x100. 
 +=====ASCII Hex===== 
 +When sending numeric information over a serial link such as RS232 or RS485 it is not possible to send it as raw binary data as some of the possible 256 byte values have special meaning and are used to control the information flow, for an explanation of this see [[glossary_a#ascii|ASCII]]. Instead each data byte is split into two hexadecimal digits and transmitted as text. For example the value zero, which would be 8 zero bits is transmitted as '00' that is <0x30><0x30>, value 255 which would be 8 one bits becomes 'FF' that is <0x46><0x46>.
  
 ===== High ===== ===== High =====
glossary/glossary_h.txt · Last modified: 2021/08/08 04:50 by Wayne

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki