Skip to main content
EnglandProduct Design and TechnologiesSyllabus dot point

How do logic gates and microcontrollers add decision-making to products?

Digital logic and programmable control, including the common logic gates (NOT, AND, OR, NAND, NOR) and their truth tables, combining gates to make decisions, the role of microcontrollers and PICs in reading inputs and controlling outputs through a stored program, flowcharts to represent control, and the advantages of programmable control over fixed circuits.

A focused answer to the Edexcel 9DT0 content on digital logic and programmable control, covering logic gates and truth tables, combining gates, microcontrollers and PICs reading inputs and driving outputs, flowcharts, and why programmable control is flexible.

Generated by Claude Opus 4.813 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

Edexcel wants you to understand digital logic (the common gates and their truth tables and combining them to make decisions), the role of microcontrollers and PICs in reading inputs and driving outputs from a stored program, the use of flowcharts, and why programmable control is more flexible than fixed circuits.

The answer

Logic gates and truth tables

For two inputs A and B, the AND gate gives output 1 only for A = 1 and B = 1; the OR gate gives output 1 for any input 1; the NOT gate (one input) gives the opposite of its input.

Combining gates to make decisions

Microcontrollers and PICs

A microcontroller (a PIC is one common family) is a small programmable computer on a chip. It reads inputs (switches, sensors via its input pins), processes them according to a stored program, and controls outputs (LEDs, buzzers, motors, displays). One chip can replace a board full of fixed logic, timers and counters, and its behaviour is set entirely by the program.

Flowcharts and the advantages of programmable control

A flowchart represents the program as a sequence of steps, decisions (yes/no branches) and loops, planning the control before coding. Programmable control has major advantages over fixed circuits:

  • Fewer components: one chip replaces many, so boards are smaller and cheaper.
  • Reprogrammable: change behaviour by editing software, not rewiring, so the same hardware does different jobs and can be updated.
  • Complex control: handles many inputs and outputs, timing, counting and decisions.
  • Faster development: test and change in software.

The limitation is that it needs programming skill and the right tools.

Examples in context

A machine guard uses an AND gate so the motor runs only when two safety switches are both closed. A burglar alarm uses an OR gate so any triggered sensor sounds the siren. Modern products go further with microcontrollers: a washing machine reads buttons and sensors and runs different programs from software, a microwave counts time and controls the magnetron and turntable, and a games controller reads many inputs at once. Translating a requirement into the correct logic, and explaining why a reprogrammable microcontroller beats fixed circuits for flexible products, are exactly what Edexcel rewards in this topic.

Try this

Q1. State the output of an AND gate when its two inputs are 1 and 0. [1 mark]

  • Cue. 0 (an AND gate outputs 1 only when all inputs are 1).

Q2. Give two advantages of a microcontroller over fixed logic circuits. [2 marks]

  • Cue. One chip replaces many components (smaller, cheaper), and behaviour is changed by reprogramming rather than rewiring (flexible and updatable).

Q3. How many rows does a truth table for three binary inputs have, and why? [2 marks]

  • Cue. 23=82^3 = 8 rows, because each of the three inputs can be 0 or 1, giving 2×2×22 \times 2 \times 2 combinations.

Exam-style practice questions

Practice questions written in the style of Pearson Edexcel exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Edexcel 20204 marksA machine guard must allow a motor to run only when two separate safety switches are both closed. Name the logic gate required and give its truth table.
Show worked answer →

Award marks for naming the gate and for a correct truth table.

The motor should run only when both inputs are on, so an AND gate is required: its output is logic 1 only when both inputs are logic 1.

Truth table (inputs A and B, output Q): A = 0, B = 0 gives Q = 0; A = 0, B = 1 gives Q = 0; A = 1, B = 0 gives Q = 0; A = 1, B = 1 gives Q = 1.

Markers reward identifying AND (because both must be true) and a correct four-row truth table showing output high only for both inputs high.

Edexcel 20226 marksExplain the advantages of using a microcontroller (PIC) instead of fixed logic and timer circuits in a product, using an example.
Show worked answer →

Extended-response item marked on levels (correct understanding of a microcontroller and justified advantages with an example).

A microcontroller (PIC) is a programmable chip that reads inputs, processes them according to a stored program and controls outputs. Its advantages over fixed circuits are: one chip can replace many discrete components (fewer parts, smaller, cheaper boards); behaviour is changed by reprogramming rather than rewiring, so the same hardware can do different jobs and be updated; it can handle multiple inputs and outputs and complex decisions, timing and counting; and development is faster.

Example: a washing machine controller reads buttons and sensors and runs different wash programs from software; changing or adding a program needs only new code, not a redesigned circuit.

A strong answer explains read-process-output, gives clear advantages (fewer parts, reprogrammable, complex control) and ties them to a real product, while noting the limitation that programming skill is needed.

Related dot points

Sources & how we know this