Team 1 Technical Lecture - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

Team 1 Technical Lecture

Description:

Clocked faster. Many ICs have serial interface. Fewer wires. Cheap. Common Application ... Clock Generator. Multiple of bit transmission rate. Sampling used to ... – PowerPoint PPT presentation

Number of Views:99
Avg rating:3.0/5.0
Slides: 24
Provided by: egr8
Category:

less

Transcript and Presenter's Notes

Title: Team 1 Technical Lecture


1
Team 1 Technical Lecture
  • Serial Communication
  • Manager Jerome Yancy
  • Documentation Kenneth Booker
  • Coordinator Paul Suchyta
  • Webmaster Khalid Saufee
  • Presentation Kevin Fells

2
Introduction
  • Serial Communication
  • Transfers 1-bit at a time
  • Typically used in component-to-component
  • Parallel Communication
  • Bits sent over many wires simultaneously
  • Faster than a serial communication
  • Multiple wires needed

3
Introduction (cont.)
  • Advantages Of Serial Communications
  • Clocked faster
  • Many ICs have serial interface
  • Fewer wires
  • Cheap
  • Common Application
  • Dial-up modems
  • Printers
  • Microcontroller programmers (PIC)

4
Synchronous Asynchronous
  • Synchronization
  • Electronic devices rhythm
  • Synchronous Transmission
  • Transmit data along regular structured intervals
  • Asynchronous Transmission
  • Event driven
  • Irregular sending data by specific identifiers
  • Advantages
  • Simple
  • Inexpensive
  • Set-up very fast
  • Disadvantages
  • Large relative overhead
  • Timing errors can occur

5
Bidirectional Communication
  • All serial ports allow for duplex, or two-way,
    communication between devices
  • Half-duplex
  • Communication can only occur in one direction at
    a given time
  • Collision avoidance necessary
  • Full-duplex
  • Communication can occur in both directions
    simultaneously
  • Each device has separate input and output pins
  • Requires more wires
  • Higher throughput
  • Collisions less problematic

Half-Duplex
Full-Duplex
6
Single-Ended vs. Differential Signaling
  • Single-Ended
  • Uses one wire
  • Receiver evaluates signal as voltage of wire
    relative to reference
  • More common approach
  • Differential
  • Uses two wires
  • Receiver evaluates signal as difference of wire
    voltages
  • Improved noise immunity
  • Tolerance of device ground variation
  • Greater resistance to electromagnetic interference

7
Physical Signal Characteristics
  • Binary representation of data by line voltage
  • Idle State
  • Open-collector orientation common
  • Data sent in frames
  • Start bits (asynchronous only)
  • Data
  • Parity (optional)
  • Stop bits (asynchronous only)
  • Padding (synchronous only)

8
Flow Control
  • Sender/Receiver issue
  • Manages data transmission
  • Handshaking
  • Special characters
  • (XON/XOFF)
  • Implementing proper flow control
  • Use preprogrammed routines from a reliable source

9
Serial Peripheral Interface
  • Operates in full duplex mode
  • Synchronous
  • Communicates in master/slave mode
  • Four logic signal
  • Operation and Data Transmission
  • Only one master
  • Can have multiple slave
  • Shift register

10
Serial Peripheral Interface Bus
  • Advantages
  • Full duplex communication
  • Higher throughput than other formats
  • Simple hardware interfacing
  • Disadvantages
  • Requires more pins on IC packages than other
    formats
  • Only one master
  • No slave acknowledgement
  • Applications
  • Sensors, memory, communications

11
I²C
  • Inter-Integrated Circuit
  • Developed by Philips in the early 1980s
  • Simplicity and low manufacturing cost
  • SDA and SCL

12
How I²C Works
  • Multi-Master Support

13
Why use I²C
  • Cost-effective for low to medium speed
    chip-to-chip communication
  • 100 kbit/sec to 3.4 Mbit/sec
  • Bus error detection and recovery
  • Can easily be added to most microcontrollers

14
RS -232 Standard
  • Overview
  • Supports synchronous and asynchronous
  • Full duplex manner
  • Supports concurrent data flow in both directions
  • Current applications
  • Old design of peripherals, industrial equipments,
    and console ports
  • Multiple systems
  • Isolation between each system and bus

15
USB (Universal Serial Bus)
  • General Characteristics
  • Half-duplex communication
  • Differential signaling
  • Establishes communications by Handshaking
  • Transmits at up to 480Mbits/sec (USB 2.0)
  • Used in memory storage devices (flash drives)
  • Becoming a standard for computer/device
    connections

16
Advantages and Disadvantages
  • Advantages
  • Plug-and-play technology
  • Can power devices (up to 500 mA for USB 2.0)
  • One host can control up to 127 devices
  • Disadvantages
  • Cable length set at a max of five meters
  • Slower than PCI formats (such as firewire)

17
UART (Universal Asynchronous Receiver/Transmitter)
  • Integrated Circuit component of a serial
    communication system
  • Converts data between serial and parallel forms
  • Used with a variety of serial standards
  • Typically perform full-duplex communication
  • USART variant allows synchronous or asynchronous
    communication
  • Commonly included in general-purpose
    microcontrollers

18
UART Components
  • Clock Generator
  • Multiple of bit transmission rate
  • Sampling used to filter out noise spikes
  • Shift Registers
  • Input shift register performs parallel-to-serial
  • Output shift register performs serial-to-parallel
  • Transmit/Receive control logic
  • Buffers
  • Ensures that data will not be lost if end device
    operates at a different speed than data is
    transmitted over the line

19
Sample UART IC Block Diagram
20
Choosing a Communication Format(Things to
Consider)
  • Support of format by components
  • Physical distance between components
  • Error Checking
  • Transmission speed
  • Ease of implementation
  • Cost

21
Our Design
  • Communication between the PIC processor and Xbee
    Module
  • Supported by both components
  • PIC communicates data to Xbee (which is a
    wireless transceiver)
  • UART characteristics
  • Full-duplex communication
  • Buffer characteristic minimizes data loss
  • Transmission speed is adequate
  • Communication standard in general purpose
    microcontrollers

22
Summary
  • Serial communication characteristics
  • Serial communication formats
  • SPI
  • I²C
  • RS-232
  • USB
  • UART
  • Choosing the right communication standard

23
Questions?
Write a Comment
User Comments (0)
About PowerShow.com