aljaz.ogrin@email.si Razpored signalov na prikljuckih za RS-232C protokol: ------------------------------------------------------- DEC-423 6 Pinski konektor ~~~~~~~~~~~~~~~~~~ [ terminal VT420 ] (!) = velja za terminal - zenski konektor ( vticnica ) +--------------------+ | | | 1 2 3 4 5 6 | | | +-----------+ +--+ +-----+ Pin Mnemonic Smer (!) Signal Opombe ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 DTR out Data terminal ready 2 TXD out Transmit data 3 GND1 --- Ground for DTR & TXD 4 GND2 --- Ground for DSR & RXD 5 RXD in Receive data 6 DSR in Data set ready ############################################################################## DB-9 9 Pinski konektor ~~~~~~~~~~~~~~~~~~ [ IBM PC-AT ] (!) = velja za terminal - moski konektor Pin Mnemonic Smer (!) Signal Opombe ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 CD in Carrier detect 2 RXD in 3 TXD out 4 DTR out 5 SG --- 6 DSR in 7 RTS / RQS out 8 CTS in 9 RI in ############################################################################## DB-25 25 Pinski konektor ~~~~~~~~~~~~~~~~~~~ (!) = velja za terminal - moski konektor * = glavnih 9 prikljuckov Pin Mnemonic Smer (!) Signal Opombe ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1 *** Protective ground 2 *TXD / TD out Transmit data 3 *RXD / RD in Receive data 4 *RTS / RQS out Request to send 5 *CTS in Clear to send 6 *DSR in Data set ready 7 *GND --- Signal ground 8 *RLSD / CD in Receive line signal detect / carrier detect 9 10 11 12 SPDI / SI in Speed indicator (ON = High Speed) 13 14 15 16 17 18 19 20 *DTR out Data terminal ready 21 22 *RI in Ring indicator 23 SPDS out Speed select (ON = > 600bps) 24 25 ############################################################################## Data Lines: TXD out RXD in Primary Handsaking Lines: DTR out DSR in Secondary Handsaking Lines: RTS / RQS out CTS in Modem Lines: CD in RI in Other - Less Commonly Used - Lines (Only on 25-pin connector) ############################################################################## Povezave preko RS-232C protokola: ------------------------------------- DTE = Data Terminal (Terminal, PC-AT,...) <- moski konektor DCE = (Modem, mis, risalna tabla,...) <- zenski konektor 1.) DTE - DCE 1.1) Standardna ~~~~~~~~~~~~~~~~~ DTE: DCE: TXD ----->----- TXD RXD -----<----- RXD DTR ----->----- DTR DSR -----<----- DSR RTS ----->----- RTS <- ni obvezno CTS -----<----- CTS <- ni obvezno CD -----<----- CD <- za modem RI -----<----- RI <- za modem SGND ----------- SGND 1.2) Zmanjsana ~~~~~~~~~~~~~~~~ DTE: DCE: TXD ----->----- TXD RXD -----<----- RXD DTR --| |-- DTR (CD+)DSR --| |-- DSR(+CD) RTS --| |-- RTS CTS --| |-- CTS SGND ----------- SGND 2.) DTE - DTE 2.1) Standardna ~~~~~~~~~~~~~~~~~ DTE 1: DTE 2: TXD ----->----- RXD RXD -----<----- TXD DTR ----->----- DSR (CD+)DSR -----<----- DTR(+CD) RTS ----->----- CTS CTS -----<----- RTS SGND ----------- SGND 2.2) Zmanjsana ~~~~~~~~~~~~~~~~ DTE 1: DCE 2: TXD ----->----- TXD RXD -----<----- RXD DTR --| |-- DTR DSR --| |-- DSR RTS --| |-- RTS CTS --| |-- CTS CD --| |-- CD SGND ----------- SGND ############################################################################## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ############################################################################## Elektricni nivoji RS-232C protokola: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ( data ) ( handsaking ) SPACE = pozitivna napetost = 0 binarno = nadaljuj MARK = negativna napetost = 1 binarno = stop! SPACE: ~~~~~~~~ output: +5 ... +15 V input: +3 ... +15 V MARK: ~~~~~~~ output: -5 ... -15 V input: -3 ... -15 V ..EOF....................................................................EOF..