























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A comprehensive overview of how computers use binary and hexadecimal systems to represent and process data. It covers topics such as binary to denary conversion, hexadecimal usage in error codes, mac addresses, ipv6 addresses, and html color codes. Additionally, it explains binary addition, logical binary shifts, two's complement, character sets like ascii and unicode, sound and image representation, data storage measurements, and data compression techniques. The document also delves into data packets, transmission modes, and the universal serial bus (usb) protocol, offering a detailed understanding of data transmission principles and technologies. Useful for high school students.
Typology: Study notes
1 / 63
This page cannot be seen from the preview
Don't miss anything!
























































1.1.1 How and why computers use binary Binary
Why a computer system only process data in binary form
1.1.2 Binary to denary conversion Units
1.1.3 How and why is hexadecimal used Why is hexadecimal used
Main uses Error codes ○ Refer to the memory location of the error ○ Generated automatically by the computer
MAC addresses ○ MAC = media access control A number uniquely identifies a device on a network, referring to the network interface card which is part of the device
○ Made up of 48 bits which are shown as 6 groups of 2 hexadecimal digits
IPv6 addresses ○ IP = Internet Protocol ○ Address given to each device connected to a network Difference between IPv4 and IPv IPv □ 32 bit written in denary or hexadecimal □ Uses decimal point to connect
IPv □ 128 bits Broken down into 16-bit chunks (= 4 hex digits) written in hexadecimal and uses colons
HTML colour codes ○ Three primary colours: red, green, blue ○ 8 bits (2 hex digit) and 256 shades of each primary colour ○ Hexadecimal is used because it uses less digits and is easier to read
1.1.4-5 Binary addition and logical binary shifts Overflow error
Logical shifts
2022 年 11 月 28 日 18:
1.1.6 Two's complement The most significant bit (leftmost digit) is changed to a negative value
Image resolution
Fuzzy image
High resolution images drawback
1.3.1 Measurement of data storage IEC system
Converting between measurements
1.3.2 Calculation of file size File size of an image
1.3.3/4 Data compression - Lossy and Lossless Reasons for compression
Lossy file compression
Lossy compression for different files **Type Type of media Details
2. MPEG-4 (MP4) Multimedia • Retains an acceptable quality of sound and video 3. JPEG Images Humans eyes don't detect differences in colour shades quite as well as they detect differences in image brightness
Lossless file compression
RLE
2022 年 11 月 1 日 19:
2.1.1 Data packets Data packet
Data packet structure Header ○ IP address of sender ○ IP address of recipient ○ Sequence number ○ Size of data in bytes
Payload ○ Actual binary data
Trailer ○ Method identifying the end of the packet ○ Error check (CRC)
Cyclic redundancy check (CRC)
Packet switching
Packet switching pros and cons Benefits ○ No need to tie up a single communication line ○ A high data transmission rate is possible
Drawbacks ○ Packets can be lost and needs to be resent ○ A delay at the destination for data to be re-ordered
2.1.2 Data transmission Transmission modes Simplex ○ Data sent one direction only
Half-duplex ○ Data sent in both directions but one direction at a time
Full-duplex ○ Data sent in both directions at the same time
Transmission types Serial ○ Data is sent one bit at a time over a single wire / channel ○ Bits are sent one after another as a single stream Good for longer distances ▪ e.g. USB between printer and computer
2022 年 11 月 28 日 18:
▪ e.g. USB between printer and computer ○ Slower ○ Synchronised arrival ○ All 3 transmission modes Parallel Several bits of data usually one byte are sent down several channels / wires all at the same time
○ Each channel / wire transmits one bit Good for shortershort distances ▪ e.g. internal circuits of a computer
○ Faster ○ Risk of unsynchronised / skewed arrival (if over long distance) ○ All 3 transmission modes
Serial advantages
Parallel advantages
Plugging into the computer
Benefits
Drawbacks
Comparing USB to USB-C USB Physical characteristics ▪ 4 wired shielded cable ▪ 2 wires for power ▪ Other 2 for data transmission ▪ Plugged in using USB ports, inserted only one way
○ +5V power available ○ 1.5 Mbps to 5 Gbps ○ Backward compatible
Physical characteristics 24 - pin symmetrical connector □ It will fit into a USB-C port either way round
▪ It is much smaller and thinner than older USB connectors
2.2.1 The need to check for errors Risks when transmitting data
How errors occur Electrical interference ○ All types of wires / cables can suffer from electrical interference ○ Cause data to be corrupted or lost
Problems during packet switching ○ This can lead to data loss or even data gain.
Skewing of data ○ Bits arrive out of sync ○ Occurs during parallel data transmission and can cause data corruption
2.2.2 Parity checks, checksum and echo checks Parity check An agreement is made between the sender and the receiver regarding even or odd parity being used
○ Can detect even number of changes in bits
Checksum
Echo checks
2.2.3 Check digits Check digit
Uses Barcodes on products ○ International Standard Book Numbers (ISBN) Vehicle Identification Numbers (VIN)
2022 年 11 月 28 日 18:
○ Vehicle Identification Numbers (VIN) Errors they can detect
2.2.4 Automatic repeat request or query (ARQs) Positive acknowledgement
When the sending device receives this positive acknowledgement, it knows the data packet was received error free and sends the next data packet.
If the sending device does not receive a positive acknowledgement within a set timeframe, a timeout occurs and the sending device will resend the data packet
It will keep doing this when a timeout occurs, until it receives a positive acknowledgement, or sometimes a limit is set and when this limit is reached it will stop resending the data.
Negative acknowledgement
If the sender receives a negative acknowledgement, it knows this means the data was received incorrectly, so it can resend the data packet
3.1.1 The CPU CPU
Consist of: ○ Control unit (CU) ○ Arithmetic and logic unit (ALU) ○ Registers and buses
Microprocessor
3.1.2a Von Neumann architecture Main components Control Unit (CU) ○ Decodes instructions using an instruction set ○ Sends control signals that manage the transfer of data and instructions within the CPU
Arithmetic and Logic Unit (ALU) ○ Used to carry out calculations on data and logical operations ○ It holds temporary values during calculations in a register called the accumulator (ACC)
System Clock ○ A tiny oscillating crystal ○ Controls the rate at which calculations are performed by the CPU
Registers Program counter (PC) ○ Stores the address of the next instruction to be processed
Memory address register (MAR) ○ Stores address of next instruction/data to be fetched // where data is to be written to
Memory data register (MDR) ○ Stores the data that is in use from the address in the MAR
Current instruction register (CIR) ○ Stores the instruction that is currently being processed
Accumulator (ACC) ○ Built in to the ALU, temporarily stores data being used in a calculation
Buses Data bus ○ Carries data between the CPU, memory and input/output devices
Control bus ○ Carries signals from the control unit (CU) to all the other computer components
Address bus ○ Carries addresses throughout the computer system e.g. MAR to RAM
3.1.2b Fetch-Decode-Execute cycle Fetch
2022 年 11 月 28 日 18:
Execute
3.1.3 Cores, caches and internal clock - CPU performance Factors affecting performance Clock Speed Definition: The maximum number of FDE cycles/instructions a CPU can perform in a second
○ The clock speed of a CPU determines how fast it can process instructions A faster clock speed improves the performance Tasks can be performed faster because more FDE cycles / instructions can be processed in a second
○ Typical speed of CPU clock = 3.5GHz Overclocking ▪ Using a clock speed higher than the computer was designed ▪ Can lead to seriously unsynchronised operations ▪ The computer would frequently crash and become unstable ▪ Lead to serious overheating of CPU, causing unreliable performance
Cache size ○ Very fast volatile memory within the CPU ○ It is inside the CPU so it has faster data access time then the RAM ○ Stores frequently used instructions and data that needs to be accessed faster ○ Larger cache = better performance
Number of cores ○ A core is made up of an ALU, a CI and the registers ○ Usually 2,4 or 8 cores ○ It processes instructions and carries out a FDE cycle Multiple cores can process instructions simultaneously and increase the performance of a computer
Doubling the amount of cores doesn't necessarily exactly double performance as extra communication between cores is required
3.1.4 Instruction set Opcodes
Instruction set
3.1.5 Embedded systems
3.2.1 Input devices Definition
Input Device Detail Used for Barcode scanner It uses a red laser to scan a barcode so that the data stored in the barcode can be obtained. Light from the lines in the barcode is reflected back to the scanner. It is used in a supermarket to get the price of a product and as part of a stock control system Digital camera It captures light through a lens and converts it into binary. It is built into a mobile phone to allow the user to photograph items or people. Keyboard It allows the user to press keys that have a designated ASCII/Unicode value that is converted to binary. Using keyboards regularly can lead to repetitive strain injury (RSI) It is one of the main methods of input that allows a user to type data into a personal computer. Microphone It captures soundwaves and converts them to binary. It is built into a mobile phone to capture the user’s voice so that it can be heard by the other users. It can also be used as a sensor to detect sound. Optical mouse It captures the light that is bounced back from a laser that is shone from the mouse to the surface underneath, to track the mouse’s movements. It is one of the main methods of input that allows a user to select icons and menu options whilst using a personal computer.
2023 年 3 月 7 日 23:
It captures the light that is bounced back from a laser that is shone from the mouse to the surface underneath, to track the mouse’s movements. It is one of the main methods of input that allows a user to select icons and menu options whilst using a personal computer. QR code scanner It uses a sensor or a camera to capture light reflected from a QR code and converts it to binary. QR codes can usually be read using the camera on a smartphone. It can be an application that is downloaded onto a mobile phone and used to SCAN QR codes that store information, e.g. a website link. Resistive touch screen Made up of two layers. A voltage is applied across the two surfaces. When the top layer is touched it makes contact with the bottom layer completing a circuit. The point of contact is detected where the change in voltage occurred. Had good resistance to dust and water so can be used by engineers or roadside mechanics exposed to the elements. Can be used with bare fingers, stylus and gloved hand. Capacitive touch screen An electrostatic field is created on the screen. As human skin is conductor of electricity, when the screen is touched the electrostatic field is changed and the point of contact can be determined. Capacitive touch screens are very durable, have high scratch resistance and allow multi-touch. Infra-red touch screen Infrared sensors and transmitters form a grid of infrared beams. If any of the beams are broken the point of contact can be determined. Infrared screens have good durability and can work if the screen is scratched or cracked. They allow multi-touch. 2D scanner 2D scanners (or flatbed scanners) are usually used to scan documents. The document is converted into a digital format that can be stored on a computer. 2D scanners can be used at airports to read passports which enable automatic border controls. 3D scanner 3D scanners scan solid objects to produce 3D digital images. They make use of lasers and a turntable which rotates the solid The images can be used in computer- aided design (CAD) software. They can also be used in medical
This is a device that squirts liquid ink from nozzles to output a document or image It can be used in a house to print photographs Laser printer This is a device that uses a rotating drum and powdered toner to output a document It can be used in an office to print letters. Light emitting diode (LED) screen This is a screen that uses LEDs as a backlight to output an image This screen can be built into a mobile phone Liquid crystal display (LCD) screen This is a screen that shines light through crystals to output an image. This can be built into a television screen Speaker This is a device that outputs sound. This can be built into a mobile phone so one user can hear another user’s voice
This can be built into a mobile phone so one user can hear another user’s voice 3D printer This is a device that builds layers of material to output a 3D object This can be used in medicine to create prosthetic limbs 3.2.3 Sensors Definition
Types of sensors Temperature ○ Measures temperature of the surroundings by sending signals ○ These signals will change as the temperature changes
Moisture ○ Measures water levels in, for example, soil ○ It is based on the electrical resistance of the sample being monitored
Humidity ○ Slightly different to moisture ○ This measures the amount of water vapour in, for example, a sample of air Based on the fact that the conductivity of air will change depending on the amount of water present
Light These use photoelectric cells that produce an output in the form of an electric current depending on the brightness of the light
Infrared (active) ○ Use an invisible beam of infrared radiation picked up by a detector If the beam is broken, then there will be a change in the amount of infrared radiation reaching the detector (sensor)
Infrared (passive) ○ These sensors measure the heat radiation given off by an object
Pressure A transducer and generates different electric currents depending on the pressure applied
Gas Most common ones are oxygen or carbon dioxide sensors