Real-Time Embedded Systems. CpE-450 Spring 06

Similar documents
Sender Receiver Sender

Serial Communications

Serial Communication. Simplex Half-Duplex Duplex

Serial Communication. Spring, 2018 Prof. Jungkeun Park

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

Serial Communications

ELE492 Embedded System Design

Amarjeet Singh. January 30, 2012

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

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

Universal Asynchronous Receiver Transmitter Communication

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

Introduction to I2C & SPI. Chapter 22

or between microcontrollers)

Interfacing Techniques in Embedded Systems

Serial Communication. Simplex Half-Duplex Duplex

Lecture 25 March 23, 2012 Introduction to Serial Communications

Galep-Adapter DIL-40 => ISP-ASYNC/SYNC Article-No.:

Microcontrollers and Interfacing

EECS 373 Design of Microprocessor-Based Systems

Universität Dortmund. IO and Peripheral Interfaces

XT - NANO - SXL XT-NANO-SXL

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

EECS 373 Design of Microprocessor-Based Systems

Serial Interfacing. Asynchronous Frame

UART Register Set. UART Master Controller. Tx FSM. Rx FSM XMIT FIFO RCVR. i_rx_clk o_intr. o_out1 o_txrdy_n. o_out2 o_rxdy_n i_cs0 i_cs1 i_ads_n

Rayson Bluetooth Module

Prototyping Module Datasheet

EECS 373 Design of Microprocessor-Based Systems

Growing Together Globally Serial Communication Design In Embedded System

Laboratory 5 Communication Interfaces

Appendix A Cable Pinouts

BLE232: Manual Copyright 2014 taskit GmbH

Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications

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

Serial interfaces. Erasmus 2015/2016, WIEiK, PK. Input/Output Port

Cable Pinouts. SRP I/O Module

JED MICROPROCESSORS PTY LTD

User Guide. Date Apr BlueEva+C11/G2. Stollmann. E + V GmbH. User Guide

The Wireless Connectivity Expert

Part Number: PCB-STM32-F4B1 (unpopulated PCB with Discovery module sockets, no other parts) STM32-F4B1 (assembled board, not presently available)

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

Pmod modules are powered by the host via the interface s power and ground pins.

Digital Circuits Part 2 - Communication

Bluetooth was originally started as a project by the Ericsson Company.

Multicommunication Type Identifying Debugging Probe

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

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

EE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave.

Hierarchy of I/O Control Devices

TKT-3500 Microcontroller systems

Dariusz Makowski Department of Microelectronics and Computer Science tel

8051SERIAL PORT PROGRAMMING

UART TO SPI SPECIFICATION

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

RS-232 Connector Pin Assignments

18-349: Introduction to Embedded Real-Time Systems

Hardware Manual PCMCIA DUAL RS EDITION MAY 1999

Unit 19 - Serial Communications 19.1

Hardware Reference. DIL/NetPC DNP/2110 Board Revision 1.0

AN_2901_005 JULY The Teridian 73M2901CE single chip modem implements the V.23 standard according the ITU V.23 recommendation.

RS-232 to Logic Level Adapter with DB9M Connector and Power LED

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

ISDN OEM1. DesignGuide V1.2

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

Arduino Diecimila Pinouts 697B B8D-A50A-61944C26074F

Raspberry Pi - I/O Interfaces

Digital Storage Oscilloscope

Each I2C master has 8-deep transmit and receive FIFOs for efficient data handling. SPI to Dual I2C Masters. Registers

Cable Specifications. Interface Specifications. Fiber-Optic Specifications APPENDIXB

C-DIAS Serial Interface CSI 021

W&T Manual Interface modules W&T

E1 and T1 RJ-48 Cable Pinouts on page 208. Fast Ethernet 12-port Cable Pinouts on page 211

Configurable UART with FIFO ver 2.20

UNC20 Module. User's Manual. D Breisach, Germany D Breisach, Germany Fax +49 (7667)

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

Hardware Manual. PCMCIA 1 Port RS EDITION APRIL 1999

a16450 Features General Description Universal Asynchronous Receiver/Transmitter

PCIe-400 USER S MANUAL

IML 560 USER GUIDE. Low Power 56Kbps Industrial modem. Version 1.2. December 6, AYANTRA Inc.

Basics of UART Communication

Note: For BANDIT II, BANDIT III, or VSR-1200 specifications, see the BANDIT II, BANDIT III, and VSR-1200 Document Set. Function

Part 1 Using Serial EEPROMs

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

1 The Attractions of Soft Modems

OUTLINE. SPI Theory SPI Implementation STM32F0 SPI Resources System Overview Registers SPI Application Initialization Interface Examples

Serial Communications

Manual PCD2.F2xxx serial interface modules

SitePORTAL Lite TA-SPL32-R48

< W3150A+ / W5100 Application Note for SPI >

Revision: 5/7/ E Main Suite D Pullman, WA (509) Voice and Fax. Power jack 5-9VDC. Serial Port. Parallel Port

Digilab 2E Reference Manual

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations

User Guide. Release r01

Product description Rev. 3 11/06/14

Serial Peripheral Interface (SPI)

RL78 Serial interfaces

NS9750B-0. Use in conjunction with: Errata , Rev G. Release date: May Phone: Web:

AVR-Ready2. Additional Board. Manual. MikroElektronika

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

Transcription:

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 ( D) dv dt Power Data Rate ( R) dv C DiR dt constant power Speed 1 kb/s 10 kb/s 100 kb/s 1 Mb/s 10 Mb/s 5-2/42

Interfacing to Embedded Systems Distance 100 m 10 m 1 m 100 cm RS232 I 2 C SPI 10 cm Speed 1 kb/s 10 kb/s 100 kb/s 1 Mb/s 10 Mb/s 5-3/42

Embedded System Interfacing RS-232 Serial Communications μc Data TX status RX Status UART TxD TX status/control/clock RxD RX status/control/clock Master Clock Master Clock = ~10 MHz Data rate = 75*2 N 5-4/42

Embedded System Interfacing RS-232 Serial Communications μc Data TX status RX Status UART TxD TX status/control/clock RxD RX status/control/clock Master Clock Master Clock = ~10 MHz Data rate = 75*2 N asynchronous communications Start Data Stop 5-5/42

Embedded System Interfacing RS-232 Serial Communications μc Data TX status RX Status UART TxD TX status/control/clock RxD RX status/control/clock Master Clock Master Clock = ~10 MHz Data rate = 75*2 N asynchronous communications Start Data Stop 5-6/42

Embedded System Interfacing RS-232 Serial Communications μc Data TX status RX Status UART TxD TX status/control/clock RxD RX status/control/clock Master Clock Master Clock = ~10 MHz Data rate = 75*2 N asynchronous communications Start Data Stop Framing 5-7/42

Embedded System Interfacing RS-232 Serial Communications μc Data TX status RX Status UART TxD TX status/control/clock RxD RX status/control/clock Master Clock Master Clock = ~10 MHz Data rate = 75*2 N -V +V 5 V 12 Start Data Framing Stop 5-8/42

Embedded System Interfacing RS-232 Serial Communications μc Data TX status RX Status UART TxD TX status/control/clock RxD RX status/control/clock Master Clock Master Clock = ~10 MHz Data rate = 75*2 N -V +V 5 V 12 Start Data Framing Stop Asynchronous Start/Stop Protocol efficiency < 80% 5-9/42

Embedded System Interfacing RS-232 Serial Communications TxD RxD Sig GND Computer/ Terminal Modem/ Network DTE DCE 5-10/42

Embedded System Interfacing RS-232 Serial Communications TxD RxD Sig GND Frame GND Computer/ Terminal RTS CTS Modem/ Network Request To Send Clear To Send DTR Data Terminal Ready DSR Data Set Ready DCD Data Carrier Detect RI Ring Indication DTE DCE 5-11/42

Embedded System Interfacing RS-232 Serial Communications TxD Distance < 50 m Data rate < 50 kb/s RxD Sig GND Frame GND Computer/ Terminal RTS CTS Modem/ Network Request To Send Clear To Send DTR Data Terminal Ready DSR Data Set Ready DCD Data Carrier Detect RI Ring Indication DTE DCE 5-12/42

Embedded System Interfacing RS-232 Serial Communications - variations TxD TTL levels Minimizing functions RxD Sig GND Frame GND Computer/ Terminal RTS CTS Modem/ Network Request To Send Clear To Send DTR Data Terminal Ready DSR Data Set Ready DCD Data Carrier Detect RI Ring Indication DTE DCE 5-13/42

Embedded Systems Interfacing SPI Serial Peripheral Interface MOSI SI MISO SO Processor SCLK CLK Peripheral I/O CS GND GND 5-14/42

Embedded Systems Interfacing SPI Serial Peripheral Interface synchronous communications SR SR Processor Master MOSI MISO SCLK I/O SI SO CLK CS SR SR Peripheral Slave GND GND 5-15/42

Embedded Systems Interfacing SPI Serial Peripheral Interface SR MOSI SR MISO Processor SCLK Master I/O Master Out Slave In ----- Slave In SI SR SO SR CLK Peripheral CS Slave GND GND 5-16/42

Embedded Systems Interfacing SPI Serial Peripheral Interface MOSI SI S SCLK CLK S R R Processor MISO SO Peripheral 5-17/42

Embedded Systems Interfacing SPI Serial Peripheral Interface MOSI SI SO SI SO SI SO Processor MISO SCLK CLK Peripheral 1 Peripheral 2 Peripheral 3 I/O CS GND GND GND GND Extension to multiple peripherals: Real Time Clocks (time of day) Sensors (e.g. potentiometers) FLASH memory Interface speed limited by device technology Mb/s, compared to kb/s for RS-232 5-18/42

Embedded Systems Interfacing SPI timing (Clock low, Clock phase 0) SPI cycle 1 2 3 4 5 6 7 8 SCLK MOSI MSB 6 5 4 3 2 1 LSB MISO MSB 6 5 4 3 2 1 LSB x CS 5-19/42

Embedded Systems Interfacing I 2 C Inter Integrated Circuit V CC SCL SDA Serial Clock Serial Data Master Slave Master Slave Slave 5-20/42

Embedded Systems Interfacing I 2 C Inter Integrated Circuit V CC SCL SDA Serial Clock Serial Data Master Slave Master Slave Slave SDA SCL Start message 5-21/42

Embedded Systems Interfacing I 2 C Inter Integrated Circuit V CC SCL SDA Serial Clock Serial Data Master Slave Master Slave Slave SDA SCL Data sampled Data sampled Data can change 5-22/42

Embedded Systems Interfacing I 2 C Inter Integrated Circuit Multi-master bus V CC SCL SDA Serial Clock Serial Data Master Slave Master Slave Slave SDA1 SCL1 SDA2 SCL2 Writing 0 Writing 1 Writing 0 Writing 1 5-23/42

Embedded Systems Interfacing I 2 C Inter Integrated Circuit Multi-master bus V CC SCL SDA Serial Clock Serial Data Master Slave Master Slave Slave SDA1 SCL1 SDA2 SCL2 Writing 0 Writing 1 Writing 0 Writing 1 Device writing 1 passively allows pullup resistors to pull bus to 1 Device writing 0 actively sets bus to 0 5-24/42

Embedded Systems Interfacing I 2 C Inter Integrated Circuit Multi-master bus V CC SCL SDA Serial Clock Serial Data Master Slave Master Slave Slave SDA1 SCL1 SDA2 SCL2 Writing 0 Writing 1 Writing 0 Writing 1 Device writing 1 passively allows pullup resistors to pull bus to 1 Device writing 0 actively sets bus to 0 Device that writes 1 but hears 0 aborts transmission and tries later 5-25/42

Inter-process Communications Processor 1 Peripheral 1 Peripheral M 5-26/42

Inter-process Communications Processor 1 Peripheral 1 RS-232 SPI I 2 C Peripheral M 5-27/42

Inter-process Communications Processor 1 Peripheral 1 RS-232 SPI I 2 C Processor N Peripheral M 5-28/42

Inter-process Communications Processor 1 Peripheral 1 I 2 C Processor N Peripheral M 5-29/42

Higher Speed Inter-process Communications Processor 1 Parallel Registers FIFO Shared RAM Interconnect busses Processor N 5-30/42

Parallel Register for IPC Processor 1 Processor 2 Parallel Latch 5-31/42

Parallel Register for IPC Processor 1 Processor 2 Parallel Latch at t 0, write data, ready flag at t 1 > t 0, find ready flag, read data 5-32/42

Parallel Register for IPC Parallel Processor 1 Processor 2 Latch at t 0, write data, ready flag at t 1 > t 0, find ready flag, read data Issues: One word per transfer One latch per processor pair/direction 5-33/42

Parallel Register for IPC Parallel Processor 1 Processor 2 Latch at t 0, write data, ready flag at t 1 > t 0, find ready flag, read data Issues: One word per transfer No potential for batch transfers One latch per processor pair/direction N 2 latches are required 5-34/42

Parallel Registers for IPC Parallel Processor 1 Processor 2 Latches at t 0, write K words of data, ready flag at t 1 > t 0, find ready flag, read K words of data Issues: One word per transfer No potential for batch transfers Restrictive interface (always K words to transfer) One latch per processor pair/direction N 2 latches are required 5-35/42

FIFOs for IPC Full Not empty First-In, First-Out Processor 1 Processor 2 Registers at t 0, write K words of data at t 1 > t 0, find not-empty flag, read J<K words of data Issues: One FIFO per processor pair/direction N 2 FIFOs are required 5-36/42

FIFOs as Elastic Storage Buffer Full Not empty Processor 1 FIFO Processor 2 activity activity t t Batch processing can proceed without tight synchronization 5-37/42

Dual-Port RAM for IPC Address Address Dual-port Processor 1 Processor 2 RAM Data Data 5-38/42

Dual-Port RAM for IPC Address Address Dual-port Processor 1 Processor 2 RAM Data Data RAM appears normally in the address space of P1 and P2 Data and semaphores can be shared 5-39/42

Dual-Port RAM for IPC Address Address Dual-port Processor 1 Processor 2 RAM Data Data RAM appears normally in the address space of P1 and P2 Data and semaphores can be shared but, N 2 /2 dual-port RAMs are needed for N processors. 5-40/42

Configurations of Multiprocessing in Embedded Systems Tree Structure O(N) connections Fully interconnected, O(N 2 ) connections 5-41/42

Configurations of Multiprocessing in Embedded Systems Tree Structure O(N) connections Fully interconnected, O(N 2 ) connections More likely configuration (by careful design?!) 5-42/42