SlideShare a Scribd company logo
1 of 8
Date: 29/10/2013

Al-Azhar University-Gaza
Faculty of Engineering & Information Technology

Microprocessors & Interfacing
(ITCE 3306)

Experiment no. 2
LEDs with parallel port
Prepared By:
Ronza sameer Abu jayyab
No. 20111511
Submitted To:
Eng. Mahmoud Hasanain

First semester
2013/2014

 Introduction :
In this lab we will talk about who can connect any device in our personal
computer and controls by using visual basic program.
 Objective :
Understand how 7-segment display works by generating read out
screen.
Understand and utilize the concept of multiplexing.

 Background:

software programs
Visual Basic is a third-generation event-driven programming language and integrated
development environment (IDE) from Microsoft for its COMprogramming model
first released in 1991. Microsoft intends Visual Basic to be relatively easy to learn and
use. Visual Basic was derived fromBASIC and enables the rapid application
development (RAD) of graphical user interface (GUI) applications, access
to databases using Data Access Objects, Remote Data Objects, or ActiveX Data
Objects, and creation of ActiveX controls and objects. The scripting
language VBScript is a subset of Visual Basic.
A programmer can create an application using the components provided by the Visual
Basic program itself. Programs written in Visual Basic can also use the Windows
API, but doing so requires external function declarations. Though the program has
received criticism for its perceived faults, version 3 of Visual Basic was a runaway
commercial success, and many companies offered third party controls greatly
extending its functionality.

1. ParallelPrinterportbasic:

A. Which is the parallel port of my computer?
See the Figure1 below, parallel port of computer.

Figure(1):
ParallelPrinterPortDB25FemaleConnector

B. Connectors and Cables:
The parallel port of the computer uses a DB-25S female connector with 25 pincontacts, located on the rear panel of the computer. Of the 25 contacts, 17 are used for
the signal lines, and 8 as ground lines [1].The signal lines are divided into three
groups:
1. Control (4 lines).
2. Status (5 lines).
3. Data (8 lines).

C. Port assignment:
Each printer port consists of three port addresses; data, status and control port.
These addresses arein sequential order. That is, if the data port is at address
0x0378,
the
corresponding
statusportisat0x0379andthecontrolportisat0x037a.Thefollowingis typical in table 1.
LPT (line print terminal) is the usual designation for a parallel port connection to a
printer or other device on a personal computer. Most PCs come with one or two
LPT connections designated as LPT1 and LPT2. Some systems support a third,
LPT3. Whatever the number, LPT1 is the usual default. You can add a parallel port
for a second printer or other device by buying and adding a parallel port
adapter card to your computer.

Printer
LPT1
LPT2
LPT3

DataPort
03bch
0378h
0278h

Status
03bdh
0379h
0279h

Control
03beh
037ah
027ah

Table1 : LPT (line print terminal)
Using debug disply the activated port:

Fig_1.1
Fig_1.1 , shows that the data port is activated
Data port [0378]

Breadboard :_
A breadboard is a reusable, solderless device that allows building a
prototype circuit,
Fig_2
 Requirements:
Hardware:
1- Computer .
2- Wires .
3- Breadboard .
4- Switches .

Software:
Visual basic program.
Experiment steps :
• At first we Connect the LEDs circuit then we will connect it with parallel port .
• Connect the Breadboard we have with the computer with power supply.
• Create a visual basic program that do a specific task which we have by it order the
device what to do.
• Adding NTPORT to your Visual Basic program so you can connect your circuit
with parallel port in your PC.
• After the installation of NTPOT.OCX , In order to use NTPORT control in your
Visual Basic project it must be added to the tool box. To do this, select Project from
the Visual Basic main menu. From the Project drop-down menu select Components.
A similar Components dialog box will appear as shown below.

Load NTPORT
The 1st experiment ( lighting 8- LEDs with pp):
This experiment light all LEDs by using our visual basic program
A. The control circuit:

We'll connect LEDs with resister and decoder in Breadboard
by wires then connect this circuit with PP to connect it in
PC.
B. The Code:

Private sub form_load(1)
Ntport1.address= 888
End sub
Private sub command1_click()
Ntport.value = 225
End sub
Private sub command2_click()
Ntport.value = 0
End sub
The 2nd experiment (lighting LEDs with pp):
Light LDEs which turn off by using timer order in visual basic to do it in
sequence.
The Code:

Dim i as integer
Private sub form_load(1)
Ntport1.address= 888
End sub
Private Sub Timer1_Timer()
Timer1.Value = i
If i = 0 Then
i = 255
Else
i=0
End If
End Sub
Private sub command1_click()
Ntport.value = 225
End sub
Private sub command2_click()
Ntport.value = 0
End sub
The 3rd experiment (light LEDs with pp):
In this experiment we have 8 LEDs we want to light it one after the other by using
timer order in visual basic.
The Code:

Dim i as integer
Private sub form_load(1)
Ntport1.address= 888
End sub
Private Sub Timer1_Timer()
ntport1.Value = 2^i
i=i+1
if i=8 then
i=0
End If
End Sub

Referances:
[1]http://en.wikipedia.org/wiki/Visual_Basic
Report 2 microp.(microprocessor)

More Related Content

What's hot

Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manualHari K
 
Software and Hardware Tools for Microprocessors
Software and Hardware Tools for MicroprocessorsSoftware and Hardware Tools for Microprocessors
Software and Hardware Tools for MicroprocessorsDeepak Tathe
 
Training report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLABTraining report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLABAswin Sreeraj
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paperprathik
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference InstructionsRabin BK
 
Design and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpgaDesign and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpgaVLSICS Design
 
Farhanah binti mohd yusof
Farhanah binti mohd yusofFarhanah binti mohd yusof
Farhanah binti mohd yusofFarhanah Yusof
 
introduction to computers
 introduction to computers introduction to computers
introduction to computersDeepak John
 
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)Susam Pal
 
Getting started with Keil uVision 2020
Getting started with Keil uVision 2020Getting started with Keil uVision 2020
Getting started with Keil uVision 2020SaravananVijayakumar4
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computerMartial Kouadio
 
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlB.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlRai University
 
Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1kavya R
 
4bit PC report
4bit PC report4bit PC report
4bit PC reporttanvin
 
Optimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGAOptimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGADr. Pushpa Kotipalli
 
Paper id 27201415
Paper id 27201415Paper id 27201415
Paper id 27201415IJRAT
 

What's hot (19)

Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manual
 
Machine language
Machine languageMachine language
Machine language
 
Software and Hardware Tools for Microprocessors
Software and Hardware Tools for MicroprocessorsSoftware and Hardware Tools for Microprocessors
Software and Hardware Tools for Microprocessors
 
Training report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLABTraining report on Embedded Systems and MATLAB
Training report on Embedded Systems and MATLAB
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paper
 
Memory Reference Instructions
Memory Reference InstructionsMemory Reference Instructions
Memory Reference Instructions
 
Chapter2.1 2-mikroprocessor
Chapter2.1 2-mikroprocessorChapter2.1 2-mikroprocessor
Chapter2.1 2-mikroprocessor
 
Design and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpgaDesign and implementation of complex floating point processor using fpga
Design and implementation of complex floating point processor using fpga
 
Farhanah binti mohd yusof
Farhanah binti mohd yusofFarhanah binti mohd yusof
Farhanah binti mohd yusof
 
introduction to computers
 introduction to computers introduction to computers
introduction to computers
 
16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)16-bit Microprocessor Design (2005)
16-bit Microprocessor Design (2005)
 
Getting started with Keil uVision 2020
Getting started with Keil uVision 2020Getting started with Keil uVision 2020
Getting started with Keil uVision 2020
 
Pt 51 ver-1.3_user_manual
Pt 51 ver-1.3_user_manualPt 51 ver-1.3_user_manual
Pt 51 ver-1.3_user_manual
 
Programming basic computer
Programming basic computerProgramming basic computer
Programming basic computer
 
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed controlB.sc cs-ii-u-3.1-basic computer programming and micro programmed control
B.sc cs-ii-u-3.1-basic computer programming and micro programmed control
 
Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1Be cps-18 cps13or23-module1
Be cps-18 cps13or23-module1
 
4bit PC report
4bit PC report4bit PC report
4bit PC report
 
Optimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGAOptimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGA
 
Paper id 27201415
Paper id 27201415Paper id 27201415
Paper id 27201415
 

Similar to Report 2 microp.(microprocessor)

Larson and toubro
Larson and toubroLarson and toubro
Larson and toubroanoopc1998
 
communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lanAbdosalam Arif
 
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...SANTIAGO PABLO ALBERTO
 
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...IJSRD
 
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...IJSRD
 
A Computer Based Artificial Neural Network Controller with Interactive Audito...
A Computer Based Artificial Neural Network Controller with Interactive Audito...A Computer Based Artificial Neural Network Controller with Interactive Audito...
A Computer Based Artificial Neural Network Controller with Interactive Audito...theijes
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivityQuantum Composers
 
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER cscpconf
 
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET Journal
 
IJSRED-V2I2P57
IJSRED-V2I2P57IJSRED-V2I2P57
IJSRED-V2I2P57IJSRED
 
Notes for banking railway opsc psc preparationx
Notes for  banking railway opsc psc preparationxNotes for  banking railway opsc psc preparationx
Notes for banking railway opsc psc preparationxRAJSEKHAR PEDINA
 
Data Acquisition and Control System for Real Time Applications
Data Acquisition and Control System for Real Time ApplicationsData Acquisition and Control System for Real Time Applications
Data Acquisition and Control System for Real Time Applicationsijsrd.com
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentationSurender Singh
 
IRJET- Navigation Camp – Bot
IRJET-  	  Navigation Camp – BotIRJET-  	  Navigation Camp – Bot
IRJET- Navigation Camp – BotIRJET Journal
 

Similar to Report 2 microp.(microprocessor) (20)

Larson and toubro
Larson and toubroLarson and toubro
Larson and toubro
 
communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lan
 
I010315760
I010315760I010315760
I010315760
 
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
Microcontroladores: Interfaz del microcontrolador 8051 con LCD usando el simu...
 
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
 
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
Control of Industrial Pneumatic & Hydraulic Systems using Serial Communicatio...
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Mp &mc programs
Mp &mc programsMp &mc programs
Mp &mc programs
 
A Computer Based Artificial Neural Network Controller with Interactive Audito...
A Computer Based Artificial Neural Network Controller with Interactive Audito...A Computer Based Artificial Neural Network Controller with Interactive Audito...
A Computer Based Artificial Neural Network Controller with Interactive Audito...
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
 
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
 
GCF
GCFGCF
GCF
 
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
 
IJSRED-V2I2P57
IJSRED-V2I2P57IJSRED-V2I2P57
IJSRED-V2I2P57
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
Notes for banking railway opsc psc preparationx
Notes for  banking railway opsc psc preparationxNotes for  banking railway opsc psc preparationx
Notes for banking railway opsc psc preparationx
 
Data Acquisition and Control System for Real Time Applications
Data Acquisition and Control System for Real Time ApplicationsData Acquisition and Control System for Real Time Applications
Data Acquisition and Control System for Real Time Applications
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
 
IRJET- Navigation Camp – Bot
IRJET-  	  Navigation Camp – BotIRJET-  	  Navigation Camp – Bot
IRJET- Navigation Camp – Bot
 

Recently uploaded

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 

Recently uploaded (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 

Report 2 microp.(microprocessor)

  • 1. Date: 29/10/2013 Al-Azhar University-Gaza Faculty of Engineering & Information Technology Microprocessors & Interfacing (ITCE 3306) Experiment no. 2 LEDs with parallel port Prepared By: Ronza sameer Abu jayyab No. 20111511 Submitted To: Eng. Mahmoud Hasanain First semester 2013/2014  Introduction : In this lab we will talk about who can connect any device in our personal computer and controls by using visual basic program.
  • 2.  Objective : Understand how 7-segment display works by generating read out screen. Understand and utilize the concept of multiplexing.  Background: software programs Visual Basic is a third-generation event-driven programming language and integrated development environment (IDE) from Microsoft for its COMprogramming model first released in 1991. Microsoft intends Visual Basic to be relatively easy to learn and use. Visual Basic was derived fromBASIC and enables the rapid application development (RAD) of graphical user interface (GUI) applications, access to databases using Data Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of ActiveX controls and objects. The scripting language VBScript is a subset of Visual Basic. A programmer can create an application using the components provided by the Visual Basic program itself. Programs written in Visual Basic can also use the Windows API, but doing so requires external function declarations. Though the program has received criticism for its perceived faults, version 3 of Visual Basic was a runaway commercial success, and many companies offered third party controls greatly extending its functionality. 1. ParallelPrinterportbasic: A. Which is the parallel port of my computer? See the Figure1 below, parallel port of computer. Figure(1): ParallelPrinterPortDB25FemaleConnector B. Connectors and Cables: The parallel port of the computer uses a DB-25S female connector with 25 pincontacts, located on the rear panel of the computer. Of the 25 contacts, 17 are used for
  • 3. the signal lines, and 8 as ground lines [1].The signal lines are divided into three groups: 1. Control (4 lines). 2. Status (5 lines). 3. Data (8 lines). C. Port assignment: Each printer port consists of three port addresses; data, status and control port. These addresses arein sequential order. That is, if the data port is at address 0x0378, the corresponding statusportisat0x0379andthecontrolportisat0x037a.Thefollowingis typical in table 1. LPT (line print terminal) is the usual designation for a parallel port connection to a printer or other device on a personal computer. Most PCs come with one or two LPT connections designated as LPT1 and LPT2. Some systems support a third, LPT3. Whatever the number, LPT1 is the usual default. You can add a parallel port for a second printer or other device by buying and adding a parallel port adapter card to your computer. Printer LPT1 LPT2 LPT3 DataPort 03bch 0378h 0278h Status 03bdh 0379h 0279h Control 03beh 037ah 027ah Table1 : LPT (line print terminal) Using debug disply the activated port: Fig_1.1 Fig_1.1 , shows that the data port is activated Data port [0378] Breadboard :_ A breadboard is a reusable, solderless device that allows building a prototype circuit,
  • 4. Fig_2  Requirements: Hardware: 1- Computer . 2- Wires . 3- Breadboard . 4- Switches . Software: Visual basic program. Experiment steps : • At first we Connect the LEDs circuit then we will connect it with parallel port . • Connect the Breadboard we have with the computer with power supply. • Create a visual basic program that do a specific task which we have by it order the device what to do. • Adding NTPORT to your Visual Basic program so you can connect your circuit with parallel port in your PC. • After the installation of NTPOT.OCX , In order to use NTPORT control in your Visual Basic project it must be added to the tool box. To do this, select Project from the Visual Basic main menu. From the Project drop-down menu select Components. A similar Components dialog box will appear as shown below. Load NTPORT
  • 5. The 1st experiment ( lighting 8- LEDs with pp): This experiment light all LEDs by using our visual basic program A. The control circuit: We'll connect LEDs with resister and decoder in Breadboard by wires then connect this circuit with PP to connect it in PC. B. The Code: Private sub form_load(1) Ntport1.address= 888 End sub Private sub command1_click() Ntport.value = 225 End sub Private sub command2_click() Ntport.value = 0 End sub
  • 6. The 2nd experiment (lighting LEDs with pp): Light LDEs which turn off by using timer order in visual basic to do it in sequence. The Code: Dim i as integer Private sub form_load(1) Ntport1.address= 888 End sub Private Sub Timer1_Timer() Timer1.Value = i If i = 0 Then i = 255 Else i=0 End If End Sub Private sub command1_click() Ntport.value = 225 End sub Private sub command2_click() Ntport.value = 0 End sub
  • 7. The 3rd experiment (light LEDs with pp): In this experiment we have 8 LEDs we want to light it one after the other by using timer order in visual basic. The Code: Dim i as integer Private sub form_load(1) Ntport1.address= 888 End sub Private Sub Timer1_Timer() ntport1.Value = 2^i i=i+1 if i=8 then i=0 End If End Sub Referances: [1]http://en.wikipedia.org/wiki/Visual_Basic