Software Engineers [hardware] of binary, hexadecimal

Software engineers want to accept binary, regarded as barely, if he were to accept hex, it may be a bit difficult for him. Because most software engineers usually do not contact with binary and hexadecimal, decimal is their only decimal.
However, the underlying hardware is the stuff, but why only know binary, that is, after all hardware compiler binary, or microcontroller do not know. Even if the hardware can also be used c programming language, you can also use decimal, but most of the hardware resources are present in the form of bits, software engineer position is difficult to understand this way of storage, software engineers actually done so things, for example, in order to improve the transmission efficiency, define a fixed-length string, then the first character represents an identifier, the second identifier representative of 2, and so on. Hardware engineers see here, the general will be very angry, I think software engineers asking too much, instead of a string of bit memory, more than a waste ah. Hardware engineers to pull a byte inside eight bit (bit), but this bit is either 0 or 1, you can not be as easily be assigned as a character, but has been able to meet the needs of hardware engineers, MCU resource constraints so defined by bit variables can save a lot of space. Of course, defined by the configuration bits biggest advantage is efficient, the microcontroller can operate by the basic bit operations, the efficiency is very high.
Thus, the binary is too important for hardware engineers, it can be seen as an abbreviation hex binary form, primarily for the convenience of the binary representation and operations carried out during programming, so the two hex must understand.
About binary and hexadecimal conversions, the Internet has a lot to explain. Here it omitted to mention.

Guess you like

Origin blog.csdn.net/wwwmagic/article/details/91372639