Академический Документы
Профессиональный Документы
Культура Документы
EN
B1 B2
NOR Q
AND
S2
Circuit works only when Switch3 (EN) is Enable or turn on. Passenger presses switch S1 to
call the flight attendant so two LED turn on; B1 which is near Passenger Seat and B2 in
Flight Attendant’s Cabin.
After attending passenger, Flight Attendant press switch2 (S2) to turn off both LED.
One form of Gray code is called reflected binary, which is constructed by following
techniques. The two binary digits 0 and 1 are reflected about a horizontal line and the digits
above the line prefixed by 0 and below the line by 1 as shown below:
From 2 bit gray code table we can clearly see that 2 bit code adjacent combinations differ in
one digit place only. Another two tables show the 3 bit and 4 bit gray code.
Reflected Binary Natural Binary
000 000
001 001
011 010
010 011
110 100
111 101
101 110
100 111
Above table shows the difference between 3 bit reflected binary and 3 bit normal binary.
g0 = b0 + b1 = 0 + 1 = 1
g1= b1 + b2 = 1 + 1 = 0
g2 = b2 + b3 = b2 = 1 (b3 assumed to be 0)
In above diagram ABCD are used as Binary inputs, where D stands for LSB (Least
Significant Bit) and A stands for MSB (Most Significant Bit) corresponding output Gray
code take from G0, G1, G2 and G3.
In above diagram G0, G1, G2 and G3 are used as Gray code inputs and output Binary code
take from ABCD.
In a Single Bit error, only one bit in the data unit has changed.
For Example:
Sent: 00000010
Received 00001010
0 is changed to 1
Burst Error means that 2 or more bits in the data unit have changed.
For Example:
Sent: 010001000100011
Received: 010111000010011
0 is changed to 1
in more than 1 bit
1. Parity Check:
A parity bit is added to every data unit so that the total number of 1s is even (or odd for odd-
parity). For Example:
Parity Bit
Sent: 1110101 1101111
Received: 11101010 11011110
Parity check can detect single-bit errors. It can also detect burst errors only if the total
number of errors in each data unit is odd.
3. Checksum:
Checksum schemes include parity bits, check digits, and longitudinal redundancy checks.
Some checksum schemes are specifically designed to detect errors commonly introduced by
humans in writing down or remembering identification numbers.
XOR
S1 B1
XOR
S2
Staircase 2
XOR
S1 B2
XOR
S2
Staircase 3
XOR
S1 B3
XOR
S2
S1=Switch1
S2=Switch2
S3=Switch3
B1=B2=B3=lights/loads
Here, I assume that when there is night or dark, censor gives constant output. It’s off when it
detects the light.
CPS1
CPS2
Bathroom
CPS3 Bulb
AND
Switch
Kitchen
Bulb
AND
Switch
Living Room
Bulb
AND
Switch
CPS1, CPS2 and CPS3 are switches of Bathroom, Kitchen and Living Room.
Switch of the bathroom, kitchen and living room works only When CPS1, CPS2 and CPS3
are on.
Here, I assume that control panel has full control over kitchen, bathroom and living room
lights.