|
|
Different Types Of Ports | ||
Discussion by jayron with 6 Replies.
Last Update: May 1, 2008, 8:47 pm ( View Rated (1) ) | |||
![]() |
|
|
Parallel ports can send or receive a byte (8-bit) at a time. Unlike the serial port, these 8-bits are transmitted parallel to each other. Parallel ports come in the form of 25-pin female connector. Parallel ports are popularly used to connect printer, scanner, CD writer, zip drive, external hard disk drive, tape backup drive, etc.
To spare the user botheration of 8-pin, 25-pin, male, female connectors, the USB has been designed. It gives you a single, standardized, easy-to-use way to connect up to 127 devices to a computer. These devices include printers, scanners, mice, joystick, digital camera, web cameras, speakers, telephones, zip drives, network connections, scientific data acquisition devices, etc.
The AGP (Accelerated Graphics Port) port is used to connect to graphic card that provides high-speed video performance typically required in games and other multimedia applications.
QUOTE
8 data lines - Write onlyRegister DB25 LM018L
Bit Pin No Pin No Function
D0 => 2
7 => DB0
D1 => 3
8 => DB1
D2 => 4
9 => DB2
D3 => 5
10 => DB3
D4 => 6
11 => DB4
D5 => 7
12 => DB5
D6 => 8
13 => DB6
D7 => 9
14 => DB7
C2 => 16
6 => E Enable: H,H->L
~C3 => 17
4 => RS Register Select
L: Instr, H: Data
+- 5 => R/W Read/Write
| H: <=, L: =>
Ground 18-25
+- 1 => Vss 0V
2 => Vdd +5V @ 3.0mA max
3 => Vo -
IBM-PC Parallel Port Registers (x unused, - unavailable)
7 6 5 4 3 2 1 0 I/O Port
+---+---+---+---+---+---+---+---+
DATA |DB7|DB6|DB5|DB4|DB3|DB2|DB1|DB0| Base = 278/378/3BC Hex
+---+---+---+---+---+---+---+---+
STATUS | x | x | x | x | x | - | - | - | Base + 1
+---+---+---+---+---+---+---+---+
CONTROL | - | - | - | - |RS | E | x | x | Base + 2
+---+---+---+---+---+---+---+---+
N.B. C0, C1 & C3 are inverted - i.e. C0 = 1 will cause Parallel Port pin 1 to go LOW.
If timing is non-critical (no need to check Busy Flag DB7) then the R/W line - Pin 5 - can be tied to Ground (LOW).
C0 and C1 can be used as select-lines for up to 4 LCD Panels.
You can use the Game Port as a source for 5v
The pin-outs of the IBM-PC GamePort - use any +5v & GND pins
1 XY1 (+5v) 9 XY2 (+5v)
2 Switch 1 10 Switch 4
3 X1 11 X2
4 Switch 1 (GND) 12 Switch 3&4 (GND)
5 Switch 2 (GND) 13 Y2
6 Y1 14 Switch 3
7 Switch 2 15 N.C.
8 N.C.
[note=serverph]COPIED CONTENT from http://www.doc.ic.ac.uk/~ih/doc/lcd/pc_example/conn1.html
quotes added. hosting credits reduced.[/note]
QUOTE
The following sample program in C, showshow you can obtain the addresses of your printer ports.
#include <stdio.h>
#include <dos.h>
void main(void)
{
unsigned int far *ptraddr; /* Pointer to location of Port Addresses */
unsigned int address; /* Address of Port */
int a;
ptraddr=(unsigned int far *)0x00000408;
for (a = 0; a < 3; a++)
{
address = *ptraddr;
if (address == 0)
printf("No port found for LPT%d \n",a+1);
else
printf("Address assigned to LPT%d is %Xh\n",a+1,address);
*ptraddr++;
}
}
[note=serverph]another COPIED CONTENT brought to us by myrmidon via http://www.beyondlogic.org/spp/parallel.htm
quotes added, reduced hosting credits.[/note]
Most of the ports you mentioned are outdated.
Mainly there are 4 ports four outside connections :
RS232 (also known as the old serial port) : Nearly no one uses that since the max speed is 115k.
LPT (parralel port) : was used for printers in the old days has the disadvantage the cables must be short or you get some timing problems.
USB : v1.1 or 2.0 ( the most used interface these days since its fast and easy to connect and available).
Firewire : used for video cammera's , and some external hard drives or DVD drives.
Theoritical is parrallel at lot faster then serial, but nearly nothing outside the computer is parrallel these days , since you have timing problems to get the data simultanious on the 8 lines espacialy over longer distances.
So now everything get serial, also intern in the computer the IDE drives go to SATA (Serial ATA).
On my work, we use RS-232 to connect PC with a small converter (our own design and make), that converts RS-232 to RS-485, and we use that to communicatre with our hardware... We achieve about 10ms response time, using Atmel AtMega128, I believe
RS-232 generaly remains very good, better than USB, when small amounts of data, are supposed to be sent somewhere, at high frequencies...
So as I don't stray off-topic...
Traditionaly COM and LPT ports are no longer used with new commercial hardware, since USB has inherited them...
Speaking of easily accessible ports, there are those 3, COM, LPT and USB, also FireWire or IEEE-1394 (maybe I'm wrong with its designation), and, I believe those are the only ones, easily accessible ports...
There are ofcourse ISA, PCI, AGP, PCI-X (PCI-eXpress), but those are not intended for the kind of abouse those "user" ports are
If there are any other ports anyone knows of, please, write them here, I'm sure there are some of us who would love to know about them...
if a member sees it fit to revive this topic, simply PM an admin or mod to have this re-opened for further discussion.
Different Types Of Ports
Can we find the port number for each protocol?
-reply by aravind
Similar Topics:
4 Different Types Of Love
Sharing Ports That Are Enabled?
Two Lan Ports Problem
Dvd/cd-rw Problem (8)
|
(5) Toshiba laptop AC Power Issue On a Toshiba Satellite A65-s1067
|
Loading...
HOME 






