2013 embedded processors
-
Upload
leon-marsden -
Category
Technology
-
view
240 -
download
1
description
Transcript of 2013 embedded processors
![Page 1: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/1.jpg)
Embedded ProcessorsSACE IT REVISION WORKSHOP 2013
![Page 2: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/2.jpg)
Examples of Embedded Processors
Devices that are not immediately recognisable as computers: GPS units
Exercise Machines
Watch
Calculator
Modem / Router
Smart TV
And heaps of other devices with a microprocessor built in…
Make a list of 5 other devices that have embedded processors.
![Page 3: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/3.jpg)
Why Embedded Processors?
We are modelling computer architecture (the way computers are designed)
The “Von Neumann architecture” was first implemented in the 1950s and remains the model for computers now Input, Output, CPU, Control Unit, ALU, Memory
Nowadays, the main difference is different levels of memory, including cache etc.) and extra speed / sophistication
Embedded Processors reduces the scope of the questions to focus on a specific task (eg. The GPS unit is calculating how far to go)
Yes, there are limitations to the model we use to explain the way computers work, but it is satisfactory at our level – if you study Computer Science at tertiary level you will go into greater depth
![Page 4: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/4.jpg)
Data
It is all about data
Information is data that is organised and understandable to humans
Computers don’t care / know the interpretation of the data, they just use the binary digits: Read as input
Stored in memory
Processed (manipulated) in the CPU
Output
![Page 5: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/5.jpg)
Input / Output
Input and Output generally relates to the input / output devices (rather than the data / information)
Examples: An output may be a speaker (rather than the sound that
is sent to the speaker)
An input may be a button, or a keyboard
To be safe in an exam question, mention both the device and the data: Example: “An output of the GPS unit is the speaker
which will play the sythnetic voice telling the user which direction to turn.”
![Page 6: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/6.jpg)
CPU
There are 3 main components in the CPU: Control Unit: coordinates the processing and tell other
components what to do
ALU: Arithmetic / Logic Unit - the part that does arithmetic (mathematical) or logic (comparison) operations on data that is held in the registers
Registers: Small units of memory that holds immediate data being using in the CPU / ALU (current data).
![Page 7: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/7.jpg)
Memory
There are 3 main types of memory we focus on: Registers: hold current data / immediate values required for
processing.
There are also other special registers such as: ‘instruction registers’ that hold the instruction being executed and the ‘program counter’ which stores where the next instruction to be executed is stored.
Primary / Main Memory: (eg. RAM) holds the loaded OS, software and instructions.
Volatile memory (loses it’s contents when the power is turned off)
Secondary Memory: (eg. ROM / EEPROM / HDD etc.) - holds the OS, software and other data (which, when required, will be loaded into primary memory).
Could be writeable (as with a traditional hard disk or SSD) or read only (ROM), but must be non-volatile so it doesn’t lose its contents when the power is turned off.
![Page 8: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/8.jpg)
Control Unit
The control unit coordinates the processing of instructions and data, using a cycle of "fetch, decode, execute, store". Fetch: a special register called the "program counter" records where
the next instruction is located. The control unit will fetch this instruction and store it in a register. Fetch may also be reading from input, or reading data ready to be processed, therefore sometimes several fetch steps may be required to get all the data required for a given instruction to actually be executed.
Decode: once an instruction has been fetched, the control unit needs to decode it to determine a few things such as: What operation is it requiring of the ALU? Is there more data that must be loaded / fetched? Where will the result of the operation be placed?
Execute: once decoded, the ALU can actually perform the operation (execute), using either arithmetic (plus, minus etc.) or logic (or, and, comparison etc.) operation.
Store: finally, the control unit will store the result of this operation in the appropriate location (from the decode stage)
![Page 9: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/9.jpg)
ALU
ALU stands for Arithmetic / Logic Unit
Does the arithmetic (mathematical) and logic (comparisons resulting in true / false) calculations.
An ALU has 3 inputs – 2 of which are for data, 1 of which is for operation / instruction, plus 1 output (the result). Of course, all data is represented using binary code.
The types of operations that can be done by an ALU are: Arithmetic (eg. add, multiply).
Logic (eg. greater than, OR, AND)
When calculating logic, the result is always TRUE (represented as a 1) or FALSE (represented as a 0). Generally, a computer recognises any value other than 0 as TRUE in a logical operation.
![Page 10: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/10.jpg)
2011 Exam Question
![Page 11: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/11.jpg)
![Page 12: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/12.jpg)
![Page 13: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/13.jpg)
![Page 14: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/14.jpg)
![Page 15: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/15.jpg)
![Page 16: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/16.jpg)
![Page 17: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/17.jpg)
![Page 18: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/18.jpg)
2012 Exam Question
![Page 19: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/19.jpg)
![Page 20: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/20.jpg)
![Page 21: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/21.jpg)
![Page 22: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/22.jpg)
![Page 23: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/23.jpg)
![Page 24: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/24.jpg)
![Page 25: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/25.jpg)
![Page 26: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/26.jpg)
Bonus Question
Blade purchases an iPod Nano that contain an embedded processor.
![Page 27: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/27.jpg)
Describe the type of memory that would have been used in the iPod Nano to enable its program to be updated at a later date.
(2 marks)
![Page 28: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/28.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
Control Unit
Registers
ALU
Primary Memory
Secondary Storage
![Page 29: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/29.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
![Page 30: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/30.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
Control Unit
![Page 31: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/31.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
Control Unit
Registers
![Page 32: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/32.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
Control Unit
Registers
ALU
![Page 33: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/33.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
Control Unit
Registers
ALU
Primary Memory
![Page 34: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/34.jpg)
Blade selects the next track on the iPod Nano. Describe the processes that occur for each of the components of the embedded process and the data used:
Input
Control Unit
Registers
ALU
Primary Memory
Secondary Storage
![Page 35: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/35.jpg)
Suggest using an algorithm how the ALU calculates the time remaining for a particular song that is currently playing.
![Page 36: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/36.jpg)
Blade would like to add the latest song to his iPod Nano, suggest 3 possible ways this could occur?
1)
2)
3)
![Page 37: 2013 embedded processors](https://reader036.fdocuments.us/reader036/viewer/2022062418/5562f987d8b42a6f598b4966/html5/thumbnails/37.jpg)
Blade uses his iPod Nano until it is completely flat and shut down. Explain the process that the iPod Nano would go through to become functional and display the current track after it has been recharged.