GERBANG LOgIKA XOR (Exclusive OR)
Gerbang XOR adalah suatu rangkaian logika dasar dimana mempunyai 2 input atau lebih. Prinsif kerja gerbang logika adalah outputnya akan bernilai 1 apabila inputnya berbeda, dan outputnya akan bernilai 0 apabila inputnya sama.
Simbol Gerbang XOR
Tabel kebenaran gerbang logika XOR
A | B | Q |
0 0 1 1 | 0 1 0 1 | 0 1 1 0 |
1. Tabel kebenaran 3 input
Input A | Input B | Input C | Output Q |
0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 |
0 | 1 | 0 | 1 |
0 | 1 | 1 | 0 |
1 | 0 | 0 | 1 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 |
2. Tabel kebenaran 4 input
Input A | Input B | Input C | Input D | Output Q |
0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 1 | 1 |
0 | 0 | 1 | 0 | 1 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 0 | 1 |
0 | 1 | 0 | 1 | 0 |
0 | 1 | 1 | 0 | 0 |
0 | 1 | 1 | 1 | 1 |
1 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 0 |
1 | 0 | 1 | 1 | 1 |
1 | 1 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | 1 |
1 | 1 | 1 | 0 | 1 |
1 | 1 | 1 | 1 | 0 |
3. Table kebenaran 5 input
Input A | Input B | Input C | Input D | Input E | Output Q |
0 | 0 | 0 | 0 | 0 | 0 |
0 | 0 | 0 | 0 | 1 | 1 |
0 | 0 | 0 | 1 | 0 | 1 |
0 | 0 | 0 | 1 | 1 | 0 |
0 | 0 | 1 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | 1 | 0 |
0 | 0 | 1 | 1 | 0 | 0 |
0 | 0 | 1 | 1 | 1 | 1 |
0 | 1 | 0 | 0 | 0 | 1 |
0 | 1 | 0 | 0 | 1 | 0 |
0 | 1 | 0 | 1 | 0 | 0 |
0 | 1 | 0 | 1 | 1 | 1 |
0 | 1 | 1 | 0 | 0 | 0 |
0 | 1 | 1 | 0 | 1 | 0 |
0 | 1 | 1 | 1 | 0 | 1 |
0 | 1 | 1 | 1 | 1 | 0 |
1 | 0 | 0 | 0 | 0 | 1 |
1 | 0 | 0 | 0 | 1 | 0 |
1 | 0 | 0 | 1 | 0 | 0 |
1 | 0 | 0 | 1 | 1 | 1 |
1 | 0 | 1 | 0 | 0 | 0 |
1 | 0 | 1 | 0 | 1 | 1 |
1 | 0 | 1 | 1 | 0 | 1 |
1 | 0 | 1 | 1 | 1 | 0 |
1 | 1 | 0 | 0 | 0 | 0 |
1 | 1 | 0 | 0 | 1 | 1 |
1 | 1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 1 | 1 | 0 |
1 | 1 | 1 | 0 | 0 | 1 |
1 | 1 | 1 | 0 | 1 | 0 |
1 | 1 | 1 | 1 | 0 | 0 |
1 | 1 | 1 | 1 | 1 | 1 |
Kesimpulan : Gerbang XOR, output akan 1, apabila masukan atau inputnya berbeda, sesuai dengan table kebenaran di atas.
A | B | C | C not | D = Cnot Å B | Q/E = ( Cnot Å B ) . A |
0 | 0 | 0 | 1 | 1 | 0 |
0 | 0 | 1 | 0 | 0 | 0 |
0 | 1 | 0 | 1 | 0 | 0 |
0 | 1 | 1 | 0 | 1 | 0 |
1 | 0 | 0 | 1 | 1 | 1 |
1 | 0 | 1 | 0 | 0 | 0 |
1 | 1 | 0 | 1 | 0 | 0 |
1 | 1 | 1 | 0 | 1 | 1 |
Ket :
A = Switch lampu jalan
B = Timer
C = Light
D = Inverter light ÅTimer
Q = output
3 komentar:
Kerenn,, izin copy buat tugas
mau tanya.. kesimpulannya kalo nilai inputnya beda, maka outputnya bernilai 1.
kenapa pada tabel kebeneran yg inputnya ada 3&5. jika semua inputnya 1,nilai outputnya juga 1? mksh
Mungkin yg lebih tepat untuk pengertian logika XOR adalah dia akan memghasilkan output tinggi (1) jika inputnya ganjil. Dan akan beroutput rendah/ false (0) jika inputnya 0 atw genap.
Posting Komentar