L 2 (Theory)
L 2 (Theory)
Prepared By:
Bakhtiar Muiz
Lecturer, Dept. of CSE, DIU
1. BCD and Parity bit and practice different number system conversion.
Method
Step 1: Convert the number to the decimal base number
❑(545)6 = (?)4
❑Solution:
❑Step 1: Convert from base 6 to base 10
❑(545)6 = (?)4
❑Solution:
❑Step 2: (Convert 209)10 to base 4
❑Convert (3211)4 to ( ? )5
❑Convert (1001001100)2 to ( ? )6
❑Convert (2724)8 to ( ? )5
❑Binary Coded Decimal (BCD) is a system of writing numbers that assigns a four-digit
binary code to each digit 0 to 9 in a decimal (base-10) numeral.
❑The four-bits BCD code for any particular single base-10 digit is its representation in
binary notation given below.
Excess-3 means 3
add with decimal
value
At first,
multiply every
binary bit with
corresponding
weight, then
finally
performed
addition
❑To detect errors in data communication and processing, an eighth bit is sometimes
added to the ASCII character to indicate its parity. A parity bit is an extra bit included
with a message to make the total number of 1’s either even or odd
Hints: Count
number of 1
only, then
check
whether it is
odd or even