+ All Categories
Home > Documents > Serial Interfacing -...

Serial Interfacing -...

Date post: 06-Aug-2019
Category:
Upload: ledat
View: 215 times
Download: 0 times
Share this document with a friend
15
.:: Serial Interfacing Eka Maulana, ST, MT, M.Eng Electrical Engineering Department Brawijaya University Teknik Antarmuka Komputer
Transcript
Page 1: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

.:: Serial Interfacing

Eka Maulana, ST, MT, M.Eng

Electrical Engineering Department

Brawijaya University

Teknik Antarmuka Komputer

Page 2: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Overview

• Mengapa serial?

• Kapan komunikasi serial digunakan?

• Persyaratan apa yang diperlukan?

• Jenis-jenis komunikasi serial?

• Bagaimana protokol komunikasi?

• Bagaimana manajemen komunikasi serial?

Page 3: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Problem???

Paralel Vs Serial

Speed Vs Effective

Page 4: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Antarmuka Serial Standar

• RS-232

• I2C

• SPI

• SATA

• USB

• RS-485

• CAN

• One-wire

Jenis komunikasi serial berdasarkan karakteristiknya

Page 5: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

RS-232 Specification (LEVEL)

• TRANSMITTED SIGNAL VOLTAGE

binari 0 : +5 to +15 Vdc (space)

binari 1 : -5 to -15 Vdc (mark)

• RECEIVED SIGNAL VOLTAGE

binari 0 : +3 to +13 Vdc (space)

binari 1 : -3 to -13 Vdc (mark)

Page 6: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

RS-232 Direct Computer Interface

Page 7: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Transmisi data Serial

Data

Page 8: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

RS-232 Signals

(serial port - PC side)

Two independent channels are

established for two-way

communications.

RS-232 can also carry additional

signals used for flow control

(RTS, CTS) and modem control

(DCD, DTR, DSR, RI).

Page 9: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

PIN Functions

Page 10: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

RS-232 Port Addressing

Page 11: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Basic Serial Communication

Page 12: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

KOMUNIKASI SERIAL

• SinkronData dikirim bersama dengan sinyal clock▫ I2C (Inter-Integrated Circuit)▫ SPI (Serial Peripheral Interface) Keyboard, mouse

• AsinkronData dikirim tanpa sinyal clock▫ UART (RS-232) Modem

Page 13: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Profil MAX232

Page 14: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

RS232 Converter Schematic

Page 15: Serial Interfacing - maulana.lecture.ub.ac.idmaulana.lecture.ub.ac.id/files/2012/01/TAK14-Serial_Interfacing.pdf · RS-232 Signals (serial port - PC side) Two independent channels

Tugas

• Rancang sebuah komunikasi serial denganketentuan:1. menggunakan 3-4 devais (master & slave)2. baudrate 96003. speed rate 3Mbps4. buat protokol komunikasi data5. panjang kabel hingga 10 meter6. komunikasi 2 arah

Vise versa (UART)


Recommended