Communication. Messages. I/O Port Frames Physical Link

Similar documents
BSc (Hons) Computer Science with Network Security, BEng (Hons) Electronic Engineering. Cohorts: BCNS/17A/FT & BEE/16B/FT

ROM/UDF CPU I/O I/O I/O RAM

HY448 Sample Problems

CSCI-1680 Physical Layer Rodrigo Fonseca

APN-0046: Configure CAN for SPAN

Sirindhorn International Institute of Technology Thammasat University

INF8574 GENERAL DESCRIPTION

Automatic car AC control using CAN protocol

I2C Demonstration Board I 2 C-bus Protocol

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

Low Speed Serial Data Fundamentals

Course Introduction Purpose: Objectives: Content Learning Time

Data Communications Computer Eng. 3 rd class course Lecturer : Hamid Mousa

Transmission Principles

Representation of Information. Transmission Principles. Agenda. Transmission of Information

REAL-TIME OPTIMISATION OF TTCAN NETWORKS

EE445L Fall 2012 Final Version B Page 1 of 7

Serial Bus Analysis Application Note

10 Speech and Audio Signals

TSA 6000 System Features Summary

Computer Networks - Xarxes de Computadors

Module 3: Physical Layer

MIL-STD-1553 DATA BUS/PCM MULTIPLEXER SYSTEM

COMP467. Local Asynchronous Communication. Goals. Data is usually sent over a single channel one bit at a time.

6. has units of bits/second. a. Throughput b. Propagation speed c. Propagation time d. (b)or(c)

Data and Computer Communications Chapter 3 Data Transmission

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

Model Q46 Modbus Communications Manual

CAN FD and the CRC issue

Terminology (1) Chapter 3. Terminology (3) Terminology (2) Transmitter Receiver Medium. Data Transmission. Simplex. Direct link.

Introduc)on to Computer Networks

EECS 122: Introduction to Computer Networks Encoding and Framing. Questions

Industrial Interface Standards Overview:

ITM 1010 Computer and Communication Technologies

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

In this lecture. System Model Power Penalty Analog transmission Digital transmission

Roland Kammerer. 13. October 2010

BSc (Hons) Computer Science with Network Security. Examinations for Semester 1

Installation procedure Ground loop reader: LBS type R12 / RS232 type 5C

Fundamentals of Data and Signals

Real Time Operating Systems Lecture 29.1

(Refer Slide Time: 2:23)

RF4463F30 High Power wireless transceiver module

Applications. Operating Modes. Description. Part Number Description Package. Many to one. One to one Broadcast One to many

Datacommunication I. Layers of the OSI-model. Lecture 3. signal encoding, error detection/correction

AT-XTR-7020A-4. Multi-Channel Micro Embedded Transceiver Module. Features. Typical Applications

Application Note 160 Using the DS1808 in Audio Applications

5Gbps Serial Link Transmitter with Pre-emphasis

Data Communication. Chapter 3 Data Transmission

UNIT-1. Basic signal processing operations in digital communication

Data Communication (CS601)

CS601-Data Communication Latest Solved Mcqs from Midterm Papers

Channel Concepts CS 571 Fall Kenneth L. Calvert

BSc (Hons) Computer Science with Network Security BEng (Hons) Electronic Engineering

Encoding and Framing

Application Note: Demonstrating CAN with nqbasic

RECOMMENDATION ITU-R F (Question ITU-R 158/9) b) that it is desirable to specify the requirements of HF packet radio systems,

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

SmartRadio Transmitter / Receiver

SAE Formula Car Data Acquisition & Display System. Joseph Groe, Michelle Ohlson, & Miles Homler Advisor: Professor Gutschlag

MSP430 Teaching Materials

Encoding and Framing. Questions. Signals: Analog vs. Digital. Signals: Periodic vs. Aperiodic. Attenuation. Data vs. Signal

900 MHz. Frequency Hopping RS-485 Master/Slave auto-sensing radio interface.

Efficient implementation of voice channels over CAN networks

DigiPoints Volume 1. Student Workbook. Module 6 Error Detection and Correction

CS601 Data Communication Solved Objective For Midterm Exam Preparation

Modbus communication module for TCX2: AEX-MOD

9.4. Synchronization:

Review of Lecture 2. Data and Signals - Theoretical Concepts. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2. Review of Lecture 2

Lecture 3 Data Link Layer - Digital Data Communication Techniques

WIEG4PRT-A Four port Wiegand to RS232 Converter.

EITF25 Internet Techniques and Applications L2: Physical layer. Stefan Höst

CANopen Programmer s Manual Part Number Version 1.0 October All rights reserved

Chapter 3. Data Transmission

TCSS 372 Laboratory Project 2 RS 232 Serial I/O Interface

Communication Systems Lecture-12: Delta Modulation and PTM

2320 cousteau court

TAS APFC Controller / Load Managers with MOD-BUS Interface

Kongsberg Mesotech Ltd.

DS1807 Addressable Dual Audio Taper Potentiometer

RTTY: an FSK decoder program for Linux. Jesús Arias (EB1DIX)

Waveform Encoding - PCM. BY: Dr.AHMED ALKHAYYAT. Chapter Two

Comfort Electronics: Thermal Management Chassis Control Parking Assistant

Communication systems for vehicle electronics

EIE/ENE 334 Microprocessors

Physical Layer. Networks: Physical Layer 1

DIGITAL LINK MEASURING INSTRUMENTS MS371A/A1 GPIB PCM CHANNEL ANALYZER. For Simultaneous Measurement of 30 Channels with MS120A

Part II Data Communications

SC16C650B. 1. General description. 2. Features. 5 V, 3.3 V and 2.5 V UART with 32-byte FIFOs and infrared (IrDA) encoder/decoder

SMARTALPHA RF TRANSCEIVER

Lecture 2 Physical Layer - Data Transmission

PART TOP VIEW V EE 1 V CC 1 CONTROL LOGIC

Lecture 3: Data Transmission

A Novel Approach for Error Detection Using Additive Redundancy Check

CANRF UHF Wireless CAN module

Training Schedule. Robotic System Design using Arduino Platform

CANopen Programmer s Manual

Ultrasonic Multiplexer OPMUX v12.0

G3P-R232. User Manual. Release. 2.06

MULTIPLE CHOICE QUESTIONS

Transcription:

Embedded Microcomputer Systems Lecture 23.1 Had any errors with the XON/XOFF? No undetected errors so far! UserA UserB OS1 Computer1 Communication Messages UserC I/O Port Frames Physical Link Figure 14.1. A layered approach to communication systems. UserD OS2 Computer2 I/O Port 1) Address information field physical address specifying the destination/source computers logical address specifying the destination/source processes (e.g., users) 2) Synchronization or handshake field Physical synchronization like shared clock, start and stop bits OS synchronization like request connection or acknowledge Process synchronization like semaphores 3) Data field ASCII text (raw or compressed) Binary (raw or compressed) 4) Error detection and correction field Vertical and horizontal parity Checksum Logical redundancy check (LRC) Block correction codes (BCC)

Embedded Microcomputer Systems Lecture 23.2 The general transmission system depicted below: employs some transmission medium that permits some form of energy to be carried from the transmitter to the receiver the energy may vary continuously with time or transition between discrete values ultimately, the energy is employed to represent information audio, video, image, text, abstract, etc. Transmitter Receiver Communication channel The issues along the way: attenuation energy is lost to the medium and surroundings distortion channel treats signals differently based upon frequency, intensity (amplitude), etc. noise energy is combined with the signal to produce a new signal How rapidly can information (bits) be communicated via a particular transmission system? That depends upon: the amount of energy used in transmitting each signal the distance between transmitter and receiver attenuation and distortion the amount of noise associated with the channel the bandwidth of the channel Shannon channel capacity: C = W log 2 (1 + SNR) b/s Example: Telephone channel W = 3.4 khz and SNR ~ 38 db => SNR ~ 6310 C = 3.4 khz log2 (1 + 6310) = 3.4kHz x 12.62 b/s = 42.9 kb/s ler Area Network (). High-integrity serial communications Real-time applications Up to 1 Mbits/second Originally for use in automobiles, Can have up to 112 nodes Half duplex (both directions, but only one direction at a time)

Embedded Microcomputer Systems Lecture 23.3 MCP2551 http://www.microchip.com/wwwproducts/devices.aspx?ddocname=en010405 http://ww1.microchip.com/downloads/en/devicedoc/21667f.pdf

Embedded Microcomputer Systems Lecture 23.4 LM3S ler PD0/Rx PD1/Tx 1 LM3S 2 LM3S 112 ler ler PD0/Rx PD1/Tx PD0/Rx PD1/Tx Slope Transceiver Dominant Detect Slope Transceiver Dominant Detect Slope Transceiver Dominant Detect Driver Shutdown POR Driver Shutdown POR Driver Shutdown POR SN65HVD1050D SN65HVD1050D SN65HVD1050D L H L H L H 120 120 Figure 9.3. Block Diagram of a communication system (Rs=0V, Vdd=5V, Vref=nc) BitRateSet(0_BASE, 80000000, _BITRATE);

Embedded Microcomputer Systems Lecture 23.5 There must be a 120 resistor on each end of the cable, and no resistor on middle nodes. f 1/ v = VF*c = 2 10 8 m/s = v/f v a transmission line if L > /4 slew rate = 25V/µs 1V in 40 ns, = 2 10 8 m/s 40*10-9 s = 8m /4 = 2m Similar to wire-or open collector logic Dominant state is logic low Recessive state is logic high 5V 3.5V 2.5V 1.5V 0V Recessive Dominant Recessive H L Time Figure 14.6. Voltage specifications for the recessive and dominant states. Four message types or frames Data Frame, Remote Frame, Error Frame, and Overload Frame. TxMessage.RTR = _RTR_DATA;

Embedded Microcomputer Systems Lecture 23.6 Message Frame Bus Idle Arbitration field Data field CRC field ACK EOF Int Bus Idle 11-bit Identifier DLC Data (0-8 bytes) 15 bits SOF RTR r0 Delimiter Delimiter IDE/r1 Slot Figure 14.7. Standard Format Data Frame. Arbitration Field 11-bit identifier specifies data type (not address) Ping, IR, or Touch sensor priority handled by dominate wins over recessive lower IDs are higher priority RTR=IDE=0 means 11-bit standard format data frame Field DLC, which specifies the number of data bytes (0 to 8) Data Field contains zero to eight bytes of data. CRC Field 15-bit checksum used for error detection. Bandwidth = number of information bits/frame total number of bits/frame baud rate Number of bits in a message frame. ID (11 or 29 bits) Data (0, 8, 16, 24, 32, 40, 48, 56, or 64 bits) Remaining components (36 bits) SOF (1) RTR (1) IDE/r1 (1) r0 (1) DLC (4) CRC (15) ACK/EOF/intermission (13)

Embedded Microcomputer Systems Lecture 23.7 TxMessage.StdId = id; // message ID TxMessage.IDE = _ID_STD; // 11-bit address TxMessage.DLC = 2; // 0 to 8 How many bits in a frame: Standard 2.0A frame with 4 data bytes? Extended 2.0B frame with 8 data bytes? Bit Stuffing Where is the clock? (Answer: in the data) Data line needs edges so the receiver can synchronize A long sequence of 0 s or a long sequence of 1 s, Insert a complementary bit after five bits of equal value. 2.0A may add 3+n stuff bits (n is number of bytes) 2.0B may add 5+n stuff bits. Receiver has to un-stuff Filter on receive messages Which IDs to accept? IdMsg is the ID of the incoming message IdRule is the ID setup in the filter rule 14 filters: rules accept if ID matches Accept if (IdMsg&Mask)==(IdRule&Mask) Accept if IdMsg is in the list Into which FIFO to put message? ID+MASK (0 don t care, 1 bit must match) _FilterMode_IdMask list of IDs _FilterMode_IdList

Embedded Microcomputer Systems Lecture 23.8 LM3S8962 Switch 0_SendData ID=4 bus LED 0_GetMail NonBlock ISR ID=2 LM3S2110 Switch 0_SendData ID=2 LED 0_GetMail NonBlock ISR ID=4

Embedded Microcomputer Systems Lecture 23.9 Why did it take 130 s to execute _Transmit? Why does the RxCan have more stuff than the TxCan? What is the total number of bits in this frame? Why did it take 110 s to complete an entire frame? What is that blimp on TxCan? Where is the end of the frame? What is the bandwidth? Synchronization issues How to connect transmitter/receiver threads? How to start, handshake Race conditions How to prevent streaming data from stalling? Priority, buffer size