Lecture 19. Link. Peter Cheung Department of Electrical & Electronic Engineering Imperial College London

Similar documents
DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

Serial Communications

Analog Representations of Sound

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Design of a Wireless Medical Monitoring System * Chavabathina Lavanya 1 G.Manikumar 2

Note monitors controlled by analog signals CRT monitors are controlled by analog voltage. i. e. the level of analog signal delivered through the

INTRODUCTION TO COMMUNICATION SYSTEMS AND TRANSMISSION MEDIA

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Using Xbee in Serial Communication

Microcontroller to Sensor Interfacing Techniques

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

IT Data Communication and Networks (Optional)

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

Atmel Norway XMEGA Introduction

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

Technical Article. NFiC: a new, economical way to make a device NFC-compliant. Prashant Dekate

Application Note 83 Fundamentals of RS 232 Serial Communications

Lesson 16 Analog-to-Digital Converter (ADC)

Android based Alcohol detection system using Bluetooth technology

6.025J Medical Device Design Lecture 3: Analog-to-Digital Conversion Prof. Joel L. Dawson

MP3 Player CSEE 4840 SPRING 2010 PROJECT DESIGN.

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

DAC Digital To Analog Converter

Conversion Between Analog and Digital Signals

PCM Encoding and Decoding:

Digital to Analog and Analog to Digital Conversion

Computers Are Your Future Prentice-Hall, Inc.

Basics of Digital Recording

Wireless Security Camera

Selecting the Optimum PCI Express Clock Source

Fiber Optic Communications Educational Toolkit

Zigbee-Based Wireless Distance Measuring Sensor System

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Software User Guide UG-461

INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE

Chapter 6: From Digital-to-Analog and Back Again

LEVERAGING FPGA AND CPLD DIGITAL LOGIC TO IMPLEMENT ANALOG TO DIGITAL CONVERTERS

2.0 Command and Data Handling Subsystem

TCOM 370 NOTES 99-6 VOICE DIGITIZATION AND VOICE/DATA INTEGRATION

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

AVR127: Understanding ADC Parameters. Introduction. Features. Atmel 8-bit and 32-bit Microcontrollers APPLICATION NOTE

W a d i a D i g i t a l

Digital Transmission of Analog Data: PCM and Delta Modulation

Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.

EECC694 - Shaaban. Transmission Channel

Spike-Based Sensing and Processing: What are spikes good for? John G. Harris Electrical and Computer Engineering Dept

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Wireless Precision Temperature Sensor Powers Itself, Forms Own Network, Enabling Easy Deployment in Industrial Environments

GnuRadio CONTACT INFORMATION: phone: fax: web:

Microcontroller for Variable Speed BLDC Fan Control System. T.C. Lun System Engineer, Freescale Semiconductor, Inc.

Serial Communications

For Articulation Purpose Only

Tutorial.

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

How To Understand The Power Of An Freddi Tag (Rfid) System

Analog signals are those which are naturally occurring. Any analog signal can be converted to a digital signal.

PHY-2464 Physical Basis of Music

Embedded Systems Design Course Applying the mbed microcontroller

FLYPORT Wi-Fi G

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

AN Application Note: FCC Regulations for ISM Band Devices: MHz. FCC Regulations for ISM Band Devices: MHz

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920

RFID BASED VEHICLE TRACKING SYSTEM

Surveillance System Using Wireless Sensor Networks

Welcome to the Introduction to Controller Area Network web seminar My name is William Stuart, and I am a Applications Engineer for the Automotive

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

In-Vehicle Networking

Current Loop Application Note 1495

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

US-SPI New generation of High performances Ultrasonic device

Maximizing Range and Battery Life in Low-Cost Wireless Networks

Study Guide for the Electronics Technician Pre-Employment Examination

Chapter 7 Low-Speed Wireless Local Area Networks

Digital To Analog Converter with Sine Wave Output

2 Basic Concepts. Contents

Lab 5 Getting started with analog-digital conversion

Evaluating AC Current Sensor Options for Power Delivery Systems

Pulse Width Modulation

Multiplexing on Wireline Telephone Systems

Wireless Home Security System

(Refer Slide Time: 2:10)

Serial port interface for microcontroller embedded into integrated power meter

From Concept to Production in Secure Voice Communications

DigiPoints Volume 1. Student Workbook. Module 4 Bandwidth Management

Communication Networks. MAP-TELE 2011/12 José Ruela

Introduction to Digital Audio

Security & Chip Card ICs SLE 44R35S / Mifare

LOCAL INTERCONNECT NETWORK (LIN)

Cabling LANs and WANs

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

AN4646 Application note

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

The design and implementation of the environment monitoring system of smart home based on EnOcean technology

Product Information S N O. Portable VIP protection CCTV & Alarm System 2

Transcription:

Lecture 19 Link Peter Cheung Department of Electrical & Electronic Engineering Imperial College London URL: www.ee.ic.ac.uk/pcheung/teaching/de1_ee/ E-mail: p.cheung@imperial.ac.uk Lecture 17 Slide 1 Linking between analogue and digital domains Much of the physical world is analogue in nature. Linking digital electronics as used in microprocessors and the physical world is three digital-to-analogue and analogue-to-digital converters. (It is common that DACs and ADCs use the American spelling of analog.) Lecture 17 Slide 2

Sampling and Quantization Sampling Process: convert a continuous time domain signal at discrete and uniform time intervals. Determines maximum bandwidth of sampled (ADC) or reconstructed (DAC) signal (Nyquist Sampling Theorem: sampling frequency must be at least twice that of maximum signal frequency) Frequency Domain- Aliasing for an ADC and Images for a DAC Quantization Process: convert an analogue signal with infinite resolution with a digital word having finite resolution and an analogue output which only exists in discrete levels Determines Maximum Achievable Dynamic Range Results in Quantization Error/Noise Lecture 17 Slide 3 A simplified view of a DAC V REF REFERENCE INPUT X IN [N 1: 0] DIGITAL INPUT DAC RESOLUTION = N BITS ANALOG OUTPUT V OUT = X IN[N 1: 0] 2 N V REF 1 A digital-to-analog converter (DAC) produces a quantized (discrete step) analogue output (voltage or current) in response to binary digital input. A reference quantity (either voltage or current) is accurately divided into binary and/or linear segments. The digital input drives transistor switches that connect an appropriate number of segments to the output. 2 N discrete values resulting in quantization errors. Sampling and quantization impose fundamental but predictable limitations in the system. The microcontroller on the Pyboard has 2 x 12 bit DAC converters. Lecture 17 Slide 4

Resolution in various forms Resolution of a ADC or DAC is dependent on the number of input data bits. This defines the quantization step, which is expressed as LSB voltage (least significant bit). Resolution can also be expressed as %, parts per million (ppm), or db relative to full scale (FS). Lecture 17 Slide 5 Common DAC architectures Simple voltage divider DAC: dividing reference voltage into equal steps. Output is guaranteed to go up if input goes up i.e. monotonic. Number of taps increases exponentially (2 n ) with number of bits. Voltage segment DAC: use two sets of voltage dividers, one for coarse steps and another for fine steps. Number of resistors reduced from 2 n to 2x2 n/2 for two segments. Could use three or more segments. R-2R Ladder DAC: same network as used in Lab 2, Task 3. Each stage has a voltage (or current) half that of the previous stage. Complexity is Order(n) or O(n), where n is the number of input bits. Lecture 17 Slide 6

A simplified view of a ADC Reference Input V REF Analogue Input V IN ADC RESOLUTION N BITS DIGITAL OUTPUT Y[N 1: 0] = V IN V REF (2 N 1) An ADC produces a digital output corresponding to the value of the signal applied to its input relative to a reference voltage. There are 2 N discrete values, therefore introducing error known as quantization noise. Similar effect in sampling and quantization as found in DAC. The microcontroller on the Pyboard has 3 x 12-bit ADC, capable of taking 2.4 Msamples per second. Lecture 17 Slide 7 Parallel Data Links The transmission of binary data across a link can be accomplished either in parallel mode or serial mode. In parallel mode, multiple bits are sent with each clock period. In serial mode, one bit is sent with each clock period. There are 2 subclasses of serial transmission: synchronous and asynchronous. Binary data may be organized into groups of n bits each. By grouping, we can send data n bits at a time instead of one. This is called parallel transmission. The advantage of parallel transmission is speed but its disadvantage is cost in interconnect resources. Lecture 17 Slide 8

Serial Data Links In serial transmission, one bit follows another, so we need only one communicating channel (or wire) to transmit data between 2 communicating modules. The advantage of serial transmission is the reduction of interconnect resources, but it takes N times longer to send the information, where N is the number of bits of data. Serial transmission occurs in one of 2 ways: asynchronous or synchronous. Serial link Asynchronous link Lecture 17 Slide 9 UART and flow control UART is a module found in many microcontroller that uses an asynchronous serial method for transferring data. The microcontroller on the Pyboard has four UART integrated on the chip. The UART signal waveform is shown below. (You have also seen this in Lab 1 and Lab 4). Physical connections between two UARTs consist of four signals: RX data receive signal (input) TX data transmit signal (output) CTS clear to send signal (input) RTS ready to send signal (output) Both devices can simultaneously send and receive data. This is known as a full duplex link. RTS and CTS are active-low signals to indicate when a device is ready to transfer data. By connecting, say, the UART on the Pyboard to the UART on the Bluetooth module in the Lab, we can control the flow of data between the two. This is called flow control mechanism. UART1 TX RX RTS CTS TX RX RTS CTS UART2 Lecture 17 Slide 10

Synchronous Serial Link In a synchronous link, the bit stream is combined into longer frames which may contains multiple bytes. Each byte is introduced onto the transmission link without a gap between it and the next one. It is the responsibility of the receiver to reconstruct the information, usually under the control of a clock signal. Without gaps and start/stop bits, timing becomes very important therefore the accuracy of the received information is completely dependent on the ability of the receiver to keep an accurate count of the bits as they come in CLOCK SIGNAL Lecture 17 Slide 11 I2C and SPI synchronous serial links I2C stands for Inter-Integrated Circuit serial protocol. Also known as I 2 C or Two Wire Interface (TWI). Originally from Philips Semiconductor, and it is now an industrial standard. Allows up to 127 devices to be connected, each having a unique address. Up to 400kHz data rate. SPI stands for Serial Peripheral Interface Bus. Both of these are common synchronous serial links for connecting to other chips in the systems, such as ADC, DAC and other sensors. I2C link Lecture 17 Slide 12

Comparison of the three serial links The Pyboard has 4 UARTs, 2 each of SPI and I2C links. Micropython provides library functions to drive these interfaces. We will only use UART on this course. Lecture 17 Slide 13 Bluetooth wireless links Bluetooth is a cable replacement technology. 1Mb/s, range ~10m, much lower power than wifi and cheaper We use Bluetooth Low Energy, a version of Bluetooth that uses much less power, but also has much lower data rate (realistically less than 100kbit/s) Bluetooth standard defines a protocol stack to enable heterogeneous devices to communicate. The Bluetooth stack includes protocols for the radio layer all the way up to device discovery, service discovery, etc. Lecture 17 Slide 14

A video on Bluetooth Low Energy Lecture 17 Slide 15 What is RFID? Radio Frequency Identification (RFID) is a technology that employs a microchip with an antenna that broadcasts its unique identifier and location to receivers. It employs a microchip called a smart tag, broadcasts unique 96-bit identifier to receiver. The receiver relays the data to a computer. A RFID Tag contains two main parts: Silicon chips Antennas These components enable tags to receive and respond to radio frequencies queries from RFID transceivers. Two types of RFIDs: Passive Active Lecture 17 Slide 16

RFID Tags types Passive Have no internal power supply Electrical current inducted in antenna by the incoming signal proves power for integrated circuit in tag to power up and transmit response Very Small, Limited Range, Unlimited Life Active Have their own internal power source Many operate at fixed intervals Also called beacons (broadcast own signal) Large ( coin), Much larger memories, Longer range Lecture 17 Slide 17 A video about RFID Lecture 17 Slide 18