Processed by Humans
Analog signal is a continuous signal representing physical measurements (Non-discrete data )
Stored in the form of wave signal
E.g. data such as a sound wave
Digital signals are discrete time signals generated by digital modulation.
Stored in the form of binary bit that has only two values
E.g. binary data / 1’s and 0’s
Syllabus (Click here to reveal the syllabus)
In this chapter you will learn about:
Number systems
– how and why computers use binary to represent data
– the denary, binary and hexadecimal number systems
– converting numbers between denary, binary and hexadecimal
– how and why hexadecimal is used for data representation
– how to add two positive 8-bit numbers
– overflow when performing binary addition
– logical binary shifts on positive 8-bit integers
– two’s complement notation to represent positive and negative binary numbers
Text, sound and images
– how and why a computer represents text
– the use of character sets including ASCII and Unicode
– how and why a computer represents sound
– sound sample rate and sample resolution
– how and why a computer represents an image
– the effects of the resolution and colour depth on images
Data storage and compression
– how data storage is measured
– calculating the file size of an image and sound file
– the purpose of and need for data compression
– lossy and lossless compression.
Digital electronics (switches, etc.)
Computer consist of transistors / logic circuits (that can only store/process data in two states / as high-low / on-off / 1 and 0)
Digital encoding (representation of data)
When computers (Microprocessor) takes control of a device such as
Digital clocks
Drones
Robots
Air conditioning
4. All software, music, documents, and any other information that is processed by a computer, is also stored using binary.
It uses the values 0 to 9 and A to F. Uses fewer characters // shorter
Easier to read / write / understand
Less likely to make mistakes // less error prone
Easier to debug
Often shown as Hexadecimal values
Refers to the memory location of the error
The Programmer interprets the Hexadecimal error code, diagnose and corrects the error
A Media Access Control (MAC) address is a number which uniquely identifies a device on the internet.
The MAC address relates to the network interface card (NIC) inside of the device.
Expressing MAC addresses in hexadecimal format makes them easier to read and work with.
MAC addresses consist of 12-digit hexadecimal numbers.
The format being used is either MM:MM:MM:SS:SS:SS or MMMMMM-SSSSSS.
The first 6 digits of the MAC address represent the ID of the adapter manufacturer while the last 6 digits represent the serial number of the adapter.
E.g. D5-BE-E9-8D-44-9C
Types of MAC Address:
UAA (Universally administered MAC Address)- Most common, set by the manufacturer at factory and can’t be changed
LAA (Locally administered MAC Address)- used if administrator wishes to change
Hex can be used to represent colours on web pages and image-editing programs using the format #RRGGBB (RR = reds, GG = greens, BB = blues).
The # symbol indicates that the number has been written in hex format.
Each primary colour – red, green, and blue and their different intensities is characterized by two hexadecimal digits.
As one hex digit represents 4 bits, two hex digits together make 8 bits (1 byte).
The values for each colour run between 00 and FF. In binary, 00 is 0000 0000 and FF is 1111 1111. That provides 256 possible values for each of the three colours.
#FF0000 will be the purest red, #00FF00 will be the purest green and #0000FF will be the purest blue
Black is #000000 - no red, no green, and no blue. White is #FFFFFF.
E.g. orange can be represented as #FFA500, which is (255 red, 165 green, 0 blue)
Full-Form: Internet Protocol
Purpose: It identifies the connection of a computer on the internet.
Bits: IPv4 is a 32-bit (4 bytes), and IPv6 is a 128-bits (16 bytes) address. IPv4 address is written in denary or hexadecimal form while IPv6 is represented by a hexadecimal number
IPv6 uses a colon (:) rather than a decimal point (.) as used in IPv4.
Example of IPv6 address 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Address: The IP address is assigned by the network administrator or Internet Service Provider.
IP Address is the logical address of the computer.
Explain the differences between the binary number system and the denary number system. [2017]
• A binary number system is a base-2 system, A denary number system is a base-10 system
• A binary number system uses 0 and 1 values, A denary number system uses 0 to 9 values
• A binary number system has units/ placeholders/column headings that increase by the power of 2, A denary number system has units/ placeholders/column headings that increase by the power of 10
• Binary has more digit for the same value// Denary has less digits for the same value
Character sets
ASCII
American Standard Code for Information Interchange
Set up in 1963
Consists of 7-bit codes (0 to 127) that represent letters, numbers, and characters found on a standard keyboard
Uses one byte to represent a character
E.g. 'A' is represented by 65 while 'a' is represented by 97
Extended ASCII uses 8-bit codes (0 to 255 in denary) that include non-English characters and some graphical characters
Disadvantage: does not represent non-Western languages like Hindi, Chinese, etc.
Unicode
Represents all languages of the world
Support all Operating systems, search engines, and browsers
Overlaps with the 128 characters of ASCII
Uses 4 bytes per character
An image is made up of tiny dots called pixels
Each image has a resolution and a colour depth
Resolution- Number of pixels wide and number of pixels high
Colour depth- Number of bits that are used to represent each colour, E.g 8-bit, 16-bit or 32-bit (the higher the bits, the greater the range of colours)
Sound waves are vibrations in the air (human ear senses and interprets them as sound)
Each sound wave has a
Frequency
Wavelength
Amplitude
Sound waves vary continuously //analogue in nature
Sampling: measuring the amplitude of the sound wave using ADC
Sampling Resolution (bit depth)
The number of bits per sample (the number of sound samples taken per second and measured in Hz-hertz)
Larger sampling resolution means: [2024]
More bits are allocated to each amplitude
Amplitudes can be more precise
A wider range of amplitudes can be recorded
larger dynamic range
better sound quality
less sound distortion
larger file size
longer time to transmit/download/stream
requires more processing power
CD's have 16-bit sampling resolution and a 44.1 KHz sample rate (44100 samples every second)
A binary digit is referred to as a BIT
8 bits is a byte
4 bits is a nibble
Byte, Kibibyte(KiB), mebibyte(MiB),gibibyte(GiB), tebibyte(TiB),pebibyte(PiB), and exbibyte(EiB) areall larger units of measurement
Any five from:
− (The analogue sound is) recorded using a microphone
− The sound wave is sampled
− ... measuring the height/amplitude
− Each amplitude has a unique binary value
− The sample rate is set
− ... that is the number of samples taken per second
− The sample resolution is set
− ... that is the number of bits used for each sample
− Each sample taken is converted to binary
Any four from (MAX 3 for ASCII/Unicode alone):
− ASCII has limited/fewer characters // Unicode has a more characters
− ASCII covers a limited set of languages/fewer languages
− Unicode includes many/more languages/emojis
− ASCII requires 7/8 bits per character
− Unicode requires up to 16/32 bits per character
− ASCII has 128/256 characters
− Unicode has 65 536/4 294 967 296 characters // approx. 60/70 thousand/4 billion characters
Unique binary/denary number given/stored for each character
The code for R is stored, then the code for E then D in sequence