Translate this page Controlling The Real World With Computers ::. Control And Embedded Systems .:: Boolean Logic Home Order Let me know what you think Previous: Data lines, bits, nibbles, bytes, words, binary and HEX Next: Address Lines and Ports Control and embedded systems frequently deal with individual bits in order to control specific operations or to determine the condition of part of a system. For example, a bit might be turned on to light a lamp or activate a relay, or a bit might be off to indicate a switch is on (off meaning on is very common due to the nature of hardware order some and see what I mean Boolean logic , developed by George Boole (1815-1864), is often used to refine the determination of system status or to set or clear specific bits. Boolean logic is simply a way of comparing individual bits. It uses what are called operators to determine how the bits are compared. They simulate the gates that you will see in the hardware section you will read shortly. Think of operators as boxes with multiple inputs and one output. Feed in various combinations of bit values, and the output will be high or low depending on the type of operation. The examples show 2 inputs, although gates can have more. Also, gates are often combined to form more complex logic. A modern microprocessor contains huge numbers of them with many inputs and many varying combinations. Please note that the terms on high and will be considered the same logical state, and | |
|