Together, the logic gates enable circuits to add, subtract, multiply and divide the numbers sent to them by transistors. There are several types of logic gates: AND, OR, NOT and XOR (exclusive OR). As the name implies, a logic gate acts as a barrier in an electronic circuit it takes in two electric currents, compares them and sends out a new current based on what it finds. Now the calculator must add those inputs together.Ĭalculators (and computers) combine inputs using electronic components called logic gates. Two of its transistors (in the 10 configuration) correspond to the first "2" you pressed, and another pair of transistors, also in the 10 position, corresponds to the second number 2. Now the calculator has the go-ahead to execute the previously entered "+" command. You press "2." Just like they did the first time, electric currents translate your "2" into binary code, by switching one transistor on and another off.įinally, you press the "=" button. The rubber underneath it smashes two wires into contact, causing electricity to flow in such a way that the first input (the "2") gets stored, the addition function is signaled, and the calculator is ready for a new input.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |