Parallel Port Howto Programming and access to ports
parallel port base address Firstly some procedure is due to have to be able to determine which is the base address of the port. As it were said previously, the parallel port has its base address in two-way traffic consecutive of memory. Then the content of these directions of memory is due to read, in order to determine if a port exists and which is its direction. MSDOS Under MSDOS the external command can be used debug.exe in the following way: Exec the command: debug.exe, soon appears the symbol - Write after this sign d 40:0008 Depending on the equipment appears the state of the memory of the following form: (the data can vary) 0040:0000 ______________________78 03 00 00 00 00 00 00 The direction of the port is in inverted form (78 03), then the direction is: 0378 in hexadecimal. It is possible to make notice that this direction can be different in other PC. (Write Q to leave debug.exe)
In Turbo Pascal with assembler Program buscar_base; use crt; Var bases: Word; begin asm mov ax, 0040h {Colocar 0040h in reg. Ax} mov is, ax { the segment is with the value of ax} mov ax, es: [if] { in ax the content of the memory direction [0040: 0008]} mov bases, ax; {update the bases variable with the value of ax} end; writeln ("the base address in decimal is: ", bases); end. In Turbo Pascal Program buscar_base; use crt; Var bases: Word; Begin base: =memW [$0040: $0008]; writeln ("the base address in decimal is: ", base); end. Source: http://www.globu.net/pp/english/PP/pp.htm English Version Versión en Ingles del Puerto Paralelo
Parallel Port
A Parallel Port (LPT1 and LPT2)
You cannot directly access the parallel port because the operating system is managing that device. Use the file system. The name of the parallel port is "lpt1:". Open that as an ordinary file for write, write to it, and you will be writing on the parallel port.
Usually, because a serial port doesn't have to deal with the problem of signal skew that can jumble the data on a parallel port and gets worse proportional to distance.
Parallel Port is one in which the entire data byte is transferred at once unlike bit by bit data transfer by a serial port. The parallel port first came into use in 1970s and were solely used for Printing purposes. However, currently they are rarely used.
A serial port only allows a single bit of data through at a time. A parallel port allows multiple bits of data through at a time.
Boy, this is a toughie...I think it's the PARALLEL port, often noted as LPT1. usb
Galley
you can test it by using software& hardware.After connecting the parallel port in your cpu's back side and connect a small wire between 2 & 3 pin on another end of the cable ,then run a c program(in dos) fro transmiter and receiver.If ur parallel port is working then u can see both transmitted data & received data on ur PC.
give the difference between serial port and parallel port
The parallel port was mainly created to be able to send data to a printer. As time passed, it was used for other things, like transferring data between computers with software, or to attach a tape drive. It is called a parallel port because there are at least 8 pins carrying data at the same time, thus enabling it to transmit entire bytes at a time. In a serial port, the data is sent lengthwise, one bit at a time.
A port that handles more than one data bit at a time is a parallel port. The most common example is the printerport (LPT) found on most older computers. The port is designed to transmit and receive 8 bits at a time. Parallel ports are less common on modern computers as the USB port has now replaced it for the majority of applications.