SlideShare a Scribd company logo
PC serial port (RS-232 DE9) pinout


                                      9 pin D-SUB male connector
                                             at the computer




                                        10 pin IDC male connector
                                       at the inside, at motherboard

This RS232C DE-9 (usually miscalled DB-9) port is very common and available at almost any PC, some
Sun (at least Ultra 5/ 10, Blade 100/150) and many other computers. Document includes description of
how PC serial mouse works.
Almost each PC now days equipped with one/two/four serial interface (RS232C). This PC serial port
interface is single ended (connects only two devices with each other), the data rate is less than 20 kbps.
It’s a voltage loop serial interface with full-duplex communication represented by voltage levels with
respect to system ground. A common ground between the PC and the associated device is necessary.

                                   IDC internal
                        DB-9 Pin                Name Dir     Description
                                    pin name*
                            1           1       CD       Carrier Detect
                            2           3       RXD      Receive Data
                            3           5       TXD      Transmit Data
                            4           7       DTR      Data Terminal Ready
                            5           9       GND      System Ground
                            6           2       DSR      Data Set Ready
                            7           4       RTS      Request to Send
                            8           6       CTS      Clear to Send
                            9           8       RI       Ring Indicator

Note : Direction is DTE (Computer) relative DCE (Modem)

* Pin assignment of internal connector may be different for different motherboard models. Pin 10
removed in connector. Internal IDC connector wired to external port with a simple flat ribbon cable.

PC serial port pinout signals explanations
Since PC serial port is based on RS-232 standard, you may find signal details in the RS-232 interface
pinout document.




                                     http://krimo666.mylivepage.com/
Standard RS232 data packet
RS232 data usually is sent as a packet with 7 or 8 bit words, start, stop, parity bits (may be varied).
Sample transmission shown on picture: Start bit (active low, usually between +3v and +15v) followed by
data bits, parity bit (depends on protocol used) and finished by stop bit (used to bring logic high, usually
between -3v and -15v).

Sample serial port device. How serial mouse works
Typical PC mouse controlling system has the following parts: sensors -> mouse controller ->
communication link -> data interface -> driver -> software. Sensors are the movement detectors (typically
optomechanical) which sense the mouse movement and button swiches which sense the button states.
Mouse controller reads the state of those sensors and takes acount of current mouse position. When this
information changes the mouse controller sends a packet of data to the computer serial data interface
controller. The mouse driver in the computer received that data packet and decodes the information from
it and does actions based on the information.

PC serial mouse voltage levels
Mouse takes standard RS-232C output signals (+-12V) as its input signals. Those outputs are in +12V
when mouse is operated. Mouse takes some current from each of the RS-232C port output lines it is
connected (about 10mA). Mouse send data to computer in levels that RS-232C receiver chip in the
computer can understand as RS-232C input levels. Mouse outputs are normally something like +-5V,
0..5V or sometimes +-12V. Mouse electronics normally use +5V voltage.

Serial device hardware implementation
PC serial mouse uses typically DTR and RTS lines for generating +5V power for microcontroller circuit
in the mouse. Because typical optomechanical mouse also needs power for 4 leds in the optocoupler
movevement detectors, there is not much power to loose. A typical approach is to use diodes to take
current from DTR and RTS lines and then feed it through resistor to all of the (infrared) leds in the
movement detectors. The positive power supply usually taken from RTS and DRT lines (just after the
diodes and before the resistor going to leds). The negative supply for transmitter is taken from TD pin.
Typical PC serial port mouse takes 10 mA total current and operates at voltage range of 6-15V. The data
itself in sent using standard asynchronous RS-232C serial format :



                 Start D0 D1 D2 D3 D4 D5 D6 D7 Stop
   Logic 0         ___ ___ ___ ___ ___ ___ ___ ___ ___
  +3..+15V        |   |   |   |   |   |   |   |   |   |
                  |   |   |   |   |   |   |   |   |   |
                  |   |   |   |   |   |   |   |   |   |
   Logic 1        |   |   |   |   |   |   |   |   |   |
  -3..-15V     ___|   |___|___|___|___|___|___|___|___|____




                                     http://krimo666.mylivepage.com/
Serial mouse pinout explanation

                 Pin             Signal                        Description
                 shell Protective Ground
                   3       TD                 Serial data from host to mouse (only for power)
                   2       RD                 Serial data from mouse to host
                   7       RTS                Positive voltage to mouse
                   8       CTS
                   6       DSR
                   5       Signal Ground
                   4       DTR                Positive voltage to mouse and reset/detection

RTS = Request to Send CTS = Clear to Send DSR = Data Set Ready DTR = Data Terminal Ready
When DTR line is toggled, mouse should send one data byte containing letter "M" (ascii 77) to identify
itself. To function correctly, both the RTS and DTR lines must be positive. The lines DTR-DSR and
RTS-CTS must NOT be shorted. Implement the RTS toggle function by setting the RTS line negative and
positive again. The negative pulse width is at least 100ms. After a cold boot, the RTS line is usually set to
a negative level. In this case, setting the RTS line to a positive level is also considered an RTS toggle.

Serial data parameters and packet format
1200bps, 7 databits, 1 stop-bit
Data packet is 3 byte packet. It is send to the computer every time mouse state changes (mouse moves or
keys are pressed/released).

          D7           D6         D5        D4        D3        D2          D1      D0

1.        X            1          LB        RB        Y7        Y6          X7      X6
2.        X            0          X5        X4        X3        X2          X1      X0
3.        X            0          Y5        Y4        Y3        Y2          Y1      Y0

Note : The bit marked with X is 0 if the mouse received with 7 databits and 2 stop bits format. It is also
possible to use 8 databits and 1 stop bit format for receiving. In this case X gets value 1. The safest thing
to get everything working is to use 7 databits and 1 stopbit when receiving mouse information (and if you
are making mouse then send out 7 databits and 2 stop bits).

The byte marked with 1. is send first, then the others. The bit D6 in the first byte is used for syncronizing
the software to mouse packets if it goes out of sync.
LB is the state of the left button (1 means pressed down); RB is the state of the right button (1 means
pressed down); X7-X0 movement in X direction since last packet (signed byte); Y7-Y0 movement in Y
direction since last packet (signed byte).




                                          http://krimo666.mylivepage.com/

More Related Content

What's hot

CC2500 Wireless Trans-receiver Module
CC2500 Wireless Trans-receiver ModuleCC2500 Wireless Trans-receiver Module
CC2500 Wireless Trans-receiver Module
Aarya Technologies
 
8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train
Jitendra Saroj
 
Uart
UartUart
Uart
cs1090211
 
Getting started with digital modes
Getting started with digital modesGetting started with digital modes
Getting started with digital modes
skutaboot
 
Keyboard interrupt
Keyboard interruptKeyboard interrupt
Keyboard interrupt
Tech_MX
 
1444461651 p327 334
1444461651 p327 3341444461651 p327 334
1444461651 p327 334
Alok Tiwari
 
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardCustomizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Bharat Biyani
 
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
IJERA Editor
 
8. Kevin Stanton-report PSUBOT
8. Kevin Stanton-report PSUBOT8. Kevin Stanton-report PSUBOT
8. Kevin Stanton-report PSUBOT
Karl Radestam
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
Devashish Raval
 
Serial communication
Serial communicationSerial communication
Serial communication
Vikas Dongre
 
Ia ec700-c-r1
Ia ec700-c-r1Ia ec700-c-r1
Ia ec700-c-r1
sanzen enterprises
 
Stp defined
Stp definedStp defined
Stp defined
Azeem Ayaz
 
Uart VHDL RTL design tutorial
Uart VHDL RTL design tutorialUart VHDL RTL design tutorial
Uart VHDL RTL design tutorial
Nabil Chouba
 
SCI F28x
SCI F28xSCI F28x
Port Interfacing
Port InterfacingPort Interfacing
Port Interfacing
AKANSHA GURELE
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
iosrjce
 
Man ada102 eng
Man ada102 engMan ada102 eng
Man ada102 eng
Manoj Kumar Rai
 
DVC
DVCDVC
Folheto BCL 21 e 22
Folheto BCL 21 e 22Folheto BCL 21 e 22
Folheto BCL 21 e 22
Leuze electronic Ltda
 

What's hot (20)

CC2500 Wireless Trans-receiver Module
CC2500 Wireless Trans-receiver ModuleCC2500 Wireless Trans-receiver Module
CC2500 Wireless Trans-receiver Module
 
8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train8449972 embedded-systems-and-model-of-metro-train
8449972 embedded-systems-and-model-of-metro-train
 
Uart
UartUart
Uart
 
Getting started with digital modes
Getting started with digital modesGetting started with digital modes
Getting started with digital modes
 
Keyboard interrupt
Keyboard interruptKeyboard interrupt
Keyboard interrupt
 
1444461651 p327 334
1444461651 p327 3341444461651 p327 334
1444461651 p327 334
 
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardCustomizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
 
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
 
8. Kevin Stanton-report PSUBOT
8. Kevin Stanton-report PSUBOT8. Kevin Stanton-report PSUBOT
8. Kevin Stanton-report PSUBOT
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
Serial communication
Serial communicationSerial communication
Serial communication
 
Ia ec700-c-r1
Ia ec700-c-r1Ia ec700-c-r1
Ia ec700-c-r1
 
Stp defined
Stp definedStp defined
Stp defined
 
Uart VHDL RTL design tutorial
Uart VHDL RTL design tutorialUart VHDL RTL design tutorial
Uart VHDL RTL design tutorial
 
SCI F28x
SCI F28xSCI F28x
SCI F28x
 
Port Interfacing
Port InterfacingPort Interfacing
Port Interfacing
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
 
Man ada102 eng
Man ada102 engMan ada102 eng
Man ada102 eng
 
DVC
DVCDVC
DVC
 
Folheto BCL 21 e 22
Folheto BCL 21 e 22Folheto BCL 21 e 22
Folheto BCL 21 e 22
 

Viewers also liked

Álbum Fernanda Marinela
Álbum Fernanda MarinelaÁlbum Fernanda Marinela
Álbum Fernanda Marinela
Fernanda Marinela
 
Carport
CarportCarport
Carport
martin2y
 
Discovery of the wild progenitor of Lima bean: a contribution to local commu...
Discovery of the wild progenitor of Lima bean: a contribution  to local commu...Discovery of the wild progenitor of Lima bean: a contribution  to local commu...
Discovery of the wild progenitor of Lima bean: a contribution to local commu...
CIAT
 
Final reflections
Final reflectionsFinal reflections
Final reflections
capohanka
 
SXSW - Limerick open coffee #LOCC
SXSW  - Limerick open coffee #LOCC SXSW  - Limerick open coffee #LOCC
SXSW - Limerick open coffee #LOCC
Bank of Ireland
 
Activity 03 Text Difficulty
Activity 03 Text DifficultyActivity 03 Text Difficulty
Activity 03 Text Difficulty
englishonecfl
 
Exercício
ExercícioExercício
Exercício
Mário Lima
 
History of Famous Technological Icons
History of Famous Technological IconsHistory of Famous Technological Icons
History of Famous Technological Icons
Praveen Verma
 
Stuti Avenue Surat
Stuti Avenue SuratStuti Avenue Surat
Stuti Avenue Surat
CommonFloor.com
 
What Is Juice?
What Is Juice?What Is Juice?
What Is Juice?
royripper
 
Bloggen mit Wordpress
Bloggen mit WordpressBloggen mit Wordpress
Bloggen mit Wordpress
Patricia Köll
 
CD Jade Blue Goa
CD Jade Blue GoaCD Jade Blue Goa
CD Jade Blue Goa
CommonFloor.com
 
goldman sachs Charter (including primary purposes)
goldman sachs Charter (including primary purposes)goldman sachs Charter (including primary purposes)
goldman sachs Charter (including primary purposes)
finance2
 
Obesidade infantil na adolescencia
Obesidade infantil na adolescenciaObesidade infantil na adolescencia
Obesidade infantil na adolescencia
herculeschacal
 
Apresentação1
Apresentação1Apresentação1
Apresentação1
emfg
 
B1 Relativpronomen
B1 RelativpronomenB1 Relativpronomen
B1 Relativpronomen
Rocio Ramos
 
SC BRAGA-CORUXO
SC BRAGA-CORUXOSC BRAGA-CORUXO
SC BRAGA-CORUXOemfg
 
Development of HEAR at Ulster
Development of HEAR at UlsterDevelopment of HEAR at Ulster
Development of HEAR at Ulster
campone
 

Viewers also liked (18)

Álbum Fernanda Marinela
Álbum Fernanda MarinelaÁlbum Fernanda Marinela
Álbum Fernanda Marinela
 
Carport
CarportCarport
Carport
 
Discovery of the wild progenitor of Lima bean: a contribution to local commu...
Discovery of the wild progenitor of Lima bean: a contribution  to local commu...Discovery of the wild progenitor of Lima bean: a contribution  to local commu...
Discovery of the wild progenitor of Lima bean: a contribution to local commu...
 
Final reflections
Final reflectionsFinal reflections
Final reflections
 
SXSW - Limerick open coffee #LOCC
SXSW  - Limerick open coffee #LOCC SXSW  - Limerick open coffee #LOCC
SXSW - Limerick open coffee #LOCC
 
Activity 03 Text Difficulty
Activity 03 Text DifficultyActivity 03 Text Difficulty
Activity 03 Text Difficulty
 
Exercício
ExercícioExercício
Exercício
 
History of Famous Technological Icons
History of Famous Technological IconsHistory of Famous Technological Icons
History of Famous Technological Icons
 
Stuti Avenue Surat
Stuti Avenue SuratStuti Avenue Surat
Stuti Avenue Surat
 
What Is Juice?
What Is Juice?What Is Juice?
What Is Juice?
 
Bloggen mit Wordpress
Bloggen mit WordpressBloggen mit Wordpress
Bloggen mit Wordpress
 
CD Jade Blue Goa
CD Jade Blue GoaCD Jade Blue Goa
CD Jade Blue Goa
 
goldman sachs Charter (including primary purposes)
goldman sachs Charter (including primary purposes)goldman sachs Charter (including primary purposes)
goldman sachs Charter (including primary purposes)
 
Obesidade infantil na adolescencia
Obesidade infantil na adolescenciaObesidade infantil na adolescencia
Obesidade infantil na adolescencia
 
Apresentação1
Apresentação1Apresentação1
Apresentação1
 
B1 Relativpronomen
B1 RelativpronomenB1 Relativpronomen
B1 Relativpronomen
 
SC BRAGA-CORUXO
SC BRAGA-CORUXOSC BRAGA-CORUXO
SC BRAGA-CORUXO
 
Development of HEAR at Ulster
Development of HEAR at UlsterDevelopment of HEAR at Ulster
Development of HEAR at Ulster
 

Similar to Pc Serial Port Rs 232 De9 Pinout

Rs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface PinoutRs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface Pinout
Sais Abdelkrim
 
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.pptUnit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
aasitworld
 
UART
UARTUART
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
Aneesh Raveendran
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
Elchuri Rajeswari
 
8251 08 Serial
8251 08 Serial8251 08 Serial
8251 08 Serial
Aisu
 
RS235,422,485.pdf
RS235,422,485.pdfRS235,422,485.pdf
RS235,422,485.pdf
NilamadhabanandaPari
 
Serial Port Device Driver
Serial Port Device DriverSerial Port Device Driver
Serial Port Device Driver
Emblogic
 
Project_intership
Project_intershipProject_intership
Project_intership
Wajiha Muzaffar Ali
 
Project_intership
Project_intershipProject_intership
Project_intership
Wajiha Muzaffar Ali
 
Day1
Day1Day1
RS 232
RS 232RS 232
RS 232
Amit Gupta
 
45039336 rs232
45039336 rs23245039336 rs232
45039336 rs232
a_subramaniyam
 
TC-1_2015
TC-1_2015TC-1_2015
TC-1_2015
Ravi Prakash
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
KiranG731731
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
UshaRani289
 
Practical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for IndustryPractical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for Industry
Living Online
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
sinaankhalil
 
Ofdm.pptx
Ofdm.pptxOfdm.pptx
Ofdm.pptx
Akbarali206563
 
underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps
Mohd Sohail
 

Similar to Pc Serial Port Rs 232 De9 Pinout (20)

Rs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface PinoutRs 232 Eia 232 Serial Interface Pinout
Rs 232 Eia 232 Serial Interface Pinout
 
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.pptUnit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
Unit_V_CPU_PC_interfacing_With_External_Devices_RS232_IEEE_488.ppt
 
UART
UARTUART
UART
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
 
8251 08 Serial
8251 08 Serial8251 08 Serial
8251 08 Serial
 
RS235,422,485.pdf
RS235,422,485.pdfRS235,422,485.pdf
RS235,422,485.pdf
 
Serial Port Device Driver
Serial Port Device DriverSerial Port Device Driver
Serial Port Device Driver
 
Project_intership
Project_intershipProject_intership
Project_intership
 
Project_intership
Project_intershipProject_intership
Project_intership
 
Day1
Day1Day1
Day1
 
RS 232
RS 232RS 232
RS 232
 
45039336 rs232
45039336 rs23245039336 rs232
45039336 rs232
 
TC-1_2015
TC-1_2015TC-1_2015
TC-1_2015
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Practical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for IndustryPractical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for Industry
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
 
Ofdm.pptx
Ofdm.pptxOfdm.pptx
Ofdm.pptx
 
underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps underground cable fault location using aruino,gsm&gps
underground cable fault location using aruino,gsm&gps
 

Recently uploaded

Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 

Recently uploaded (20)

Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 

Pc Serial Port Rs 232 De9 Pinout

  • 1. PC serial port (RS-232 DE9) pinout 9 pin D-SUB male connector at the computer 10 pin IDC male connector at the inside, at motherboard This RS232C DE-9 (usually miscalled DB-9) port is very common and available at almost any PC, some Sun (at least Ultra 5/ 10, Blade 100/150) and many other computers. Document includes description of how PC serial mouse works. Almost each PC now days equipped with one/two/four serial interface (RS232C). This PC serial port interface is single ended (connects only two devices with each other), the data rate is less than 20 kbps. It’s a voltage loop serial interface with full-duplex communication represented by voltage levels with respect to system ground. A common ground between the PC and the associated device is necessary. IDC internal DB-9 Pin Name Dir Description pin name* 1 1 CD Carrier Detect 2 3 RXD Receive Data 3 5 TXD Transmit Data 4 7 DTR Data Terminal Ready 5 9 GND System Ground 6 2 DSR Data Set Ready 7 4 RTS Request to Send 8 6 CTS Clear to Send 9 8 RI Ring Indicator Note : Direction is DTE (Computer) relative DCE (Modem) * Pin assignment of internal connector may be different for different motherboard models. Pin 10 removed in connector. Internal IDC connector wired to external port with a simple flat ribbon cable. PC serial port pinout signals explanations Since PC serial port is based on RS-232 standard, you may find signal details in the RS-232 interface pinout document. http://krimo666.mylivepage.com/
  • 2. Standard RS232 data packet RS232 data usually is sent as a packet with 7 or 8 bit words, start, stop, parity bits (may be varied). Sample transmission shown on picture: Start bit (active low, usually between +3v and +15v) followed by data bits, parity bit (depends on protocol used) and finished by stop bit (used to bring logic high, usually between -3v and -15v). Sample serial port device. How serial mouse works Typical PC mouse controlling system has the following parts: sensors -> mouse controller -> communication link -> data interface -> driver -> software. Sensors are the movement detectors (typically optomechanical) which sense the mouse movement and button swiches which sense the button states. Mouse controller reads the state of those sensors and takes acount of current mouse position. When this information changes the mouse controller sends a packet of data to the computer serial data interface controller. The mouse driver in the computer received that data packet and decodes the information from it and does actions based on the information. PC serial mouse voltage levels Mouse takes standard RS-232C output signals (+-12V) as its input signals. Those outputs are in +12V when mouse is operated. Mouse takes some current from each of the RS-232C port output lines it is connected (about 10mA). Mouse send data to computer in levels that RS-232C receiver chip in the computer can understand as RS-232C input levels. Mouse outputs are normally something like +-5V, 0..5V or sometimes +-12V. Mouse electronics normally use +5V voltage. Serial device hardware implementation PC serial mouse uses typically DTR and RTS lines for generating +5V power for microcontroller circuit in the mouse. Because typical optomechanical mouse also needs power for 4 leds in the optocoupler movevement detectors, there is not much power to loose. A typical approach is to use diodes to take current from DTR and RTS lines and then feed it through resistor to all of the (infrared) leds in the movement detectors. The positive power supply usually taken from RTS and DRT lines (just after the diodes and before the resistor going to leds). The negative supply for transmitter is taken from TD pin. Typical PC serial port mouse takes 10 mA total current and operates at voltage range of 6-15V. The data itself in sent using standard asynchronous RS-232C serial format : Start D0 D1 D2 D3 D4 D5 D6 D7 Stop Logic 0 ___ ___ ___ ___ ___ ___ ___ ___ ___ +3..+15V | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Logic 1 | | | | | | | | | | -3..-15V ___| |___|___|___|___|___|___|___|___|____ http://krimo666.mylivepage.com/
  • 3. Serial mouse pinout explanation Pin Signal Description shell Protective Ground 3 TD Serial data from host to mouse (only for power) 2 RD Serial data from mouse to host 7 RTS Positive voltage to mouse 8 CTS 6 DSR 5 Signal Ground 4 DTR Positive voltage to mouse and reset/detection RTS = Request to Send CTS = Clear to Send DSR = Data Set Ready DTR = Data Terminal Ready When DTR line is toggled, mouse should send one data byte containing letter "M" (ascii 77) to identify itself. To function correctly, both the RTS and DTR lines must be positive. The lines DTR-DSR and RTS-CTS must NOT be shorted. Implement the RTS toggle function by setting the RTS line negative and positive again. The negative pulse width is at least 100ms. After a cold boot, the RTS line is usually set to a negative level. In this case, setting the RTS line to a positive level is also considered an RTS toggle. Serial data parameters and packet format 1200bps, 7 databits, 1 stop-bit Data packet is 3 byte packet. It is send to the computer every time mouse state changes (mouse moves or keys are pressed/released). D7 D6 D5 D4 D3 D2 D1 D0 1. X 1 LB RB Y7 Y6 X7 X6 2. X 0 X5 X4 X3 X2 X1 X0 3. X 0 Y5 Y4 Y3 Y2 Y1 Y0 Note : The bit marked with X is 0 if the mouse received with 7 databits and 2 stop bits format. It is also possible to use 8 databits and 1 stop bit format for receiving. In this case X gets value 1. The safest thing to get everything working is to use 7 databits and 1 stopbit when receiving mouse information (and if you are making mouse then send out 7 databits and 2 stop bits). The byte marked with 1. is send first, then the others. The bit D6 in the first byte is used for syncronizing the software to mouse packets if it goes out of sync. LB is the state of the left button (1 means pressed down); RB is the state of the right button (1 means pressed down); X7-X0 movement in X direction since last packet (signed byte); Y7-Y0 movement in Y direction since last packet (signed byte). http://krimo666.mylivepage.com/