Design & Technology
Logic and microcontrollers
Many electronic circuits have to make decisions. They look at two or more inputs and use these to determine the outputs from the circuit. The process of doing this uses electronic logic, which is based on digital switches called gates.
Logic gates allow an electronic system to make a decision based on a number on its inputs. They are digital electronic devices. Digital means that each input and output of the gates must be one of two states:
Devices such as thermistorsthermistor: An electrical device whose resistance decreases as its temperature increases., microphones and light dependent resistors [LDR: A Light Dependent Resistor, or LDR, is a type of resistor which is affected by changes in light levels. A cadmium sulphide layer causes a decrease in resistance in the light and increase in the dark. ] (LDRs) produce signals that are analogue. This means that they vary over a range. Analogue signals must be processed by an analogue-to-digital converter (ADC) before they can be processed by a logic gate.
A single digital signal can be either high or low: eg a light with one switch can be on or off. However if there is more than one signal, there are more than two possible states. For example, if two signals are present there are four possible combinations: high/high, high/low, low/high and low/low.
In a logic gate each combination can be made to produce a different outcome.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.