SlideShare a Scribd company logo
http://intelegenci.blogspot.com
PROGRAMPARALLEL PORT SEBAGAI GERBANG LOGIKA
Gambar program ANDgate Gambar program NOT gate
TENTANGPROGRAM:
Ada empatbuahkomponenpentingpadaprogramANDgate berbedahalnyadengankomponen
NOT gate yang hanyamempunyai satu textBox,hal ini dikarenakangerbangorhanyamemilikisatu
inputanyangakan dimasukkandalamtextbox.
1. Tombol kirim.
2. Tombol Clear.
3. textBox
Penjelasan:
1. Tombol kirimberfungsi untukmenghidupkanLEDpada rangkaianelektronikayangterhubungke
port parallel sesuai denganbityangadapada logikayangsudahdiisi padaTombol kirim.
2. Fungsi textbox bergunauntukmemasukaninputanankabiner1/0layaknyagerbanglogikayang
diberi aktivtinggi danaktivrendah.
3. Fungsi tombol ClearbiladitekanakanmengubahLED padarangkaianmenjadi mati.
http://intelegenci.blogspot.com
ALGORITMA PROGRAM:
ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG AND
T
Y
Mulai
Data = “255”
Clear = “0”
Output= data
“LED HIDUP”
Selesai
Output= Clear
“LED MATI”
textBox1 = “1”
textBox2 =“1”
http://intelegenci.blogspot.com
Data = “255”
Clear = “0”
textBox1 =“1”
textBox2 =“1”
Output= Clear
“LED MATI”
Output= data
“LED HIDUP”
Selesai
textBox1 =“0”
textBox2 =“0”
ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOR
T T
Y Y
Mulai
http://intelegenci.blogspot.com
textBox1 =“0”
textBox2 =“0”
Output = Data
“LED HIDUP”
Output = Clear
“LED MATI”
Selesai
ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG OR
T
Y
Mulai
Data = “255”
Clear = “0”
http://intelegenci.blogspot.com
textBox1 = “0”
Output = CLEAR
“LED MATI”
Output = Data
“LED HIDUP”
Selesai
ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOT
T
Y
Mulai
Data = “255”
Clear = “0”
http://intelegenci.blogspot.com
Output = CLEAR
“LED MATI”
Output = Data
“LED HIDUP”
Selesai
textBox1 =“0”
textBox2 =“1”
textBox1 =“1”
textBox2 =“0”
ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG XOR
T T
Y Y
Mulai
Data = “255”
Clear = “0”
http://intelegenci.blogspot.com
SOURCE CODE PROGRAM:
SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG AND
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
const string data = "255";
const string clear = "0";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "1") if (textBox2.Text == "1")
{
LPT.Output(0x378, Int32.Parse(data));
}
else
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
}
private void button2_Click(object sender, EventArgs e)
{
LPT.Output(0x378, Int32.Parse(clear));
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
e)
{
System.Diagnostics.Process.Start("http://intelegenci.blogspot.com");
}
http://intelegenci.blogspot.com
}
}
SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOR
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
const string data = "255";
const string clear = "0";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "1") if (textBox2.Text == "1")
{
LPT.Output(0x378, Int32.Parse(data));
}
else
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
if (textBox1.Text == "0") if (textBox2.Text == "0")
{
LPT.Output(0x378, Int32.Parse(data));
}
else
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
}
private void button2_Click(object sender, EventArgs e)
{
LPT.Output(0x378, Int32.Parse(clear));
}
http://intelegenci.blogspot.com
private void Form1_Load(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
e)
{
System.Diagnostics.Process.Start("http://intelegenci.blogspot.com");
}
}
}
SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG OR
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
const string data = "255";
const string clear = "0";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "0" & textBox2.Text == "0")
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
else
{
LPT.Output(0x378, Int32.Parse(data));
}
http://intelegenci.blogspot.com
}
private void button2_Click(object sender, EventArgs e)
{
LPT.Output(0x378, Int32.Parse(clear));
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
e)
{
System.Diagnostics.Process.Start("http://intelegenci.blogspot.com");
}
}
}
SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOT
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
const string data = "255";
const string clear = "0";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "0")
{
LPT.Output(0x378, Int32.Parse(data));
http://intelegenci.blogspot.com
}
else
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
LPT.Output(0x378, Int32.Parse(clear));
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
e)
{
System.Diagnostics.Process.Start("http://intelegenci.blogspot.com");
}
}
}
SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG XOR
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
const string data = "255";
const string clear = "0";
public Form1()
{
InitializeComponent();
http://intelegenci.blogspot.com
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == "1") if (textBox2.Text == "0")
{
LPT.Output(0x378, Int32.Parse(data));
}
else
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
if (textBox1.Text == "0") if (textBox2.Text == "1")
{
LPT.Output(0x378, Int32.Parse(data));
}
else
{
LPT.Output(0x378, Int32.Parse(clear));
MessageBox.Show("Led Mati");
}
}
private void button2_Click(object sender, EventArgs e)
{
LPT.Output(0x378, Int32.Parse(clear));
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs
e)
{
System.Diagnostics.Process.Start("http://intelegenci.blogspot.com");
}
}
}

More Related Content

What's hot

Java File
Java FileJava File
Java File
Archita Misra
 
Function work in JavaScript
Function work in JavaScriptFunction work in JavaScript
Function work in JavaScript
Rhio Kim
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
ysolanki78
 
Isomorphic Reactive Programming
Isomorphic Reactive ProgrammingIsomorphic Reactive Programming
Isomorphic Reactive Programming
Giorgio Natili
 
FPGA training session generic package and funtions of VHDL by Digitronix Nepal
FPGA training session generic package and funtions of VHDL by Digitronix NepalFPGA training session generic package and funtions of VHDL by Digitronix Nepal
FPGA training session generic package and funtions of VHDL by Digitronix Nepal
Krishna Gaihre
 
srgoc
srgocsrgoc
Chapter11 graphical components
Chapter11 graphical componentsChapter11 graphical components
Chapter11 graphical components
Arifa Fatima
 
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindia dotnet development  chapter 14 event-driven programmingSynapseindia dotnet development  chapter 14 event-driven programming
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindiappsdevelopment
 
Python lecture 03
Python lecture 03Python lecture 03
Python lecture 03
Tanwir Zaman
 
Programs of java
Programs of javaPrograms of java
Programs of java
shafiq sangi
 
Java
JavaJava
JAVA AND MYSQL QUERIES
JAVA AND MYSQL QUERIES JAVA AND MYSQL QUERIES
JAVA AND MYSQL QUERIES
Aditya Shah
 
Advance Java Programming (CM5I) 2.Swing
Advance Java Programming (CM5I) 2.SwingAdvance Java Programming (CM5I) 2.Swing
Advance Java Programming (CM5I) 2.Swing
Payal Dungarwal
 
Generics in .NET, C++ and Java
Generics in .NET, C++ and JavaGenerics in .NET, C++ and Java
Generics in .NET, C++ and Java
Sasha Goldshtein
 

What's hot (14)

Java File
Java FileJava File
Java File
 
Function work in JavaScript
Function work in JavaScriptFunction work in JavaScript
Function work in JavaScript
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 
Isomorphic Reactive Programming
Isomorphic Reactive ProgrammingIsomorphic Reactive Programming
Isomorphic Reactive Programming
 
FPGA training session generic package and funtions of VHDL by Digitronix Nepal
FPGA training session generic package and funtions of VHDL by Digitronix NepalFPGA training session generic package and funtions of VHDL by Digitronix Nepal
FPGA training session generic package and funtions of VHDL by Digitronix Nepal
 
srgoc
srgocsrgoc
srgoc
 
Chapter11 graphical components
Chapter11 graphical componentsChapter11 graphical components
Chapter11 graphical components
 
Synapseindia dotnet development chapter 14 event-driven programming
Synapseindia dotnet development  chapter 14 event-driven programmingSynapseindia dotnet development  chapter 14 event-driven programming
Synapseindia dotnet development chapter 14 event-driven programming
 
Python lecture 03
Python lecture 03Python lecture 03
Python lecture 03
 
Programs of java
Programs of javaPrograms of java
Programs of java
 
Java
JavaJava
Java
 
JAVA AND MYSQL QUERIES
JAVA AND MYSQL QUERIES JAVA AND MYSQL QUERIES
JAVA AND MYSQL QUERIES
 
Advance Java Programming (CM5I) 2.Swing
Advance Java Programming (CM5I) 2.SwingAdvance Java Programming (CM5I) 2.Swing
Advance Java Programming (CM5I) 2.Swing
 
Generics in .NET, C++ and Java
Generics in .NET, C++ and JavaGenerics in .NET, C++ and Java
Generics in .NET, C++ and Java
 

Viewers also liked

Young Adults And On Line Privacy
Young Adults And On Line PrivacyYoung Adults And On Line Privacy
Young Adults And On Line Privacy
Recrue
 
Program parallel port sebagai saklar dan indikasi menyala nya led
Program parallel port sebagai saklar dan indikasi menyala nya ledProgram parallel port sebagai saklar dan indikasi menyala nya led
Program parallel port sebagai saklar dan indikasi menyala nya led
arri adhy
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
Broward County Schools
 
Government Branding In Second Life®
Government Branding In Second Life®Government Branding In Second Life®
Government Branding In Second Life®
spexposition
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
Broward County Schools
 
Inquiry Appendix 2010 Final
Inquiry Appendix 2010 FinalInquiry Appendix 2010 Final
Inquiry Appendix 2010 Final
Cancer Society Auckland
 
Submission Inquiry Final Copy 270110
Submission Inquiry Final Copy 270110Submission Inquiry Final Copy 270110
Submission Inquiry Final Copy 270110
Cancer Society Auckland
 
ILS Allmänt
ILS AllmäntILS Allmänt
ILS Allmänt
Tomas Ternstrom
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
Broward County Schools
 
Working in groups [In Swedish]
Working in groups [In Swedish]Working in groups [In Swedish]
Working in groups [In Swedish]Tomas Ternstrom
 
Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...
Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...
Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...
arri adhy
 

Viewers also liked (11)

Young Adults And On Line Privacy
Young Adults And On Line PrivacyYoung Adults And On Line Privacy
Young Adults And On Line Privacy
 
Program parallel port sebagai saklar dan indikasi menyala nya led
Program parallel port sebagai saklar dan indikasi menyala nya ledProgram parallel port sebagai saklar dan indikasi menyala nya led
Program parallel port sebagai saklar dan indikasi menyala nya led
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Government Branding In Second Life®
Government Branding In Second Life®Government Branding In Second Life®
Government Branding In Second Life®
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Inquiry Appendix 2010 Final
Inquiry Appendix 2010 FinalInquiry Appendix 2010 Final
Inquiry Appendix 2010 Final
 
Submission Inquiry Final Copy 270110
Submission Inquiry Final Copy 270110Submission Inquiry Final Copy 270110
Submission Inquiry Final Copy 270110
 
ILS Allmänt
ILS AllmäntILS Allmänt
ILS Allmänt
 
Chapter10 Revised
Chapter10 RevisedChapter10 Revised
Chapter10 Revised
 
Working in groups [In Swedish]
Working in groups [In Swedish]Working in groups [In Swedish]
Working in groups [In Swedish]
 
Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...
Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...
Rancang bangun keamanan portal jalan komplek perumahan dengan notifikasi buny...
 

Similar to Program parallel port sebagai gerbang logika

Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
zynofustechnology
 
C++ Windows Forms L06 - Utlitity and Strings
C++ Windows Forms L06 - Utlitity and StringsC++ Windows Forms L06 - Utlitity and Strings
C++ Windows Forms L06 - Utlitity and Strings
Mohammad Shaker
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
KINGZzofYouTube
 
Ingles 2do parcial
Ingles   2do parcialIngles   2do parcial
Ingles 2do parcial
Harry Ostaiza
 
Stackpirt20170222
Stackpirt20170222Stackpirt20170222
Stackpirt20170222
Sharon Liu
 
Tutorial 6.docx
Tutorial 6.docxTutorial 6.docx
Tutorial 6.docx
KrishnaAntala
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithmsCP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
Sheba41
 

Similar to Program parallel port sebagai gerbang logika (7)

Python Interview Questions For Experienced
Python Interview Questions For ExperiencedPython Interview Questions For Experienced
Python Interview Questions For Experienced
 
C++ Windows Forms L06 - Utlitity and Strings
C++ Windows Forms L06 - Utlitity and StringsC++ Windows Forms L06 - Utlitity and Strings
C++ Windows Forms L06 - Utlitity and Strings
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
 
Ingles 2do parcial
Ingles   2do parcialIngles   2do parcial
Ingles 2do parcial
 
Stackpirt20170222
Stackpirt20170222Stackpirt20170222
Stackpirt20170222
 
Tutorial 6.docx
Tutorial 6.docxTutorial 6.docx
Tutorial 6.docx
 
CP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithmsCP4151 Advanced data structures and algorithms
CP4151 Advanced data structures and algorithms
 

Recently uploaded

Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 

Recently uploaded (20)

Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 

Program parallel port sebagai gerbang logika

  • 1. http://intelegenci.blogspot.com PROGRAMPARALLEL PORT SEBAGAI GERBANG LOGIKA Gambar program ANDgate Gambar program NOT gate TENTANGPROGRAM: Ada empatbuahkomponenpentingpadaprogramANDgate berbedahalnyadengankomponen NOT gate yang hanyamempunyai satu textBox,hal ini dikarenakangerbangorhanyamemilikisatu inputanyangakan dimasukkandalamtextbox. 1. Tombol kirim. 2. Tombol Clear. 3. textBox Penjelasan: 1. Tombol kirimberfungsi untukmenghidupkanLEDpada rangkaianelektronikayangterhubungke port parallel sesuai denganbityangadapada logikayangsudahdiisi padaTombol kirim. 2. Fungsi textbox bergunauntukmemasukaninputanankabiner1/0layaknyagerbanglogikayang diberi aktivtinggi danaktivrendah. 3. Fungsi tombol ClearbiladitekanakanmengubahLED padarangkaianmenjadi mati.
  • 2. http://intelegenci.blogspot.com ALGORITMA PROGRAM: ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG AND T Y Mulai Data = “255” Clear = “0” Output= data “LED HIDUP” Selesai Output= Clear “LED MATI” textBox1 = “1” textBox2 =“1”
  • 3. http://intelegenci.blogspot.com Data = “255” Clear = “0” textBox1 =“1” textBox2 =“1” Output= Clear “LED MATI” Output= data “LED HIDUP” Selesai textBox1 =“0” textBox2 =“0” ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOR T T Y Y Mulai
  • 4. http://intelegenci.blogspot.com textBox1 =“0” textBox2 =“0” Output = Data “LED HIDUP” Output = Clear “LED MATI” Selesai ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG OR T Y Mulai Data = “255” Clear = “0”
  • 5. http://intelegenci.blogspot.com textBox1 = “0” Output = CLEAR “LED MATI” Output = Data “LED HIDUP” Selesai ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOT T Y Mulai Data = “255” Clear = “0”
  • 6. http://intelegenci.blogspot.com Output = CLEAR “LED MATI” Output = Data “LED HIDUP” Selesai textBox1 =“0” textBox2 =“1” textBox1 =“1” textBox2 =“0” ALGORITMA PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG XOR T T Y Y Mulai Data = “255” Clear = “0”
  • 7. http://intelegenci.blogspot.com SOURCE CODE PROGRAM: SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG AND using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { const string data = "255"; const string clear = "0"; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "1") if (textBox2.Text == "1") { LPT.Output(0x378, Int32.Parse(data)); } else { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } } private void button2_Click(object sender, EventArgs e) { LPT.Output(0x378, Int32.Parse(clear)); } private void Form1_Load(object sender, EventArgs e) { } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("http://intelegenci.blogspot.com"); }
  • 8. http://intelegenci.blogspot.com } } SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOR using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { const string data = "255"; const string clear = "0"; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "1") if (textBox2.Text == "1") { LPT.Output(0x378, Int32.Parse(data)); } else { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } if (textBox1.Text == "0") if (textBox2.Text == "0") { LPT.Output(0x378, Int32.Parse(data)); } else { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } } private void button2_Click(object sender, EventArgs e) { LPT.Output(0x378, Int32.Parse(clear)); }
  • 9. http://intelegenci.blogspot.com private void Form1_Load(object sender, EventArgs e) { } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("http://intelegenci.blogspot.com"); } } } SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG OR using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { const string data = "255"; const string clear = "0"; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "0" & textBox2.Text == "0") { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } else { LPT.Output(0x378, Int32.Parse(data)); }
  • 10. http://intelegenci.blogspot.com } private void button2_Click(object sender, EventArgs e) { LPT.Output(0x378, Int32.Parse(clear)); } private void Form1_Load(object sender, EventArgs e) { } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("http://intelegenci.blogspot.com"); } } } SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG NOT using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { const string data = "255"; const string clear = "0"; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "0") { LPT.Output(0x378, Int32.Parse(data));
  • 11. http://intelegenci.blogspot.com } else { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } } private void Form1_Load(object sender, EventArgs e) { } private void button2_Click(object sender, EventArgs e) { LPT.Output(0x378, Int32.Parse(clear)); } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("http://intelegenci.blogspot.com"); } } } SOURCE CODE PEMROGRAMAN PARALLEL PORT SEBAGAI GERBANG XOR using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { const string data = "255"; const string clear = "0"; public Form1() { InitializeComponent();
  • 12. http://intelegenci.blogspot.com } private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "1") if (textBox2.Text == "0") { LPT.Output(0x378, Int32.Parse(data)); } else { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } if (textBox1.Text == "0") if (textBox2.Text == "1") { LPT.Output(0x378, Int32.Parse(data)); } else { LPT.Output(0x378, Int32.Parse(clear)); MessageBox.Show("Led Mati"); } } private void button2_Click(object sender, EventArgs e) { LPT.Output(0x378, Int32.Parse(clear)); } private void Form1_Load(object sender, EventArgs e) { } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("http://intelegenci.blogspot.com"); } } }