Serial And Parallel Ports


Published on

Seminar Presentation on Serial and Parallel Ports by Murali Krishna on 27th June, 2009 at Nyros Technologies, kakinada.

Published in: Technology, Business
  • summary but fulfil
    Are you sure you want to  Yes  No
    Your message goes here
  • thanku, it is very easy explanation
    Are you sure you want to  Yes  No
    Your message goes here
  • nice i lik tis ppt
    Are you sure you want to  Yes  No
    Your message goes here
  • exxtra setter300 parallel video interface port cable 37pin conductors the plane i need thank you sir
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Serial And Parallel Ports

  1. 1. Serial and Parallel Ports
  2. 2. Introduction <ul><li>A port is a point at which an external device (peripheral) attaches to the computer system. Ports allow data to be sent/retrieved from the external device. </li></ul><ul><li>Modern computers carry many types of ports For example, mouse , keyboard , serial, USB, game, parallel (printer), microphone, telephone, network etc. </li></ul>
  3. 3. Classification of Ports <ul><li>The most common type of ports are -: </li></ul><ul><li>Serial port – 1bit is transmitted at a time; COM port is a type of serial port . </li></ul><ul><li>Parallel port – Allows multiple bits (E.g. 8 or 16) bits to be transmitted simultaneously. Printers normally connected to this type of port. </li></ul>
  4. 4. Serial Port <ul><li>A serial port is a serial communication physical interface through which information transfers in or out one bit at a time . </li></ul><ul><li>Serial ports represent the first interfaces to allow computers to exchange information with the &quot;outside world&quot;. </li></ul><ul><li>The term serial refers to data sent via a single wire: the bits are sent one after the other </li></ul>
  5. 5. <ul><li>Serial ports also called RS-232. (Recommended Standard) </li></ul><ul><li>In serial ports, there will be two data lines: One transmission and one receive line. To send a data in serial port, it has to be sent one bit after another with some extra bits like start bit, stop bit and parity bit to detect errors. </li></ul><ul><li>Serial connectors generally have 9 or 25 pins. </li></ul><ul><li>Serial port uses a 9- pin connector (type DB-9) </li></ul><ul><li>COM port is a type of serial port </li></ul>
  6. 6. Parallel Ports <ul><li>Parallel data transmission involves sending data simultaneously on several channels (wires). The parallel ports on personal computers can be used to send 8 bits (one octet) simultaneously via 8 wires. </li></ul><ul><li>Parallel ports are easy to program and faster compared to the serial ports. But main disadvantage is it needs more number of transmission lines. Because of this reason parallel ports are not used in long distance communications. </li></ul>
  7. 7. <ul><li>Parallel ports, like serial ports, are built into the mother board. DB25 connectors allow connection to an exterior element (e.g. a printer). </li></ul>
  8. 8. Accessing Serial port using C# <ul><li>// This is a new namespace in .NET 2.0 </li></ul><ul><li>// that contains the SerialPort classusing System.IO.Ports; </li></ul><ul><li>private static void SendSampleData() </li></ul><ul><li>{ </li></ul><ul><li>// Instantiate the communications </li></ul><ul><li>// port with some basic settings </li></ul><ul><li>SerialPort port = new SerialPort( &quot;COM1&quot;, 9600, Parity.None, 8, StopBits.One); </li></ul><ul><li>//Open the port for communications </li></ul><ul><li>port.Open(); </li></ul><ul><li>//Write a string port.Write(&quot;Hello World&quot;); </li></ul><ul><li>// Write a set of bytes </li></ul><ul><li>port.Write(new byte[] {0x0A, 0xE2, 0xFF}, 0, 3); </li></ul><ul><li>// Close the port </li></ul><ul><li>port.Close(); </li></ul><ul><li>} </li></ul>
  9. 9. Conclusion <ul><li>A serial port is a general-purpose interface that can be used for almost any type of device , including modems , mice , and printers (although most printers are connected to a parallel port ). </li></ul>
  10. 10. Thank You