LPT PRINTER PARALLEL PORT part-1




1. PREFACE
 
Every PC has one or more LPT printer parallel port adapter. This adapter have several I/O port. In old PC, the parallel port may be set at video adapter card or at separate I/O device card (multi I/O). In the beginning, this port only used for printer device, so the data port (8 bits) only used for sending data to the printer and can not receive data from the outside. Now, everything has changed. Many device were connected to this parallel port, so the design always change time to time, even the characteristic always the same (i.e. new card usually used a new chip design and have more capabilities, like bidirectional data transfer, can be configured to work more faster, etc., etc.). Ok, lets we explore more about it now.

2. SIGNAL NAME & PURPOSE
 
Because the parallel port have many location, so the port also follow this procedure and always standard. For our description, DP refer to printer Data Port, PC refer to Printer Control and PS refer to Printer Status. Tabel-1 shown each port and their function.
 


LPT 0 LPT 1  LPT 2  Operation  Description
3BC Hex  378 Hex  278 Hex  (Read)/Write  Data Port (DP), 8 bits 
3BD Hex  379 Hex  279 Hex  Read only  Printer Status (PS), 5(6) bits 
3BE Hex  37A Hex  27A Hex  Read/Write  Printer Control (PC), 4(6) bits 
Tabel-1. LPT location, function and description.

a. Data Port (DP)
 
DP has 8 bits length. It means that it can be transfer or sending data 8 bits long at a moment time. The old PC has LPT parallel port function only for sending data. Many devices nowadays have attached to this port and can work bidirectional. For examples : scanner device, many storage device like zip drive, etc., etc. This means that this port can be used for sending or receiving data. New card can be configured to work like this (eg:bi-directional port), but old one don't. In the end of this article, you can change the ability of the old card, so that it can be used to receive data. Data bits are naming as DP-0 trought DP-7. For the relation number to the D-25 socket refer to the LPT Connector. DP port can sink 24 mA at logic 0 and can source 2.6 mA at logic 1. Notice that the external device don't try to pull these DP lines to ground for a long period. The latch IC could be burn.

b. Printer Control (PC)
 
PC is used for controlling the function of printer. Only 4 bits used by printer and 1 bit used for interrupt enable flag. The complete description was shown on Figure-1. The interrupt enable bit flag used for handshake operation between computer and printer, so that the device can work with a little time of CPU to interfere. The most important things must be taken if you connect your own device are : the PC-0, PC-1 and PC-3 logic are inverting at socket connector terminal. This means that, when you send logic 1 (high) to this related bit, the logic output terminal is 0 (low). The PC-2 and PC-4 are normal. The PC-5 to PC-7 are not used by the hardware circuit. Note that, PC-4 bit only for the adapter card function. This means this bit does not connect out to the connector terminal. PC port can sink 7 mA at logic 0 and can source 0.6 mA at logic 1. Besides that, in some PC/AT's LPT adapter card, bit PC-5 is used for control direction (and also in bi-directional card). It means that, if this bit is high, DP port can act as input port, the latch output is tri-state. Data from outside can be read from DP port.


c. Printer Status (PS)
 
PS port used for feedback signal from printer to the computer. Only 5 MSB bits are used, the 3 LSB bits not used. The complete description was shown on Figure-2. Only 1 bit is inverting input ie. PS-7 use for busy signal. PS-6 bit use for acknowledge signal This signal used when the printing goes on with interrupt handshake operation. This is a hardware interrupt. In some PC/AT's card and bi-directional card, PS-2 is used to reflex the state of IRQ, weather it is on or off state. This bit only for internal use.


3. CONNECTOR TERMINAL
 
LPT port adapter use a female DB-25 D-shell connector type. The complete connection can be seen in Figure-3. Only 17 terminals be used, and the rest are grounded all. This is a standard terminal connection. The connection are the same for all of the LPT's connector. Figure-4. show the connection between printer to the LPT adapter.



4. PRINTER INTERFACE DESCRIPTION
 
LPT printer parallel interface in PC computer type have specification like this :
  • Data transfer rate : 1000 cps (maximum)
  • Synchronization : by externally-supplied STROBE pulses.
  • Handshaking -ACK or +BUSY signals.
  • Logic level : input data and all interface control signal are compatible with the TTL level.
Generally this specification allways the same for new card design, but the data transfer may vary between one design and another. This type of interface also called CENTRONICS interface and have the data transfer sequence time as shown in Figure-5.


STROBE pulse to read data in. Pulse width must be more than 0.5 us at receiving terminal. The signal level normally high. Read in of data is performed at the low level of this signal. ACK signal is approximately 5 us pulse. Logic low indicates that data has been received and the printer is ready to accept other data. BUSY signal high indicates that the printer can not receive data. This signal becomes high in the following cases :
    • During data entry
    • During printing operation
    • In offline state
    • During printer error status
    Note that : centronics interface only valid for printer timing sequence, and not for other device which used LPT printer adapter.

No comments:

Post a Comment

Labels

PROJECTS 8086 PIN CONFIGURATION 80X86 PROCESSORS TRANSDUCERS 8086 – ARCHITECTURE Hall-Effect Transducers INTEL 8085 OPTICAL MATERIALS BIPOLAR TRANSISTORS INTEL 8255 Optoelectronic Devices Thermistors thevenin's theorem MAXIMUM MODE CONFIGURATION OF 8086 SYSTEM ASSEMBLY LANGUAGE PROGRAMME OF 80X86 PROCESSORS POWER PLANT ENGINEERING PRIME MOVERS 8279 with 8085 MINIMUM MODE CONFIGURATION OF 8086 SYSTEM MISCELLANEOUS DEVICES MODERN ENGINEERING MATERIALS 8085 Processor- Q and A-1 BASIC CONCEPTS OF FLUID MECHANICS OSCILLATORS 8085 Processor- Q and A-2 Features of 8086 PUMPS AND TURBINES 8031/8051 MICROCONTROLLER Chemfet Transducers DIODES FIRST LAW OF THERMODYNAMICS METHOD OF STATEMENTS 8279 with 8086 HIGH VOLTAGE ENGINEERING OVERVOLATGES AND INSULATION COORDINATION Thermocouples 8251A to 8086 ARCHITECTURE OF 8031/8051 Angle-Beam Transducers DATA TRANSFER INSTRUCTIONS IN 8051/8031 INSTRUCTION SET FOR 8051/8031 INTEL 8279 KEYBOARD AND DISPLAY INTERFACES USING 8279 LOGICAL INSTRUCTIONS FOR 8051/8031 Photonic Transducers TECHNOLOGICAL TIPS THREE POINT STARTER 8257 with 8085 ARITHMETIC INSTRUCTIONS IN 8051/8031 LIGHTNING PHENOMENA Photoelectric Detectors Physical Strain Gage Transducers 8259 PROCESSOR APPLICATIONS OF HALL EFFECT BRANCHING INSTRUCTIONS FOR 8051/8031 CPU OF 8031/8051 Capacitive Transducers DECODER Electromagnetic Transducer Hall voltage INTEL 8051 MICROCONTROLLER INTEL 8251A Insulation Resistance Test PINS AND SIGNALS OF 8031/8051 Physical Transducers Resistive Transducer STARTERS Thermocouple Vacuum Gages USART-INTEL 8251A APPLICATIONs OF 8085 MICROPROCESSOR CAPACITANCE Data Transfer Instructions In 8086 Processors EARTH FAULT RELAY ELECTRIC MOTORS ELECTRICAL AND ELECTRONIC INSTRUMENTS ELECTRICAL BREAKDOWN IN GASES FIELD EFFECT TRANSISTOR (FET) INTEL 8257 IONIZATION AND DECAY PROCESSES Inductive Transducers Microprocessor and Microcontroller OVER CURRENT RELAY OVER CURRENT RELAY TESTING METHODS PhotoConductive Detectors PhotoVoltaic Detectors Registers Of 8051/8031 Microcontroller Testing Methods ADC INTERFACE AMPLIFIERS APPLICATIONS OF 8259 EARTH ELECTRODE RESISTANCE MEASUREMENT TESTING METHODS EARTH FAULT RELAY TESTING METHODS Electricity Ferrodynamic Wattmeter Fiber-Optic Transducers IC TESTER IC TESTER part-2 INTERRUPTS Intravascular imaging transducer LIGHTNING ARRESTERS MEASUREMENT SYSTEM Mechanical imaging transducers Mesh Current-2 Millman's Theorem NEGATIVE FEEDBACK Norton's Polarity Test Potentiometric transducers Ratio Test SERIAL DATA COMMUNICATION SFR OF 8051/8031 SOLIDS AND LIQUIDS Speed Control System 8085 Stepper Motor Control System Winding Resistance Test 20 MVA 6-digits 6-digits 7-segment LEDs 7-segment A-to-D A/D ADC ADVANTAGES OF CORONA ALTERNATOR BY POTIER & ASA METHOD ANALOG TO DIGITAL CONVERTER AUXILIARY TRANSFORMER AUXILIARY TRANSFORMER TESTING AUXILIARY TRANSFORMER TESTING METHODS Analog Devices A–D BERNOULLI’S PRINCIPLE BUS BAR BUS BAR TESTING Basic measuring circuits Bernoulli's Equation Bit Manipulation Instruction Buchholz relay test CORONA POWER LOSS CURRENT TRANSFORMER CURRENT TRANSFORMER TESTING Contact resistance test Current to voltage converter DAC INTERFACE DESCRIBE MULTIPLY-EXCITED Digital Storage Oscilloscope Display Driver Circuit E PROMER ELPLUS NT-111 EPROM AND STATIC RAM EXCITED MAGNETIC FIELD Electrical Machines II- Exp NO.1 Energy Meters FACTORS AFFECTING CORONA FLIP FLOPS Fluid Dynamics and Bernoulli's Equation Fluorescence Chemical Transducers Foil Strain Gages HALL EFFECT HIGH VOLTAGE ENGG HV test HYSTERESIS MOTOR Hall co-efficient Hall voltage and Hall Co-efficient High Voltage Insulator Coating Hot-wire anemometer How to Read a Capacitor? IC TESTER part-1 INSTRUMENT TRANSFORMERS Importance of Hall Effect Insulation resistance check Insulator Coating Knee point Test LEDs LEDs Display Driver LEDs Display Driver Circuit LM35 LOGIC CONTROLLER LPT LPT PORT LPT PORT EXPANDER LPT PORT LPT PORT EXTENDER Life Gone? MAGNETIC FIELD MAGNETIC FIELD SYSTEMS METHOD OF STATEMENT FOR TRANSFORMER STABILITY TEST METHODS OF REDUCING CORONA EFFECT MULTIPLY-EXCITED MULTIPLY-EXCITED MAGNETIC FIELD SYSTEMS Mesh Current Mesh Current-1 Moving Iron Instruments Multiplexing Network Theorems Node Voltage Method On-No Load And On Load Condition PLC PORT EXTENDER POTIER & ASA METHOD POWER TRANSFORMER POWER TRANSFORMER TESTING POWER TRANSFORMER TESTING METHODS PROGRAMMABLE LOGIC PROGRAMMABLE LOGIC CONTROLLER Parallel Port EXPANDER Paschen's law Piezoelectric Wave-Propagation Transducers Potential Transformer RADIO INTERFERENCE RECTIFIERS REGULATION OF ALTERNATOR REGULATION OF THREE PHASE ALTERNATOR Read a Capacitor SINGLY-EXCITED SOLIDS AND LIQUIDS Classical gas laws Secondary effects Semiconductor strain gages Speaker Driver Strain Gages Streamer theory Superposition Superposition theorem Swinburne’s Test TMOD TRANSFORMER TESTING METHODS Tape Recorder Three-Phase Wattmeter Transformer Tap Changer Transformer Testing Vector group test Virus Activity Voltage Insulator Coating Voltage To Frequency Converter Voltage to current converter What is analog-to-digital conversion Windows work for Nokia capacitor labels excitation current test magnetic balance voltage to frequency converter wiki electronic frequency converter testing voltage with a multimeter 50 hz voltages voltmeter

Search More Posts

Followers