字幕列表 影片播放
hello and
welcome to the tutorial of 2421, for 2421
weighted code you might have some question that for example
what's the correct way to write 2 or 4 5 lets find out
for 2 we could write simply that 0 0
1 0 or 1
0 0 then
which which one will be correct for four
also 0 1 0 0
and 1 0 1 0
but we can't understand that which one should be correct
let's find out here we have the decimal equivalent of
2 4 2 1 remember one thing that
every one code is a compliment of
another for decimal o's 9's compliment will be 9
1's 9's compliment will be 8
for 2 its 7 for three it's 6 for 4 it's 5
here is the binary code and it's 1's complement
we have to remember that for 0
2421 code will be 0 0 0 0
then it's 9's complement would
go to the 9 so its
like that and the code is
for 0000
it's 1's complement is 11
11 for 1, 2421 code is
0 0 0 1 and its
one's complement is one one
one 0
ok then for 2
0 0 one 0
and it's 1's compliment will be
one one 0 one
for 3,
0011 and its
one's complement is
1100 for 4
0100 and 5
1011
umm remember another thing that
it should be in increasing order
ok
Thank You...,