06/25/091 Computer Interfacing Via the Parallel Port Carlos M. Oppus ECCE Program, AdMU.

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
Advertisements

I/O Interfaces.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
82C55 82C55 Programmable Peripheral Interface Interfacing Part III.
Elements of a Microprocessor system Central processing unit. This performs the arithmetic and logical operations, such as add/subtract, multiply/divide,
Introduction Computer Hardware Jess 2006 EXPANSION CARDS BUS ARCHITECTURE AND CONNECTORS.
COMPUTER ORGANIZATION CHAPTER SUBSYSTEM INTERCONNECTION.
1 The System Unit Lecture 2 CSCI 1405 Introduction to Computer Science Fall 2006.
Programming the ATmega16
EET Advanced Digital Parallel Ports. n In contrast to serial ports, parallel ports ‘present’ all bits at one time. n ‘The parallel port reflects.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 1 Introducing Hardware.
18 Nov 2003Ryan Kittredge Digital Communications Ryan Kittredge Technical Topic Report 19 November 2003.
EE 316 Computer Engineering Junior Lab Lecture on PC Parallel port.
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
Chapter 4 Section 3.
G043 – Lecture 02 Inside A Desktop PC Mr C Johnston ICT Teacher
Parallel Ports of PC Methods of interfacing Examples.
University of Tehran 1 Interface Design Keyboard and Printer Omid Fatemi.
1.5.1 Connecting peripherals. Ports Ports - cont Ps2 – Keyboard and mouse USB(Universal serial bus) – Keyboard, mouse, Printer, Scanner, digital Camera.
Identification And Function
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Input/OUTPUT [I/O Module structure].
Understanding Computers, Ch.31 Chapter 3 The System Unit: Processing and Memory.
MICROPROCESSOR INPUT/OUTPUT
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Lecture 13 Basic I/O Interface
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
1 6 Further System Fundamentals (HL) 6.5 Computer – Peripheral Communication.
EE 316 Computer Engineering Junior Lab Project 1: Traffic Light Controller.
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
Introduction Computer : A First Look How do computers affect us in our daily lives?
Shift Registers pp Shift Registers Capability to shift bits ♦ In one or both directions Why? ♦ Part of standard CPU instruction set ♦ Cheap.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
The PC Game Adapter. The game adapter card typically contains a DB15 connector into which you plug an external device. The digital joystick is probably.
Semester One 2001/2002 Sheffield Hallam University1 What does a PC do? computers collect, process, store, and communicate information Collect via input.
EE 316 Computer Engineering Junior Lab Project 2 Digital Yahtzee.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Basic LED Interface.
Input/Output of a Computer Presented by: Jose Reyes Jose.
Introduction to Computers Section 4B. home Central Processing Unit The computer’s primary processing hardware, which interprets and executes program instructions.
Parts of a Computer. Keyboard: The input device that you use to type letters, numbers, and symbols into a computer.
Ports and Connectors By Karina Hackett Overview: Ports are also known as sockets, and are located at the back of a system unit. Connectors are the parts.
ECE 456 Computer Architecture Lecture #9 – Input/Output Instructor: Dr. Honggang Wang Fall 2013.
PCs ENVIRONMENT and PERIPHERALS Lecture 1. Software The series of instructions that tells the hardware how to perform tasks Software The series of instructions.
COMPUTER COMPONENTS Ms Jennifer Computer Components.
WHY PARALLEL PORT? The simplest computer controlled robot Requires only basic programming skills in C to start off with Can take inputs from your robot.
COMPUTER FUNDAMENTALS David Samuel bhatti
Hardware Components Controller cards Bus Lines Ports Power Supply Secondary Storage.
Input / Output.
Introducing Hardware.
Fundamentals of Computer Engineering
For further information
بسم الله الرحمن الرحيم Table of contents:
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Input/Output.
Parts of a Computer I plan to use this presentation for an introduction at the start of the year. Maybe even create a “word wall” with the cards.
CS703 - Advanced Operating Systems
Physics 413 Chapter 10.
Interfacing Memory Interfacing.
Serial Communication Interface: Using 8251
Identification And Function
Introduction to Computers
The centronics port Interfacing to a PC.
Microprocessor I 7/18/2019.
Presentation transcript:

06/25/091 Computer Interfacing Via the Parallel Port Carlos M. Oppus ECCE Program, AdMU.

06/25/092 Objectives This lecture aims : 1)to give an overview of computer interfacing. 2)to give the basics of interfacing via the parallel port

06/25/093 Introduction Computer Interfacing means connecting different devices to the computer and being able to control or read the status of these devices. There are many ways to achieve computer interfacing. (1) Interfacing by making your own computer interface card. (2) Interfacing via the existing ports in your computers.

06/25/094 Introduction (cont …) namely (a) modem (b) internet (c) serial port (d) game port (e) parallel port (f) USB etc.

06/25/095 Parallel Port Computers are equipped with at least one parallel printer port card. This parallel port can be used as a general input-output device used for manipulating interfaced hardware. The printer port is designated as LPT 1, LPT 2 & LPT 3

06/25/096 Printer Port Parallel (printer) port as a general-purpose set of digital input and output port for interfacing devices. 8-bit digital input/output (I/O) register if an enhanced parallel port is being used otherwise it is just an output register 4-bit output register 4-bit input register (actually 5 inputs)

06/25/097 Parallel (Printer) Port Port ConfigurationI/O Port address LPT 1378H to 37AH LPT 2278H to 27AH

06/25/098 Table 1. Gantt Chart presenting the activities to be undergone for the project year. Table 1. Gantt Chart presenting the activities to be undergone for the project year.  8 output pins accessed via the DATA Port (pins 1 to 9)  5 input pins (one inverted) accessed via the STATUS Port (pins 10, 11, 12, 13, 15)  4 output pins (three inverted) accessed via the CONTROL Port (pins 1, 14, 16, 17) The remaining 8 pins are ground (pins 18 to 25) Parallel (Printer) Port

06/25/099 Parallel (Printer) Port note: high TTL level = 2.4V to 5V low TTL level = 0V to 0.8V (normally 0V) An OUT instruction to port address 378H (278H) and 37A (27A) can write the data directly to the connector pins. An IN instruction to port address 378H (278H) [if an enhanced parallel port is in use] and 379H (279H) can read the data directly from the connector pins.

06/25/ bit I/O if an enhanced parallel port is being used otherwise it is just an output port at address 378H (278H) example: PASCAL: port[$0378] := 255; // outputs to pins 2 to 9 C: outportb(0x378,255); // outputs to pins 2 to 9

06/25/ H (279H)

06/25/0912 PASCAL: data := port[$037A] ; reads port 37AH i.e. reads the TTL levels of pins 13,12,10 & 11 respectively and places the corresponding values at the higher nibble of variable “data”. C: data = inportb(0x37A); reads port 37AH i.e. reads the TTL levels of pins 13,12,10 & 11 respectively and places the corresponding values at the higher nibble of variable “data”. Example

06/25/ AH (27AH)

06/25/0914 PASCAL: Port[$037A] := 4; outputs 0100 to pins 17,16,14 & 1 respectively i.e. pin 17 is high, pin 16 is high, pin 14 is high and pin 1 is high. C: outportb(x037A,4); outputs 0100 to pins 17,16,14 & 1 respectively i.e. pin 17 is high, pin 16 is high, pin 14 is high and pin 1 is high. Example

06/25/0915 vbOut [port],[number] example: 'set port to H = 888 vbOut 888, 11 [variable]=vbInp([port]) example: ‘input from 379H = 889 PortNum%=vbInp(889) For 32bit VB (WIN95IO.DLL), use: Declare Sub vbOut Lib "WIN95IO.DLL" (ByVal nPort As Integer, ByVal nData As Integer) Declare Sub vbOutw Lib "WIN95IO.DLL" (ByVal nPort As Integer, ByVal nData As Integer) Declare Function vbInp Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer Declare Function vbInpw Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer

06/25/0916 Sample Circuits

06/25/0917 Sample Circuits

06/25/0918 Demonstration Appliance controller …

06/25/0919 Circuit Diagram

06/25/0920 Sample Program uses crt; var ch :char; begin clrscr; repeat port[$37A] := $0B; gotoxy(20,20); write('off'); ch := readkey; port[$37A] := $04; gotoxy(20,20); write('on '); ch := upcase(readkey); until ch = 'Q'; port[$37A] := $0B; end