Search Header Logo
Unit 6 Software T3 Interrupts

Unit 6 Software T3 Interrupts

Assessment

Presentation

Computers

11th Grade

Practice Problem

Medium

Created by

Michael Harrington

Used 1+ times

FREE Resource

15 Slides • 18 Questions

1

media

2

media

Objectives

• Understand how hardware, firmware and an operating

system are required to run applications

Understand the role of the bootloader

• Describe the role and operation of interrupts including:

How an interrupt is generated

How it is handled using an interrupt service routine

What happens as a result of the interrupts

• Be able to describe examples of software and

hardware interrupts

3

Fill in the Blank

Show you know the objectives

Understand how hardware, ? and an operating system are required to run applications

What is the ? word

4

Fill in the Blank

Show you know the objectives

Describe the role and operation of interrupts including:

How an ? is generated

How it is handled using an interrupt service routine

What happens as a result of the interrupts

What is the ? word

5

Fill in the Blank

Show you know the objectives

Describe the role and operation of interrupts including:

How an interrupt is generated

How it is ? using an interrupt service routine

What happens as a result of the interrupts

What is the ? word

6

media

Interrupts

Unit 6 Software

Starter

• ROM on a computer stores programs that cannot be

changed as they are stored on Read Only Memory

• Are these programs software or hardware?

• Discuss your thoughts with a partner

7

Open Ended

ROM on a computer stores programs that cannot be changed as they are stored on Read Only Memory

Are these programs software or hardware?

8

media

Interrupts

Unit 6 Software

Firmware

• Hardware is named after the fact it is physically hard

• The term is used for all physical components of a computer or

peripherals

• Software isn’t a physical object, so it is given the opposite

name (soft rather than hard)

• Firmware (between hard and soft) contains

programs that are stored permanently in hardware

• The BIOS stored on a computer

is stored on a flash ROM

• It can only be updated by flashing

the ROM

• Other peripherals may have their own firmware

9

media

Interrupts

Unit 6 Software

Bootloader

• When you first turn on a computer it starts running

firmware stored in the ROM

• These instructions then load the

first instructions from the hard disk
telling the computer what tasks
to do

• The part of the hard disk that stores

these instructions is the boot sector

• Turning on a computer is

known as ‘booting’ after
“pulling yourself up by
your bootstraps”

10

Reorder

Question image

Reorder the following

Bootloader

When you first turn on a computer it starts running firmware stored in

the ROM. These instructions then load the first instructions from the hard

disk telling the computer what tasks to do. The part of the hard disk that stores

these instructions is the boot sector. Turning on a computer is known

as ‘booting’ after “pulling yourself up by your bootstraps”.

1
2
3
4
5

11

media

Interrupts

Unit 6 Software

Running applications

• Applications run on the computer’s

operating system

• If they need to access hardware, they do

this via ‘calls’ to the operating system or
device drivers

• The operating system itself runs on

top of the firmware

• The bootloader and other firmware runs

on the physical hardware itself

Applications

Operating system

Firmware

Hardware

12

Match

Match the following

Applications run on the computer’s operating system

If they need to access hardware, they do this via ‘calls’ to the operating system or device drivers

Top Level

Second Level

Third level

Bottom Level

Applications

Operating system

Firmware

Hardware

13

media

Interrupts

Unit 6 Software

Interrupts

• When you need to get the

attention of someone who is busy
you need to interrupt them

• In the same way, peripheral devices

also need to get the attention of the CPU

• They do this by sending an interrupt

which leads to the relevant
interrupt service routine (ISR) being run

• What happens to the current process

that is running on the processor?

14

media

Interrupts

Unit 6 Software

Interrupts

• The current process will need to pause, but it will

need to be restarted later

• The value stored in the program counter (PC) is saved

in a location in RAM

• No more instructions of the following task are performed (they

will be later)

15

Multiple Select

Peripheral devices also need to get the attention of the CPU

They do this by sending an interrupt which leads to the relevant interrupt service routine (ISR) being run

What happens to the current process that is running on the processor?

[more than 1]

1

Processor for hardware devices send interrupt signals to the CPU

2

No more instructions of the following task are performed (they will be later)

3

The value stored in the program counter (PC) is saved in a location in RAM

4

The current process will need to pause, but it will need to be restarted later

5

ROM on a computer stores programs that cannot be changed as they are stored on Read Only Memory

16

media

Interrupts

Unit 6 Software

Interrupt Service Routine (ISR)

• Once the CPU has been interrupted, it needs to

process the interrupt

• It runs the interrupts program code known as an Interrupt

Service Routine (ISR)

• This is also known as an interrupt handler

• The ISR needs to execute as quickly as possible as it has

interrupted the CPU from the task it was working on

• For instance, if a key is pressed, the ISR may save the key

that was pressed. Later, a word-processor task can process it
further

Interrupt service

routine (ISR)
Interrupt
generated

Processor returns to

previous task

17

Multiple Select

Which of these is correct for the Interrupt Service Routine (ISR)

Once the CPU has been interrupted, it needs to process the interrupt

1

It runs the interrupts program code known as an Interrupt Service Routine (ISR

2

This is also known as an Harrington interrupt handler

3

Interrupt generated -> Interrupt service routine (ISR) -> Processor returns to previous task

4

For instance, if a key is pressed, the ISR may save the key that was pressed. Later, a word-processor task can process it further

5

The ISR needs to execute as slowly as possible as it has interrupted the CPU from the task it was working on

18

media

Interrupts

Unit 6 Software

Hardware interrupts

• Hardware devices send interrupt signals to the CPU

• The interrupts are sent via Interrupt Request Lines (IRQ)

• For instance, if a key on a keyboard is pressed, an interrupt

will be sent (actually an interrupt is sent when the key is
pressed and another is sent when it is released)

• When a mouse is moved, constant

interrupts are sent to the
computer so that it
is able to update
the location of
the pointer

19

Reorder

Question image

Reorder the following about Hardware interrupts

Hardware devices send interrupt signals to the CPU. The interrupts are sent

via Interrupt Request Lines (IRQ). For instance, if a key on a keyboard is pressed,

an interrupt will be sent (actually an interrupt is sent when the key is pressed

and another is sent when it is released). When a mouse is moved, constant interrupts

are sent to the computer so that it is able to update the location of the pointer.

1
2
3
4
5

20

media

Interrupts

Unit 6 Software

Software interrupts

• Software interrupts are generated by programs that

are running

• For instance, if a program tries to divide by zero, a ‘division by

zero’ interrupt will need
to be handled

• In this case, an

exception is
handled by the OS

21

media

Interrupts

Unit 6 Software

Software interrupts

• Software interrupts deal with faults such as:

Page faults – this is when the data isn’t in RAM, but in

virtual memory and needs to be loaded back into RAM

Segmentation faults – this is when the one program tries to

make an illegal memory location, such as the memory used
by another program

• When a fault occurs

an interrupt service
routine is called
which handles
the error

22

Multiple Select

Software interrupts deal with:

1

Segmentation faults – this is when the one program tries to make an illegal memory location, such as the memory used by another program

2

exceptions caused by programs executing invalid maths

3

Page faults – this is when the data isn’t in RAM, but in virtual memory and needs to be loaded back into RAM

4

If a key is pressed, the ISR may save the key that was pressed. Later, a word-processor task can process it further

5

When a mouse is moved, constant interrupts are sent to the computer

23

media

Interrupts

Unit 6 Software

Plenary

• Take turns to explain to a partner each of the

following terms

Bootloader

Firmware

Interrupt

Interrupt service

routine (ISR)
Software interrupt

Hardware interrupt

24

Multiple Choice

What is this describing?

the first instructions a computer runs that tell it where to find the boot sector on the hard drive. The bootloader is stored in the ROM’s firmware

1

Hardware interrupt

2

Interrupt

3

Firmware

4

Bootloader

25

media

Copyright

© 2021 PG Online Limited

The contents of this unit are protected by copyright.

This unit and all the worksheets, PowerPoint presentations, teaching guides and other associated files distributed
with it are supplied to you by PG Online Limited under licence and may be used and copied by you only in
accordance with the terms of the licence. Except as expressly permitted by the licence, no part of the materials
distributed with this unit may be used, reproduced, stored in a retrieval system, or transmitted, in any form or by
any means, electronic or otherwise, without the prior written permission of PG Online Limited.

Licence agreement

This is a legal agreement between you, the end user, and PG Online Limited. This unit and all the worksheets,
PowerPoint presentations, teaching guides and other associated files distributed with it is licensed, not sold, to
you by PG Online Limited for use under the terms of the licence.

The materials distributed with this unit may be freely copied and used by members of a single institution on a
single site only. You are not permitted to share in any way any of the materials or part of the materials with any
third party, including users on another site or individuals who are members of a separate institution. You
acknowledge that the materials must remain with you, the licencing institution, and no part of the materials may
be transferred to another institution. You also agree not to procure, authorise, encourage, facilitate or enable any
third party to reproduce these materials in whole or in part without the prior permission of PG Online Limited.

Interrupts

Unit 6 Software

26

Multiple Choice

What is this describing?

programs stored in ROM

1

Hardware interrupt

2

Interrupt

3

Firmware

4

Bootloader

27

Multiple Choice

What is this describing?

a short set of instructions that is executed when an interrupt occurs – also known as an interrupt handler

1

Hardware interrupt

2

Interrupt

3

Software interrupt

4

Interrupt service routine

28

Multiple Choice

What is this describing?

interrupts generated by software, such as an attempted division by zero or an attempt to access a memory location currently being used by another program

1

Hardware interrupt

2

Interrupt

3

Software interrupt

4

Interrupt service routine

29

Multiple Choice

What is this describing?

A signal sent to a processor causing it to pause the current task and handle the interrupt

1

Hardware interrupt

2

Interrupt

3

Software interrupt

4

Firmware

30

Multiple Choice

What is this describing?

interrupts generated by hardware, such as a key press or mouse movement

1

Hardware interrupt

2

Interrupt

3

Software interrupt

4

Firmware

31

Fill in the Blank

What does ISR mean?

get the words and spelling correct

32

Fill in the Blank

What does IRQ mean?

get the words and spelling correct

33

media

Interrupts

Unit 6 Software

Worksheet 3

• Complete Task 1 on Worksheet 3

media

Show answer

Auto Play

Slide 1 / 33

SLIDE