Number Code Complement
Number Code Complement
0 0 1 0 1
+ 1 0 1 0 0
--------------
1 1 0 0 1
° Here, there is no carry bit and the sign bit is 1.
This indicates a negative result, which is what we
expect. (11001)2 = -(7)10.
4 0100 0110
5 0101 0111
6 0110 0101
ENGIN112 L4: Number Codes and Registers
ASCII Code
° ASCII Codes
° A – Z (26 codes), a – z (26 codes)
° 0-9 (10 codes), others (@#$%^&*….)
° Transmission susceptible to noise
° Typical transmission rates (1500 Kbps, 56.6 Kbps)
° How to keep data transmission accurate?
° Parity is used in digital communication systems to detect errors that may occur during
transmission.
° A parity bit is an extra bit that is added to a data word to create a code word. The parity bit
is used to verify the accuracy of the transmission by checking if the number of ones in the
code word is even or odd.
° Parity codes are formed by concatenating a parity bit, P to each code word of C.
° In an odd-parity code, the parity bit is specified so that the total number of ones is odd.
° In an even-parity code, the parity bit is specified so that the total number of ones is even.
P Information Bits
1 1 0 0 0 0 1 1 0 1 0 0 0 0 1 1
Added even parity bit Added odd parity bit
• To store data in binary form, it must first be converted from its original
form (text, image, etc.) into binary form using a process called encoding.
Encoding methods vary depending on the type of data being stored and the
device or system being used. For example, text data is typically encoded
using ASCII or Unicode encoding, while image data is encoded using
formats such as JPEG or PNG.
Binary Cell
Register A Register B
Digital Logic
Circuits
Register C