Skip to main content
EnglandElectronicsSyllabus dot point

What is inside a microcontroller, and how does it connect to the inputs and outputs of a system?

Microcontroller architecture: the CPU, memory and input/output ports, digital input and output pins, pull-up and pull-down resistors, and the analogue-to-digital converter and PWM peripherals.

An Eduqas A-Level Electronics answer on microcontroller architecture and interfacing: the CPU, memory and input/output ports, digital input and output pins with pull-up and pull-down resistors, and the built-in peripherals (analogue-to-digital converter, PWM, timers) that connect the microcontroller to the real world.

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

Eduqas wants you to describe a microcontroller's architecture (CPU, memory, input/output ports), digital input and output pins, pull-up and pull-down resistors, and the built-in peripherals (ADC, PWM, timers). The microcontroller is the programmable brain that ties a modern electronic system together.

The answer

Microcontroller architecture

Digital input and output pins

Pull-up and pull-down resistors

Built-in peripherals

Examples in context

The microcontroller is the heart of almost every modern electronic product, from a washing machine to a toy to a sensor node. Its ADC reads the sensing circuits from earlier modules, its PWM drives the motors and LEDs through the switching devices, and its digital pins read switches (with pull resistors) and drive logic. Eduqas requires you to program one in assembly language for the non-exam assessment, so understanding the ports and peripherals here is the foundation for the programming topic that follows.

Try this

Q1. Name the three main internal parts of a microcontroller. [3 marks]

  • Cue. The CPU (processor), memory (program memory and RAM), and input/output ports.

Q2. State what happens to a microcontroller input pin left floating. [1 mark]

  • Cue. It picks up noise and reads a random, undefined logic level.

Q3. Name the peripheral that lets a microcontroller read an analogue sensor voltage. [1 mark]

  • Cue. The analogue-to-digital converter (ADC).

Exam-style practice questions

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

Eduqas 20215 marksA push switch is connected to a microcontroller input pin. Explain why a pull-up (or pull-down) resistor is needed, and describe the logic level the pin reads when the switch is open and when it is closed for a pull-up arrangement.
Show worked answer →

Why a resistor is needed (up to 3 marks): without it, when the switch is open the input pin is left floating (connected to nothing), so it picks up electrical noise and reads an unpredictable, randomly changing logic level. A pull-up (or pull-down) resistor ties the pin to a defined voltage when the switch is open, giving a reliable logic level.

Pull-up behaviour (up to 2 marks): a pull-up resistor connects the pin to the positive supply, and the switch connects the pin to 0 V0\ \text{V}. When the switch is open, the resistor pulls the pin high (logic 11). When the switch is closed, the pin is connected directly to 0 V0\ \text{V}, so it reads low (logic 00).

Markers reward the floating-pin problem (noise, undefined level), the resistor setting a defined level, and the pull-up giving high when open and low when closed.

Eduqas 20225 marksDescribe the main internal parts of a microcontroller, and name two built-in peripherals that let it interface with analogue and high-power devices.
Show worked answer →

Internal parts (up to 3 marks): a microcontroller contains a CPU (processor) that executes the program, memory (program memory, often flash, holding the code, and RAM holding data), and input/output ports through which it reads inputs and drives outputs. A clock (oscillator) steps the CPU, and a bus connects the parts. It is a complete computer on one chip.

Peripherals (up to 2 marks): two valid examples are an analogue-to-digital converter (ADC) to read an analogue sensor voltage, and a PWM (pulse-width modulation) output to control the power to a motor, LED or heater. (Timers, serial communication interfaces and comparators are also acceptable.)

Markers reward the CPU, memory and I/O ports (a computer on a chip) and two valid peripherals such as the ADC and PWM.

Related dot points

Sources & how we know this