0% found this document useful (1 vote)
258 views

Parallel Port Labview

This document discusses using a parallel port interface with LabView. It provides an introduction to parallel ports and their use for connecting printers to computers. It describes the three registers that make up a parallel port - the data, status, and control registers. It gives the hexadecimal and decimal addresses for each register for the LPT1 port. It provides an example of using the parallel port as an output to control a traffic light circuit. The status register is used as an input to receive signals from external devices into LabView.

Uploaded by

Tacu Alexandru
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
258 views

Parallel Port Labview

This document discusses using a parallel port interface with LabView. It provides an introduction to parallel ports and their use for connecting printers to computers. It describes the three registers that make up a parallel port - the data, status, and control registers. It gives the hexadecimal and decimal addresses for each register for the LPT1 port. It provides an example of using the parallel port as an output to control a traffic light circuit. The status register is used as an input to receive signals from external devices into LabView.

Uploaded by

Tacu Alexandru
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Lab_8 parallel port interface using LabView

Introduction:
A parallel port is a type of interface found on computers (personal and otherwise) for connecting various peripherals. In computing, a parallel port is a parallel communication physical interface. It is also known as a printer port or Centronics port. The IEEE 1284 standard defines the bi-directional version of the port, which allows the transmission and reception of data bits at the same time. The primary use of parallel portis to connect printers to computer and is specifically designed for this purpose. Thus it is often called as printer Port orCentronicsport. Almost, all PCs contain one parallel port, but you can add more by buying and inserting ISA/PCI parallel port cards.

Parallel port consists of three registers. 1- Data register (D0 d7) and we can use it as an output. 2- Status register (S3-S6,S7' ) and it's used as input . 3- Control register (C0',C1',C2,C4' ) and we can use it as an output. # and we have 8-pins as ground pins.

To reach every register we have to know the address of each one.

For LPT1 the addresses are:


1- For data register the address is 378 in hexadecimal or 888 in decimal. 2- For status register the address is 379 in hexadecimal or 889 in decimal. 3- For control register the address is 37a in hexadecimal or 890 in decimal.

using parallel port as output ( from computer to the outside word) Connect the following circuit in the block diagram window, and connect the parallel port cable with the input/output circuit board to your PC, and then run the project to realize the results on the circuit?

Example 2 : building a traffic light. In that example I will connect the red light on D3 and the yellow one on D4 and then the green on D5

Now to activate the red led only I need to write out 00001000 on the output register which equals 8 in decimal , and to activate the yellow led only I need to write 00010000 which equals 16 in decimal, and in the same manner to activate the green led only I need to write 00100000 which equals 32 in decimal. Now I will activate the red led for 7 sec. and then the yellow one to 2 sec and finally the green led for another 7 sec. So the following program shows the desired.

Parallel port as an input (From Outside World to LabView) Connect the following circuit in the block diagram window, and connect the parallel port cable with the input/output circuit board to your PC, and then run the project to realize the results on the LabView?

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy