임베디드시스템기초 (# ) #11. Serial Communications 한림대학교전자공학과이선우

Size: px
Start display at page:

Download "임베디드시스템기초 (# ) #11. Serial Communications 한림대학교전자공학과이선우"

Transcription

1 임베디드시스템기초 (# ) #11. Serial Communications 한림대학교전자공학과이선우

2 Contents General Serial communications Asynchronous serial communications (UART) 2

3 Parallel vs. Serial 패러럴 ( 병렬 ) 데이터통신 복수의신호선을이용 ( 대개 8/16/32bit) 올바른데이터교환을위해일정한순서-이를프로토콜, 대개 Handshake방식-로진행 Ex) up와외부메모리와의데이터통신방식, PC의패러랠포트 (8bit) 시리얼 ( 직렬 ) 데이터통신 (Serial communication) 하나의신호선을이용따라서일정한시간간격 ( 이를 baudrate) 으로데이터를교환 Ex) PC 시리얼포트 (COM port), 대개의 MCU의주외부와의통신방법으로이용 Ref.: 3

4 Parallel vs. Serial Communication channel or Computer bus Tx Signal Clock Rx Tx Signal D3 1 D2 0 D1 0 D0 0 Rx 4

5 Examples of serial communications Morse code telegraphy RS-232 (low-speed, implemented by serial ports) * RS-423 RS-485 I²C * Serial Peripheral Interface Bus (SPI) * Universal Serial Bus (moderate-speed, for connecting peripherals to computers) FireWire Ethernet Fibre Channel (high-speed, for connecting computers to mass storage devices) InfiniBand (very high speed, broadly comparable in scope to PCI) MIDI control of electronic musical instruments DMX512 control of theatrical lighting SDI-12 industrial sensor protocol Serial Attached SCSI Serial ATA 5

6 Asynchronous vs. Synchronous Asynchronous ( 비동기 ) 통신 송신자와수신자가전송이전에동기화필요없음. 동기를위한별도신호필요없음. 대신송 / 수신자는반드시동일한클럭주파수를알아야하고, 내장된동기신호 (start/stop bit 등 ) 존재해야함항상전송할정보를갖지않는장치, 예로키보드, 마우스등에적합대표적인표준안 : RS-232C, USB 등 Synchronous ( 동기 ) 통신 비동기와같이데이터전송선이외에별도의동기를위한신호선 ( 클럭 signal) 필요주요장점 : 수신자가여러클럭속도에대응가능표준안 : I 2 C ( 필립스 ), SPI(Motorola) 등 6

7 UART: PC side standard (RS-232C) RS-232C 란? EIA (Electronics Industry Association) 표준안단체에서시리얼통신을위해정한전기적표준안이름 A "Space" (logic 0) will be between +3 and +25 Volts. A "Mark" (Logic 1) will be between -3 and -25 Volts. The region between +3 and -3 volts is undefined. An open circuit voltage should never exceed 25 volts. (In Reference to GND) A short circuit current should not exceed 500mA. 표준안에의해 8m 정도까지는보장해야함 ( 실제 RS-232C를사용해서 100m 정도까지가능 ) 18개의다른신호선들정의 : GNC, RXD, TXD, DCD, DTR, CTS, RTS, etc EIA-232D (1987), EIA-232E(1991) 등으로발전됨 * 7

8 Waveform Logical Physical voltage level ASCII K (0x4b) 8

9 Level converter 대개의 MCU 시스템이나디지털시스템은 TTL/CMOS logic level(0,5/3.3v) 로구동되나, RS-232 신호는 12V 범위에서구동되므로전압의변환이필요. 이러한일을담당해주는 chip 들 - 일종의 dc-dc converter- 이개발, 판매되고있음. 가장대표적인칩이 MAXIM 의 MAX-232/233 임. 9

10 대표적인시리얼통신용프로그램 MS Windows OS 의하이퍼터미널 프로그램 보조프로그램 통신 하이퍼터미널 설정방법 Parity bit 전송상의에러를찾기위한방법 2 종류 : even( 짝수 ), odd( 홀 ) parity 패리티비트까지포함하여 1 의개수가짝 / 홀수가되도록결정함. ex. Data 이라면 - Even parity bit=0 - Odd parity bit=1 10

11 Flow control (Handshaking) Software flow control: ASCII XON (17d,11h) & XOFF (19d,13h) code 를이용하여제어 대개버퍼의수가아주적은모뎀과통신시이용 예 : 모뎀버퍼가다차면모뎀은컴퓨터로 XOFF code 전송하여잠시중단시키고, 이후여유가생기면 XON code 전송하여재전송이루어짐. 장점 : 별도의신호선필요없으나속도저하됨 Hardware flow control: 별도의신호선 (RTS/CTS) 이용 컴퓨터가신호를보내기전에 RTS 활성화시키고, 모뎀이수신가능하면 CTS 를활성화시킴. 11

12 MSP430 에서의통신모듈 Universal serial communication interface (USCI) module The USCI_Ax modules support: UART mode Pulse shaping for IrDA communications Automatic baud rate detection for LIN communications SPI mode The USCI_Bx modules support: I 2 C mode SPI mode The universal synchronous/asynchronous receive/transmit (USART) module SPI mode UART mode FG461X series has - USCI_A0 module: SPI (3 or 4 pin), UART, enhanced UART and IrDA. -USCI_B0 : SPI (3 or 4 pin) and I2C. - USART1 : UART (double buffered), SPI 12

13 USCI: UART mode (ch.19) USCI_Ax modules Use 2 pins: UCAxRXD, UCAxTXD Features 7- or 8-bit data with odd, even, or non-parity Independent transmit and receive shift registers Separate transmit and receive buffer registers LSB-first or MSB-first data transmit and receive Built-in idle-line and address-bit communication protocols for multiprocessor systems Receiver start-edge detection for auto-wake up from LPMx modes Programmable baud rate with modulation for fractional baud rate support Status flags for error detection and suppression Status flags for address detection Independent interrupt capability for receive and transmit 13

14 USCI initialize USCI 모듈의초기화 / 재설정순서 UCSWRST( SW reset flag in UCAxCTL1)=1 관련 reg. 들설정 포트설정 UCSWRST=0 수신 / 송신 enable ( 즉 module ON) Enable interrupts (UCAxRXIE, UCAxTXIE) Character format 14

15 Automatic Error detection Receive error condition 15

16 Baud rate generator UART 통신을위해선정해진통신속도 ( 이를 bit rate or baud rate 이라함 ) 를준수해야함. 이를위한클럭발생기를 BR generator 라함. 크게 2 개모드로동작 Low-frequency mode: UCOS16=0, low-freq. clock source 이용, 저전력가능. 높은 bps 에서오차큼. Oversampling mode: UCOS16=1 관련 reg.: Baud rate control reg.: UCAxBR0, UCAxBR1 Modulation control reg.: UCAxMCTL Table 19-4, 19-5 의설정값이용 16

17 USCI Interrupts TX/RX 각각하나씩의인터럽트가존재 : UCAxTXIFG, UCAxRXIFG Transmit 송신완료후새로운데이터를받을준비가되면 ( 즉 UCAxTXBUF empty) TXIFG=1이됨. 새로운데이터를 TXBUF에쓰면자동적으로 reset Receive 1 frame data를수신하고이를 RXBUF에넣은후발생 RXBUF를읽으면자동으로 RXIFG reset USCI_Ax/USCI_Bx 가인터럽트벡터공유 SW 에서어떤모듈이 IRQ 발생했는지구별해야함. 17

18 Example code for USCI-UART operation void main(void) { volatile unsigned int i; WDTCTL = WDTPW+WDTHOLD; // Stop WDT P4SEL = 0x0C0; // P4.7,6 = USCI_A0 RXD/TXD UCA0CTL1 = UCSSEL_2; // SMCLK UCA0BR0 = 0x09; // 1MHz UCA0BR1 = 0x00; // 1MHz UCA0MCTL = 0x02; // Modulation UCA0CTL1 &= ~UCSWRST; // Initialize USCI state IE2 = UCA0RXIE; // Enable USCI_A0 RX interrupt } low_power_mode_0(); // Echo back RXed character, confirm TX buffer is ready first #pragma vector=usciab0rx_vector interrupt void USCIA0RX_ISR (void) { while(!(ifg2&uca0txifg)); UCA0TXBUF = UCA0RXBUF; // TX -> RXed character } 18

CPE 323: MSP430 Serial Communication

CPE 323: MSP430 Serial Communication CPE 323: MSP430 Serial Communication Aleksandar Milenkovic Electrical and Computer Engineering The University of Alabama in Huntsville milenka@ece.uah.edu http://www.ece.uah.edu/~milenka Outline Introduction

More information

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I. University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 08 UART Communication Goals: Learn about UART Communication and the

More information

UNIT IV SERIAL COMMUNICATIONS

UNIT IV SERIAL COMMUNICATIONS UNIT IV SERIAL COMMUNICATIONS Serial channels are the main form of communications used in digital systems nowadays. Diverse forms of serial communication formats and protocols can be found in applications

More information

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Serial Communication. Spring, 2018 Prof. Jungkeun Park Serial Communication Spring, 2018 Prof. Jungkeun Park Serial Communication Serial communication Transfer of data over a single wire for each direction (send / receive) Process of sending data one bit at

More information

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 4.1. Serial data communication basics ----------- 1 4.2. UART ------------------------------------------------ 4 4.3. Serial Peripheral

More information

In-Depth with MSP430 s New Communication Interfaces

In-Depth with MSP430 s New Communication Interfaces In-Depth with MSP430 s New Communication Interfaces Volker Rzehak MSP430 Systems Engineer Texas Instruments 2006 Texas Instruments Inc, Slide 1 Agenda USCI vs. USI Introduction to USI USI communication

More information

Serial Communications

Serial Communications 1 Serial Interfaces 2 Embedded systems often use a serial interface to communicate with other devices. Serial Communications Serial implies that it sends or receives one bit at a time. Serial Interfaces

More information

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016 Serial Interfaces Part 1 ECE 153B Sensor & Peripheral Interface Design Serial Interfaces Simple Serial Interfaces RS-232C (UART) Provides for point to point communications, primarily Among the simplest

More information

Interfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller

Interfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller Interfacing CMA3000-D01 to an MSP430 ultra low-power microcontroller 1 INTRODUCTION The objective of this document is to show how to set up SPI/I2C communication between VTI Technologies CMA3000-D01 digital

More information

Universal Asynchronous Receiver Transmitter Communication

Universal Asynchronous Receiver Transmitter Communication Universal Asynchronous Receiver Transmitter Communication 13 October 2011 Synchronous Serial Standard SPI I 2 C Asynchronous Serial Standard UART Asynchronous Resynchronization Asynchronous Data Transmission

More information

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of this interface, which is widely used for serial communications.

More information

EEL 4924 Electrical Engineering Design (Senior Design) Team Baudiophile. Wireless Headphones

EEL 4924 Electrical Engineering Design (Senior Design) Team Baudiophile. Wireless Headphones EEL 4924 Electrical Engineering Design (Senior Design) Final Design Report 25 April 2012 Team Baudiophile Wireless Headphones Team Members: Name: Stephen Brewer Name: Eli Chen Project Abstract Our project

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Serial Communication Prof. James L. Frankel Harvard University Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Overview of the Serial Protocol Simple protocol for communicating

More information

19.1. Unit 19. Serial Communications

19.1. Unit 19. Serial Communications 9. Unit 9 Serial Communications 9.2 Serial Interfaces Embedded systems often use a serial interface to communicate with other devices. Serial implies that it sends or receives one bit at a time. µc Device

More information

2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II

2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II 2.996/6.971 Biomedical Devices Design Laboratory Lecture 6: Microprocessors II Instructor: Dr. Hong Ma Oct. 1, 2007 Structure of MSP430 Program 1. Declarations 2. main() 1. Watch-dog timer servicing 2.

More information

Serial Interfacing. Asynchronous Frame

Serial Interfacing. Asynchronous Frame Serial Interfacing Serial Data Transfer used by keyboards, plotters, modems and other peripherals with low data transfer rates (low bandwidth) 2 Types: Asynchronous CPU and device are not using a common

More information

CPE/EE 421 Microcomputers

CPE/EE 421 Microcomputers CPE/EE 421 Microcomputers Instructor: Dr Aleksandar Milenkovic Lecture Note S19 CPE/EE 421/521 Microcomputers 1 Course Administration Instructor: URL: Aleksandar Milenkovic milenka@ece.uah.edu www.ece.uah.edu/~milenka

More information

TKT-3500 Microcontroller systems

TKT-3500 Microcontroller systems TKT-3500 Microcontroller systems Lec 3a Serial Input/output Ville Kaseva Department of Computer Systems Tampere University of Technology Fall 2010 Sources Original slides by Erno Salminen Robert Reese,

More information

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features of this USART interface, which is widely used for serial

More information

Real-Time Embedded Systems. CpE-450 Spring 06

Real-Time Embedded Systems. CpE-450 Spring 06 Real-Time Embedded Systems CpE-450 Spring 06 Class 5 Bruce McNair bmcnair@stevens.edu 5-1/42 Interfacing to Embedded Systems Distance 100 m 10 m 1 m 100 cm 10 cm "Transmission line" capacitance ( C) Distance

More information

In this module we ll take a look at the MSP430 communications modules and the protocols that can be implemented over them.

In this module we ll take a look at the MSP430 communications modules and the protocols that can be implemented over them. Communication Introduction In this module we ll take a look at the MSP430 communications modules and the protocols that can be implemented over them. Objectives USART USCI USI MSP430 One Day Workshop -

More information

Universal Asynchronous Receiver / Transmitter (UART)

Universal Asynchronous Receiver / Transmitter (UART) Universal Asynchronous Receiver / Transmitter (UART) MSP432 UART 2 tj MSP432 UART ARM (AMBA Compliant) Asynchronous operation 7/8 bit transmission Master/Slave LSB/MSB first Separate RX/TX registers 4

More information

Sender Receiver Sender

Sender Receiver Sender EEE 410 Microprocessors I Spring 04/05 Lecture Notes # 19 Outline of the Lecture Interfacing the Serial Port Basics of Serial Communication Asynchronous Data Communication and Data Framing RS232 and other

More information

CPE 325: Embedded Systems Laboratory Laboratory #11 Tutorial Analog-to-Digital Converter and Digital-to-Analog Converter

CPE 325: Embedded Systems Laboratory Laboratory #11 Tutorial Analog-to-Digital Converter and Digital-to-Analog Converter CPE 325: Embedded Systems Laboratory Laboratory #11 Tutorial Analog-to-Digital Converter and Digital-to-Analog Converter Aleksandar Milenković Email: milenka@uah.edu Web: http://www.ece.uah.edu/~milenka

More information

Learn how to communicate

Learn how to communicate USART 1 Learn how to communicate Programmed I/O (Software Polling) Interrupt Driven I/O Direct Memory Access (DMA) 2 Programmed I/O (Polling) Processor must read and check I/O ready bits for proper value

More information

USART. USART stands for Universal Synchronous Asynchronous Receiver Transmitter. Full-duplex NRZ asynchronous serial data transmission

USART. USART stands for Universal Synchronous Asynchronous Receiver Transmitter. Full-duplex NRZ asynchronous serial data transmission USART 1 USART USART stands for Universal Synchronous Asynchronous Receiver Transmitter Full-duplex NRZ asynchronous serial data transmission Offer wide ranges of baud rate 2 Serial communication Can support

More information

ELE492 Embedded System Design

ELE492 Embedded System Design Overview ELE9 Embedded System Design Examples of Human I/O Interfaces Types of System Interfaces Use of standards RS Serial Communication Overview of SPI, I C, L, and CAN Class //0 Eugene Chabot Examples

More information

In this module we ll take a look at the MSP430 communications modules and the protocols that can be implemented over them.

In this module we ll take a look at the MSP430 communications modules and the protocols that can be implemented over them. Communication Introduction In this module we ll take a look at the MSP430 communications modules and the protocols that can be implemented over them. Objectives USART USCI USI MSP430 One Day Workshop -

More information

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM Preliminary Single-Chip USB to UART Bridge SINGLE-CHIP USB to UART DATA TRANSFER - Integrated USB Transceiver; No External Resistors Required - Integrated Clock; No External Crystal Required - Integrated

More information

ATmega128. Serial Communication (RS-232C)

ATmega128. Serial Communication (RS-232C) ATmega128 Serial Communication (RS-232C) RS-232C EIA (Electronics Industries Association) DTE (Data Terminal Equipment) DCE (Data Communication Equipment) RS-232C Signals 핀번호 (Pin No.) 명칭 (Signal Name)

More information

ECE2049: Embedded Computing in Engineering Design C Term Spring 2018

ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 ECE2049: Embedded Computing in Engineering Design C Term Spring 2018 Lecture #19: Using SPI The LCD Screen and DAC Reading for Today: User's Manual Ch 35, Davies 101.5, DAC datasheet Reading for Next Class:

More information

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM).

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM). Lab # 6 Serial communications & EEPROM Objectives To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM). Serial Communications Serial

More information

3.1 I-7560 Pin Assignment and Specifications: Introduction

3.1 I-7560 Pin Assignment and Specifications: Introduction 3.1 I-7560 Pin Assignment and Specifications: Introduction The I-7560 adds a Windows serial Com port via its USB connection and is compatible with new & legacy RS-232 devices. USB Plug and Play allows

More information

Serial Peripheral Interface (SPI)

Serial Peripheral Interface (SPI) Serial Peripheral Interface (SPI) MSP432 SPI eusci = enhanced Universal Serial Communications Interface 2 tj MSP432 SPI ARM (AMBA Compliant) 7/8 bit transmission Master/Slave LSB/MSB first Separate RX/TX

More information

Device: MOD This document Version: 1.0. Matches module version: v3 [29 June 2016] Date: 23 October 2017

Device: MOD This document Version: 1.0. Matches module version: v3 [29 June 2016] Date: 23 October 2017 Device: MOD-1025 This document Version: 1.0 Matches module version: v3 [29 June 2016] Date: 23 October 2017 Description: UART (async serial) to I2C adapter module MOD-1025 v3 datasheet Page 2 Contents

More information

Embedded Systems and Software. Serial Communication

Embedded Systems and Software. Serial Communication Embedded Systems and Software Serial Communication Slide 1 Using RESET Pin on AVRs Normally RESET, but can be configured via fuse setting to be general-purpose I/O Slide 2 Disabling RESET Pin on AVRs Normally

More information

Serial Communications

Serial Communications April 2014 7 Serial Communications Objectives - To be familiar with the USART (RS-232) protocol. - To be able to transfer data from PIC-PC, PC-PIC and PIC-PIC. - To test serial communications with virtual

More information

Select a Data Communication Interface

Select a Data Communication Interface Printer Setup and Operation Select a Data Communication Interface Select a Data Communication Interface You may connect your print engine to a computer using one or more of the available connections. The

More information

8051 Timers and Serial Port

8051 Timers and Serial Port 8051 Timers and Serial Port EE4380 Fall 2001 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Timer: Mode 1 Operation (recap) 16 bit counter. Load the

More information

BLE232: Manual Copyright 2014 taskit GmbH

BLE232: Manual Copyright 2014 taskit GmbH BLE232 Manual BLE232: Manual Copyright 2014 taskit GmbH BLE232 All rights to this documentation and to the product(s) described herein are reserved by taskit GmbH. This document was written with care,

More information

PCI Express 16-Port Serial I/O Cards

PCI Express 16-Port Serial I/O Cards PCI Express 16-Port Serial I/O Cards The PCIe-1600 PCI Express 16-port serial I/O card is a plug & play high-speed serial I/O expansion card for PCI Express bus. Connecting to a PCI Express bus on your

More information

Basics of UART Communication

Basics of UART Communication Basics of UART Communication From: Circuit Basics UART stands for Universal Asynchronous Receiver/Transmitter. It s not a communication protocol like SPI and I2C, but a physical circuit in a microcontroller,

More information

EE 354 November 13, 2017 ARM UART Notes

EE 354 November 13, 2017 ARM UART Notes EE 354 November 13, 2017 ARM UART Notes For serial communications you should be familiar with the following terms: UART/USART Baud rate Synchronous/Asynchronous communication Half-Duplex/Full-Duplex The

More information

Interfacing CMR3000-D01 to an MSP430 ultra low-power microcontroller

Interfacing CMR3000-D01 to an MSP430 ultra low-power microcontroller Interfacing CMR3000-D01 to an MSP430 ultra low-power microcontroller 1 INTRODUCTION The objective of this document is to show how to set up SPI/I2C communication between VTI Technologies CMR3000-D01 digital

More information

WIZ140SR/WIZ145SR Datasheet

WIZ140SR/WIZ145SR Datasheet WIZ140SR/WIZ145SR Datasheet ( Version 0.9 ) 2010 WIZnet Co., Ltd. All Rights Reserved. For more information, visit our website at http://www.wiznet.co.kr WIZ140SR/WIZ145SR Datasheet (WIZnet Co., Ltd.)

More information

PCIe Card Selection Guide. PCIe-CAN Card. PCIe-COM Card. Taiwan Pulse Motion Co.,Ltd. Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T

PCIe Card Selection Guide. PCIe-CAN Card. PCIe-COM Card. Taiwan Pulse Motion Co.,Ltd. Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T PCIe Card Selection Guide PCIe-CAN Card Bus Interface PCI Express x 1 LPE-C122 PCE-C122D PCE-C122T Channels I/O Isolation Voltage Baud Rate Terminator Resistor I/O PIN Type 2 Max. 1 Mbps Jumper for 120

More information

EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing

EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing Objectives Explain serial communication protocol Describe data transfer rate and bps rate Describe the main registers used by serial communication

More information

18-349: Introduction to Embedded Real-Time Systems

18-349: Introduction to Embedded Real-Time Systems 18-349: Introduction to Embedded Real-Time Systems Embedded Real-Time Systems Lecture 5: Serial Buses Anthony Rowe Electrical and Computer Engineering Carnegie Mellon University Last Lecture ARM ASM Part

More information

Concepts of Serial Communication

Concepts of Serial Communication Section 6. Serial Communication Communication Using Serial Interfaces: UART and SPI Concepts of Serial Communication Limitations of Parallel Bus Clock skew becomes a serious issue for high speed and long

More information

Module Introduction. PURPOSE: The intent of this module, is to explain several of the important features of Freescale s i.mx1 applications processor.

Module Introduction. PURPOSE: The intent of this module, is to explain several of the important features of Freescale s i.mx1 applications processor. Module Introduction PURPOSE: The intent of this module, is to explain several of the important features of Freescale s i.mx1 applications processor. OBJECTIVES: - Describe the features and functions of

More information

8051SERIAL PORT PROGRAMMING

8051SERIAL PORT PROGRAMMING 8051SERIAL PORT PROGRAMMING Basics of Serial Communication Computers transfer data in two ways: Parallel Often 8 or more lines (wire conductors) are used to transfer data to a device that is only a few

More information

RS 232 Interface. RS 232 is the Serial interface on the PC. Three major wires for the Serial interface: Transmit Pin 2 Receive Pin 3

RS 232 Interface. RS 232 is the Serial interface on the PC. Three major wires for the Serial interface: Transmit Pin 2 Receive Pin 3 RS 232 Interface RS 232 is the Serial interface on the PC Three major wires for the Serial interface: Transmit Pin 2 Receive Pin 3 Note: SR510 switches pins 2,3 internally HP Func. Gen. Requires a null

More information

+ (5~27 VDC) GND. Bluetooth V4.1 BLE RS-232 Serial Adapter. Model: BLE-232B. 1. Package content: BLE RS-232 adapter

+ (5~27 VDC) GND. Bluetooth V4.1 BLE RS-232 Serial Adapter. Model: BLE-232B. 1. Package content: BLE RS-232 adapter Bluetooth V4.1 BLE RS-232 Serial Adapter 1. Package content: BLE RS-232 adapter Model: BLE-232B Package Contents: BLE RS-232 adapter x 1 Screw x2, Screw nut x 2 A4 User manual x 1 Mini USB Cable x 1 White

More information

USB to RS-232/RS422/485. US-101-I USB To Serial Operation Manual

USB to RS-232/RS422/485. US-101-I USB To Serial Operation Manual USB to RS-232/RS422/485 US-101-I USB To Serial Operation Manual First Edition, Jun 2008 Table of Contents 1. Introduction 2 2. Package checklist 3 3. Product Specification 4 4. Product Panel Views Description

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Serial Communication Serial Communication, Slide 1 Lab 5 Administrative Students should start working on this LCD issues Caution on using Reset Line on AVR Project Posted

More information

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed The Multi-I/O expansion board gives users the ability to add analog inputs and outputs, UART capability (for GPS or modem) and isolated high current outputs to the Flashlite 386Ex. Available in several

More information

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-232 Serial Adapter. Model: BLE-232D-E. 1. Package content: BLE RS-232 adapter

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-232 Serial Adapter. Model: BLE-232D-E. 1. Package content: BLE RS-232 adapter 1. Package content: BLE RS-232 adapter Bluetooth V4.2 BLE RS-232 Serial Adapter Model: BLE-232D-E Package Contents: BLE RS-232 adapter x 1 A4 User manual x 1 Mini USB Cable x 1 White Box: 11 x 6 x 5 (cm)

More information

PCI Express 4-Port Industrial Serial I/O Cards

PCI Express 4-Port Industrial Serial I/O Cards PCI Express 4-Port Industrial Serial I/O Cards The PCIe-400i and PCIe-400i-SI PCI Express 4-port industrial serial I/O cards are plug & play high-speed serial I/O expansion cards for the PCI Express bus.

More information

Unit 19 - Serial Communications 19.1

Unit 19 - Serial Communications 19.1 Unit 19 - Serial Communications 19.1 19.2 Serial Interfaces Embedded systems often use a serial interface to communicate with other devices. Serial implies that it sends or receives one bit at a time.

More information

Amarjeet Singh. January 30, 2012

Amarjeet Singh. January 30, 2012 Amarjeet Singh January 30, 2012 Website updated - https://sites.google.com/a/iiitd.ac.in/emsys2012/ Lecture slides, audio from last class Assignment-2 How many of you have already finished it? Final deadline

More information

Serial Communications

Serial Communications Serial Communications p. 1/2 Serial Communications CSEE W4840 Prof. Stephen A. Edwards Columbia University Early Serial Communication Serial Communications p. 2/2 Data Terminal Equipment Serial Communications

More information

=0 Read/Write IER Interrupt Enable Register =1 Read/Write - Divisor Latch High Byte + 2

=0 Read/Write IER Interrupt Enable Register =1 Read/Write - Divisor Latch High Byte + 2 EEE 410 Microprocessors I Spring 04/05 Lecture Notes # 20 Outline of the Lecture Interfacing the Serial Port Serial Port registers Transmitting Serial Data Receiving Serial Data INTERFACING THE SERIAL

More information

Serial Peripheral Interface Bus SPI

Serial Peripheral Interface Bus SPI Serial Peripheral Interface Bus SPI SPI Bus Developed by Motorola in the mid 1980 s Full-duplex, master-slave serial bus suited to data streaming applications for embedded systems Existing peripheral busses

More information

Interfacing Techniques in Embedded Systems

Interfacing Techniques in Embedded Systems Interfacing Techniques in Embedded Systems Hassan M. Bayram Training & Development Department training@uruktech.com www.uruktech.com Introduction Serial and Parallel Communication Serial Vs. Parallel Asynchronous

More information

4.3 Digital Communication

4.3 Digital Communication Data Acquisition & Computer Control 11 4.3 Digital Communication Why digital communication (often termed digital input/output, or DIO)? Because the language of computers (and many peripheral devices) is

More information

SCB-C08 USB to RS232/422/485 Converter

SCB-C08 USB to RS232/422/485 Converter SCB-C08 USB to RS232/422/485 Converter USB Interface RS-232 signal RS-422 signal: RS-485 signal: Cable Type Transmission distance Signal LED Direct power from USB port Power consumption: Compliant with

More information

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is

More information

EMERALD-MM-8P. 8-Channel Software Programmable Protocol. Serial Port PC/104 TM Module. User Manual V1.20

EMERALD-MM-8P. 8-Channel Software Programmable Protocol. Serial Port PC/104 TM Module. User Manual V1.20 EMERALD-MM-8P 8-Channel Software Programmable Protocol Serial Port PC/104 TM Module User Manual V1.20 Copyright 2005, 2008, 2011 DIAMOND SYSTEMS CORPORATION 555 Ellis Street Mountain View, CA 94043 Tel

More information

USB to RS-232/RS422/485. URK-228-I USB To Serial Operation Manual

USB to RS-232/RS422/485. URK-228-I USB To Serial Operation Manual USB to RS-232/RS422/485 URK-228-I USB To Serial Operation Manual First Edition, Feb 2012 Table of Contents 1. Introduction 2 2. Package checklist 3 3. Product Specification 4 4. Product Panel Views Description

More information

Bluetooth V4.1 BLE RS-232 Serial Adapter Model: BLE-232B Bluetooth V4.2 BLE RS-232 Serial Adapter Model: BLE-232C

Bluetooth V4.1 BLE RS-232 Serial Adapter Model: BLE-232B Bluetooth V4.2 BLE RS-232 Serial Adapter Model: BLE-232C Bluetooth V4.1 BLE RS-232 Serial Adapter Model: BLE-232B Bluetooth V4.2 BLE RS-232 Serial Adapter Model: BLE-232C Applications: MSR card reader reader, RFID reader, IC card reader, Specifications: 1. Baud

More information

Serial Communication. Simplex Half-Duplex Duplex

Serial Communication. Simplex Half-Duplex Duplex 1.5. I/O 135 Serial Communication Simplex Half-Duplex Duplex 136 Serial Communication Master-Slave Master Master-Multi-Slave Master Slave Slave Slave (Multi-)Master Multi-Slave Master Slave Slave Slave

More information

Serial Peripheral Interface (SPI) Last updated 8/7/18

Serial Peripheral Interface (SPI) Last updated 8/7/18 Serial Peripheral Interface (SPI) Last updated 8/7/18 MSP432 SPI eusci = enhanced Universal Serial Communications Interface 2 tj MSP432 SPI ARM (AMBA Compliant) 7/8 bit transmission Master/Slave LSB/MSB

More information

TCP Channel Serial Interface RS232 / RS422 cpci Module. User Manual. The Embedded I/O Company. Version 1.0. Issue 1.

TCP Channel Serial Interface RS232 / RS422 cpci Module. User Manual. The Embedded I/O Company. Version 1.0. Issue 1. The Embedded I/O Company TCP866 8 Channel Serial Interface RS232 / RS422 cpci Module Version 1.0 User Manual Issue 1.3 September 2006 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 Phone: +49-(0)4101-4058-0 25469

More information

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4465

Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4465 Maxim > Design Support > Technical Documents > Application Notes > Microcontrollers > APP 4465 Keywords: MAXQ, MAXQ610, UART, USART, serial, serial port APPLICATION NOTE 4465 Using the Serial Port on the

More information

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang, Network Embedded Systems Sensor Networks Fall 2013 Hardware Marcus Chang, mchang@cs.jhu.edu 1 Embedded Systems Designed to do one or a few dedicated and/or specific functions Embedded as part of a complete

More information

Hierarchy of I/O Control Devices

Hierarchy of I/O Control Devices Hierarchy of I/O Control Devices 8155 I/O + Timer 2 Port (A,B), No Bidirectional HS mode (C) 4 mode timer 8253/54 Timer 6 mode timer 8255 I/O 2 Port (A,B) A is Bidirectional HS mode (C) Extra controls

More information

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey 4: Serial I/O CET360 Microprocessor Engineering J. Sumey Introduction serial, i.e. bit-at-a-time, interfacing techniques are useful when parallel interfacing limitations become problematic distance limitations

More information

Serial communication

Serial communication Serial communication CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Serial communication Terminology RS-232 protocol Baud rates Flow control Example Overview Develop functions

More information

TRP-C08. USB to RS232/422/485 Isolated Converter. User s Manual. Printed Sep.2014 Rev 1.4

TRP-C08. USB to RS232/422/485 Isolated Converter. User s Manual. Printed Sep.2014 Rev 1.4 TRP-C08 USB to RS232/422/485 Isolated Converter User s Manual Printed Sep.2014 Rev 1.4 Trycom Technology Co.,Ltd No.35, Zhongxing Rd., Guishan Township, Taoyuan County 333, Taiwan. Tel : 886-3-350-3351

More information

Universität Dortmund. IO and Peripheral Interfaces

Universität Dortmund. IO and Peripheral Interfaces IO and Peripheral Interfaces Microcontroller System Architecture Each MCU (micro-controller unit) is characterized by: Microprocessor 8,16,32 bit architecture Usually simple in-order microarchitecture,

More information

Serial Interfacing. Pulse width of 1 bit

Serial Interfacing. Pulse width of 1 bit ١ ٢ Asynchronous Frame 10 bits 7E1 (7 data bits, even parity, 1 stop bit) Serial Data Transfer used by keyboards, plotters, modems and other peripherals with low data transfer rates (low bandwidth) * *

More information

USB UART 4 click PID: MIKROE Weight: 23 g

USB UART 4 click PID: MIKROE Weight: 23 g USB UART 4 click PID: MIKROE-2810 Weight: 23 g USB UART 4 click features well-known FT232RL USB-to-UART interface module from FDTI. It provides USB to asynchronous serial data transfer interface, allowing

More information

HT42B534-x USB to UART Bridge IC

HT42B534-x USB to UART Bridge IC USB to UART Bridge IC Features Operating Voltage (): 3.3V~5.5V UART pin Voltage (IO): 1.8V~ (Less than voltage) Power down and wake-up functions to reduce power consumption Fully integrated 12MHz oscillator

More information

Asynchronous Data Transfer

Asynchronous Data Transfer Asynchronous Data Transfer In asynchronous data transfer, there is no clock line between the two devices Both devices use internal clocks with the same frequency Both devices agree on how many data bits

More information

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Microcontroller It is essentially a small computer on a chip Like any computer, it has memory,

More information

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

TPMC Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014 The Embedded I/O Company TPMC461 8 Channel Serial Interface RS232/RS422 Version 1.0 User Manual Issue 1.0.6 August 2014 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany www.tews.com Phone:

More information

EZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485)

EZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485) Application Notes (003) Serial Interface (RS232/RS422/RS485) Version 2.0 Sollae Systems Co., Ltd. 1. Overview supports three serial interfaces: RS232, RS422, and RS485. You can select the interface you

More information

Lecture 25 March 23, 2012 Introduction to Serial Communications

Lecture 25 March 23, 2012 Introduction to Serial Communications Lecture 25 March 23, 2012 Introduction to Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications Asynchronous Serial (e.g., SCI, RS-232) Synchronous

More information

Serial Bluetooth Smart Adapter - RS232, Low Energy 4.2 BLE Datasheet and Quick Reference for USBLE232C

Serial Bluetooth Smart Adapter - RS232, Low Energy 4.2 BLE Datasheet and Quick Reference for USBLE232C Serial Bluetooth Smart Adapter - RS232, Low Energy 4.2 BLE Datasheet and Quick Reference for USBLE232C Package content: BLE RS-232 adapter x 1 Screws for DB9 connector x 2 Nuts for DB9 connector x 2 User

More information

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this? Introduction the Serial Communications Huang Sections 9.2, 10.2, 11.2 SCI Block User Guide SPI Block User Guide IIC Block User Guide o Parallel vs Serial Communication o Synchronous and Asynchronous Serial

More information

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-422/485 Serial Adapter. Model: BLE-485C. 1. Package content: BLE RS-422/485 adapter

+ (5~27 VDC) GND. Bluetooth V4.2 BLE RS-422/485 Serial Adapter. Model: BLE-485C. 1. Package content: BLE RS-422/485 adapter Bluetooth V4.2 BLE RS-422/485 Serial Adapter 1. Package content: BLE RS-422/485 adapter Model: BLE-485C Package Contents: BLE 422/485 adapter x 1 Screw x2, Screw nut x 2 A4 User manual x 1 Mini USB Cable

More information

CN310 Microprocessor Systems Design

CN310 Microprocessor Systems Design CN310 Microprocessor Systems Design Microcontroller Nawin Somyat Department of Electrical and Computer Engineering Thammasat University Outline Course Contents 1 Introduction 2 Simple Computer 3 Microprocessor

More information

XR16M V TO 3.63V HIGH PERFORMANCE OCTAL UART WITH 16-BYTE FIFO

XR16M V TO 3.63V HIGH PERFORMANCE OCTAL UART WITH 16-BYTE FIFO 1.62V TO 3.63V HIGH PERFORMANCE OCTAL UART WITH 16-BYTE FIFO MAY 2008 REV. 1.0.0 GENERAL DESCRIPTION The XR16M598 1 (598), is a 1.62V to 3.63V octal Universal Asynchronous Receiver and Transmitter (UART).

More information

TPMC Channel Isolated Serial Interface RS232. Version 1.0. User Manual. Issue August 2017

TPMC Channel Isolated Serial Interface RS232. Version 1.0. User Manual. Issue August 2017 The Embedded I/O Company TPMC860 4 Channel Isolated Serial Interface RS232 Version 1.0 User Manual Issue 1.0.4 August 2017 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101

More information

SUNIX DEL2S00PL meets the PCI Express Base Specification Revision 2.0. It is compatible with PCI

SUNIX DEL2S00PL meets the PCI Express Base Specification Revision 2.0. It is compatible with PCI DEL2S00PL 2-port RS-232 PCI Express Powered Serial Board Introduction SUNIX DEL2S00PL, PCI Express serial communication board, allows users to add or expand two RS-232 COM ports on PC-based system to use

More information

Wiring Section 3-3. NQ-Series communication ports support various types of (serial) communication.

Wiring Section 3-3. NQ-Series communication ports support various types of (serial) communication. 3-3 Wiring NQ-Series models have, besides one power connector, a number of communication ports. Please refer to Table 2.2: Common specifications for NQ-Series and Table 2.3: Specifications per NQ-Series

More information

Introduction & Specifications of Hi-Speed USB to Serial Adapters

Introduction & Specifications of Hi-Speed USB to Serial Adapters Introduction & Specifications of Hi-Speed USB to Serial Adapters The USB Serial Adapters consist of the following models: USB Single Serial Adapter (ES-U-1001, ES-U-1001-A) USB Single Serial Adapter (ES-U-1001-M,

More information

Laboratory 5 Communication Interfaces

Laboratory 5 Communication Interfaces Laboratory 5 Communication Interfaces Embedded electronics refers to the interconnection of circuits (micro-processors or other integrated circuits) with the goal of creating a unified system. In order

More information

TCP Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014

TCP Channel Serial Interface RS232/RS422. Version 1.0. User Manual. Issue August 2014 The Embedded I/O Company TCP462 4 Channel Serial Interface RS232/RS422 Version 1.0 User Manual Issue 1.0.6 August 2014 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101

More information