Chapter 3 - Hardware Flashcards
Is a thermometer a sensor+why
No, it is a tube filled with alcohol or mercury that can be read by a human eye in comparison to a scale, computers cannot see the level so it needs something else.
Whast sensor do you use to measure motion
Infra-red
What sensor do you use to measure temperature
Temperature sensor
Where would you use a pH sensor
In a pool
Where is an acceleromenter used
In a car
What are sensors
Input decives that can read or measure physical properties from their surroundings.
Explain real data+1 eg,
Real data is anologue in nature, meaning that there are infinite no of values and the data requires interpretation/best judgemnent from user
Computers cannot make sense of real data
Thermometer
What is an ADC
An Anologue Digital Converter
Takes real life data/physical quantities and converts them to digital format/discrete digital values.
What is a DAC+eg of when they are used
Digital to anologue converter
When a computer is used to control devices eg.valve
Actuators are used
What is an actuator
A device that helps achieve physical movements by converting energy to mechanical force
What is feedback
When the output readings of a sensor are recieved by the microproccessor and may impact the next input to bring the system within the desired parimetres.
What are the 2 types of applications for sensors
Monitoring and control
Explain monitoring sensor use+eg.
If the new data recieved is outside the acceptable range,a warning message/alarm appears
The microprocessor/computer has no effect on what is being monitored, they simply observe and notify
Pollution in river
Explain sensor applications:control
Eg.
If the new data recieved is outside the acceptable range, the computer/microprocessor sends signals to control aspects of the system/device. Output from the system affects the next set of inputs (feedback loop)
Chemical process control(maitnaining pH)
What is the difference between active infra-red and passive infra-red
Active uses an invisible beam of infrared radiation that when broken changes the amount of radiation reaching the detector (wind screen wipers)
Passive has sensors measure he heat radiation given off by an object (security alarm system)
Where are magnetic field sensors used
Anti-lock braking systems
What does the CPU consist of (3/4)
CU-control unit
ALU- arithmetic and logic unit
Registers and buses
What is a CPU
Central processing unit
Responsible for execution/processing of all instructions and data in s computer
Often installed as an integrated circuit on a microchip
What did John van Neumann do
What features did it have
Developed a stored program computer in the 1940’s
Concept of CPU
CPU could access RAM directly
Memory could store programs and data
Stored programs were made up of data in sequential order
What are the main components of the CPU (3)
ALU-arithmetic and logic unit
CU-control unit
Registers
Purpose of ALU in the CPU
Allows arithmetic, logic and or operations to be carried out whilst a program is being run
There can be more than one ALU to carry out specific functions
What does the CU in the CPU do
Reads instruction from memory/controls flow of information
Address of location where instruction is found is stored in the PC (program counter)
Generates command signals along control bus
System clock is used to produce timing signals for^(without system would crash)
How is the instruction from the PC interpreted
Fetch-decode-execute cycle
Where + how does the CU access its data and programs
In the RAM/IAS(immediate access store)
The CPU takes data and programs held in a backing store and temporarily puts them into RAM
This leads to faster operations
What are registers function in CPU (3)
General or special purpose eg.
ACC-actuator(carries out ALU+temporarily stores data)
PC-program counter(stores address where next instruction is found)
MAR-memory access register(stores address of memory currently being read/written from)
How is the CPU installed
Installed as an integrated circuit on a single microchip
What is the responsibility of the CPU and what does it consist of
Responsible for the execution/processing of all instructions and data in a computer application
Control unit (CU)
Arithmetic and logic unit (ALU)
Registers and buses
What are the main components of the CPU
ALU
Registers
CU
System buses and memory
CPU
Central Processing unit
Responsible for the execution or processing of all the instructions and data in a computer
Integrated circuit
Chip made from a semi-conductor material which carries out the same tasks as a larger citcuit made from individual components
Explain briefly/simply how memory works in a computer
Memory is comprised of partitions with each partition being made up of adresses and contents, the address uniquely identifies every location in the memory and the contents are the binary value stored in each location
Specific purpose registers (5)
Current Instruction Register (CIR)
Accumulator (ACC)
Memory Access Register (MAR)
Memory data/buffer register(MDR)
Program Counter (PC)
Purpose of CIR
Current Instruction register
Stores the current instructions being decoded and excecuted
Function of RAM
Also known as the immediate access store (IAS)
Holds all the data and programs needed to be accessed by the CPU, which takes data and programs held in the backing store and temporarily puts them into RAM as read-write functions carried out using RAM will be a lot faster, key data needed by an application will also be stored in RAM to speed up operations
Backing store
Secondary storage device (HDD/SSD) used to store data permanently, even when the computer is powered down.
Role of the CPU in a computer
Process instructions and data input into the computer so that the result can be output
Purpose of ACC
Accumulator
Used when carrying out ALU calculations, temporarily stores data
Purpose of MAR
Memory Access Register
Stores the address of the memory location currently being read from or written to
Purpose of MDR
Stores data which has just been read from memory or data which is about to be written to memory
Role of PC
Program Counter
Stores the address where the next instruction can be read and found
System busses def + (3)
A connection between major components in a computer that can carry data, addresses or control signals
-Address bus
-Control bus
-Data bus
Describe read write operations with MDR and MAR
The address uniquely identifies the location in the memory
READ
Address of the location to be read from is first written into the MAR, a read signal is sent to the computer memory and the contents of this address are put into the MDR
WRITE
Data to be stored is first written to MDR
The data is written to a new address which is then written to the MAR. A write signal is sent and the value would then be written into the correct memory location
Address bus
system bus that carries addresses throughout the system. Unidirectional (1 way only) to prevent addresses being carried back to the CPU (not good)
Significance of the width of an address bus
The wider the bus, the more memory locations that can be simultaneously addressed. (2 to the power no. Of bits)
Data bus
System bus that allows data to be carried to and from CPU to memory/input/output devices as it is bidirectional.
Word
Group of bits used by a computer to represent a single unit, the larger a computers word length the greater the performance
Significance of the width of the data bus
The wider the larger the word length, the better the overall performance of the computer
Control bus
System bus that carries signals from control unit to all other computer components. Bi directional and usually 8. Bits in width as it on,y carries control signals.
How the Fetch-decode-execute-cycle is carried out in the von Neumann computer model
Checks for instructions, the PC contains the address of the memory location of the next instruction to be fetched. This address is copied from the PC to the MAR using the address bus. The contents at the address in the MAR are temporarily copied into the MDR. The content of the MDR is then copied and placed into the CIR. The value in the PC is incremented by 1 so that it points to the next instruction that has to be fetched. The instruction is decoded and executed by sending out signals via the control bus from the CPU to the various components of the computer system, if there’s more instructions to service the process repeats otherwise it ends.
Core
A unit on a CPU made up of an ALU, CU and registers. There can be multiple cores on a CPU
System clock
Produces timing signals on the control bus to ensure synchronisation takes place
Clock cycle
Measured in GHz
Vibrational frequency of the system clock which sends out pulses along the control bus. 3.5GHz is 3.5 billion clock cycles a second
IAS
Immediate Access Store
Memory that holds all data and programs needed to be accessed by the CU
Cache
Temporary Area of storage used to quickly access frequently used data.
Factors that affect the performance of the CPU (4)
Width of the address and data bus - increasing width increases performance + speed
Overlocking - increasing clock speed potentially increases speed of computer
Use of cache memories - the bigger the cache the faster the access time as it doesn’t have to go look through RAM
Number of cores - alleviates the need to increase clock speeds - must take into consideration the time taken to communicate with each core
Overlocking
2 problems
Changing the clock speed of a system clock by accessing the BIOS, to a value higher than the recommended setting.
-unsynchronised operations leading to frequent crashes
-overheating of CPU leading to unreliable performance
Dual core
Quad core
CPU containing 2 cores using 1 channels to communicate
CPU containing 4 cores using 6 channels to communicate
Instruction set
List of machine code instructions used by a particular microprocessor. List of machine code commands that can be processed by the CPU.
Purpose + use of an instruction set for CPU
The computer needs to be able to understand the operation to be carried out, so there are a limited number of opcodes to be used (the instruction set). Need to be converted into binary and instruction the CPU on how to carry out an operation. Eg. ADD
Opcode
Informs the CPU what operations need to be done
Operand
Part of a machine code instruction that identifies what data is to be used
Devices in which embedded systems are found (6)
Cars
Set-top box (recording + playing back TV programs)
Security systems
Lighting systems
Washing machines
Vending machines
Embedded system
Combination of hardware and software designed to carry out a specific set of functions.
Have a user interface, analogue/digital input and some form of output, mechanical components etc.
Can be based on microcontroller, microprocessor and system on chips (SoC)
Types of embedded systems (2)
Programmable (updates by connecting to computer + downloading or automatically via WiFi)
Non-programmable (need to be replaced if they need a software update)
Benefits of embedded systems (7)
Small, can easily fit into devices
Relatively low cost to make
Dedicated to one task therefore simple interfaces and no need for an operating system
Consumer very little power
Can be controlled remotely
Very fast reaction to changing input
With mass production comes reliability
Are computers embedded systems
No, they are multifunctional
Drawbacks of embedded systems (6)
Difficult to upgrade
Troubleshooting faults becomes a specialist task
Interface can be confusing
If accessible over the internet it is open to hackers or viruses
Wasteful, devices often thrown away due to difficulty upgrading
Leads to an increase in the throw away society when they become out of date
Barcode
Series of dark and light lines of varying thickness used to represent data. Code has to be scanned using. A laser or led light source. Most commonly found at the checkout of supermarkets
What happens when a barcode is scanned
Barcode is read by laser or LED
Light is reflected off the barcode (not off the dark lines)
The reflected light is read by sensors containing photoelectric cells
As the laser/LED is scanned across the barcode a pattern is generated and converted to digital data for the computer to understand. L=0, D=1
Input/output devices found at supermarkets + uses (6)
Keypad - key in weight/number of items/ barcode number if it failed to scan
Screen/monitor-show cost of an item
Speaker - beep when scanned correctly
Printer - print reciept
Card reader - read customers card using PIN or contactless
Touchscreen- select items by touching an icon
What happens when the barcode has been successfully scanned
The number is looked up in the stock data base (it is the key field in the item record)
When the number is found the stock item record is looked up
Price + other details are sent to the checkout point
Number of stock items reduced by 1
New value for stock is written back to the item record
Number of items compared to re-order level, if <= it is automatically ordered
A flag is added to the record to stop reordering each time that barcode is scanned
Upon arrival, stock levels are updated