
Unit 6 Software T3 Interrupts
Presentation
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Michael Harrington
Used 1+ times
FREE Resource
15 Slides • 18 Questions
1
2
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 Blanks
Type answer...
4
Fill in the Blanks
Type answer...
5
Fill in the Blanks
Type answer...
6
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
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
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
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”.
11
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
Applications
Operating system
Firmware
Hardware
13
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
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]
Processor for hardware devices send interrupt signals to the CPU
No more instructions of the following task are performed (they will be later)
The value stored in the program counter (PC) is saved in a location in RAM
The current process will need to pause, but it will need to be restarted later
ROM on a computer stores programs that cannot be changed as they are stored on Read Only Memory
16
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
It runs the interrupts program code known as an Interrupt Service Routine (ISR
This is also known as an Harrington interrupt handler
Interrupt generated -> Interrupt service routine (ISR) -> Processor returns to previous task
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
The ISR needs to execute as slowly as possible as it has interrupted the CPU from the task it was working on
18
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
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.
20
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
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:
Segmentation faults – this is when the one program tries to make an illegal memory location, such as the memory used by another program
exceptions caused by programs executing invalid maths
Page faults – this is when the data isn’t in RAM, but in virtual memory and needs to be loaded back into RAM
If a key is pressed, the ISR may save the key that was pressed. Later, a word-processor task can process it further
When a mouse is moved, constant interrupts are sent to the computer
23
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
Hardware interrupt
Interrupt
Firmware
Bootloader
25
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
Hardware interrupt
Interrupt
Firmware
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
Hardware interrupt
Interrupt
Software interrupt
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
Hardware interrupt
Interrupt
Software interrupt
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
Hardware interrupt
Interrupt
Software interrupt
Firmware
30
Multiple Choice
What is this describing?
interrupts generated by hardware, such as a key press or mouse movement
Hardware interrupt
Interrupt
Software interrupt
Firmware
31
Fill in the Blanks
Type answer...
32
Fill in the Blanks
Type answer...
33
Interrupts
Unit 6 Software
Worksheet 3
• Complete Task 1 on Worksheet 3
Show answer
Auto Play
Slide 1 / 33
SLIDE
Similar Resources on Wayground
27 questions
EL BIGDATA
Presentation
•
11th Grade
26 questions
DNA Structure, Function and Replication Basics
Presentation
•
10th - 11th Grade
24 questions
Oprogramowanie i licencje - konkurs
Presentation
•
11th Grade
26 questions
Ser vs Estar
Presentation
•
11th Grade
27 questions
CAPTION CHAPTER 2
Presentation
•
11th Grade
29 questions
2 Características y fuentes de la innovación técnica
Presentation
•
10th Grade
24 questions
2-13 Solving Systems of Linear Inequalities
Presentation
•
11th Grade
26 questions
Boolean Operator 2
Presentation
•
KG
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade
22 questions
Revise and Edit Final Review 3
Quiz
•
8th - 12th Grade