Any device connected to the bus system through a dedicated interface. address. data control

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

Measuring, Controlling and Regulating with labworldsoft

Digital to Analog and Analog to Digital Conversion

DS1104 R&D Controller Board

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

Computer Organization and Components

Microcontrollers in Practice

Chapter 2 Logic Gates and Introduction to Computer Architecture

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

Serial Communications

Microcontroller to Sensor Interfacing Techniques

Chapter 13. PIC Family Microcontroller

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Atmel Norway XMEGA Introduction

Serial Communications

SAMPLE CHAPTERS UNESCO EOLSS DIGITAL INSTRUMENTS. García J. and García D.F. University of Oviedo, Spain

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Computer Systems Structure Input/Output

Conversion Between Analog and Digital Signals

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

Timer A (0 and 1) and PWM EE3376

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

CPU ARM926EJ-S, 200MHz. Fast Ethernet 10/100 Mbps port. 6 digital input 2 digital open-drain alarm output

Analog Inputs and Outputs

S and STEP 7 Basic V10.5

DAC Digital To Analog Converter

8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

Automation Unit TM 1703 ACP Flexible automation and telecontrol

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

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

M68EVB908QL4 Development Board for Motorola MC68HC908QL4

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

Manual Serial PCI Cards

AN4646 Application note

Sigma Control PC INSIDE. 97 psi 187 F R on load

LOCAL INTERCONNECT NETWORK (LIN)

8051 MICROCONTROLLER COURSE

MSITel provides real time telemetry up to 4.8 kbps (2xIridium modem) for balloons/experiments

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

Automation System TROVIS 6400 TROVIS 6493 Compact Controller

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

M.S Ramaiah School of Advanced Studies - Bangalore. On completion of this session, the delegate will understand and be able to appriciate:

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

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

Documentation. M-Bus 130-mbx

Communication Unit 560CMU05 Data sheet

Tutorial for MPLAB Starter Kit for PIC18F

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Computer and Set of Robots

PROGRAMMABLE ANALOG INTEGRATED CIRCUIT FOR USE IN REMOTELY OPERATED LABORATORIES

DS1621 Digital Thermometer and Thermostat

NETWORK ENABLED EQUIPMENT MONITOR

Lecture N -1- PHYS Microcontrollers

Single Phase Two-Channel Interleaved PFC Operating in CrM

DS1621 Digital Thermometer and Thermostat

Substation Automation Systems. Nicholas Honeth

The Autolab control command is located in the Measurement General group of commands.

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

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

The Programming Interface

Industrial Automation Training Academy. PLC, HMI & Drives Training Programs Duration: 6 Months (180 ~ 240 Hours)

Lizy Kurian John Electrical and Computer Engineering Department, The University of Texas as Austin

Using Xbee in Serial Communication

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

Technical Aspects of Creating and Assessing a Learning Environment in Digital Electronics for High School Students

Advanced Microcontrollers Grzegorz Budzyń Lecture. 3: Electrical parameters of microcontrollers 8051 family

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

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

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

Technical Description. Multifunctional Desk-Top Call Station Digital Version 8, 16 Keys L.No ,

SMARTCARD XPRO. Preface. SMART ARM-based Microcontrollers USER GUIDE

Timer Value IRQ IACK

Power Reduction Techniques in the SoC Clock Network. Clock Power

Microtronics technologies Mobile:

2.0 Command and Data Handling Subsystem

MICROPROCESSOR AND MICROCOMPUTER BASICS

Programmable Logic Controller PLC

Software engineering for real-time systems

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

Current Loop Application Note 1495

SIMATIC S It s the Interplay that makes the difference. Siemens AG All Rights Reserved.

US-SPI New generation of High performances Ultrasonic device

Decimal Number (base 10) Binary Number (base 2)

How To Use An Adh8012 Gsm Gprs Module With A Gsm (Gsm) Gpros (Gsp) Gpls (Geo) Gsp (Gpl) Gs

Application/Connection Examples

Introduction to Electronic Signals

(Refer Slide Time: 00:01:16 min)

SOLARCARE SERIES PRODUCT AND APPLICATION GUIDE

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

Digital and Analog I/O

Flexible Active Shutter Control Interface using the MC1323x

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

DESIGN OF 6 DOF ROBOTIC ARM CONTROLLED OVER THE INTERNET

Lab Experiment 1: The LPC 2148 Education Board

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

How to read this guide

DigiPoints Volume 1. Student Workbook. Module 4 Bandwidth Management

Transcription:

Computer peripherals Whats a peripheral? Parallel Input/Output Serial communication A/D and D/A conversion Pulse width modulation Interrupts Computer peripherals Lecture slides 2006 1 Whats a peripheral? Any device connected to the bus system through a dedicated interface. address CP memory data control IO interface IO interface IO interface IO interface IO interface.g. Parallel I/O Serial I/O Disc drives Sensors Actuators... Computer peripherals Lecture slides 2006 2

Parallel Output bus 1 IO Interface ypical application ON/OFF LD (Light mitting Diode) ON Computer peripherals Lecture slides 2006 3 Parallel Output bus 0 IO Interface ypical application ON/OFF LD (Light mitting Diode) OFF Computer peripherals Lecture slides 2006 4

Parallel Input ypical application Sense ON/OFF switches bus 0 5V IO Interface Switch OFF Computer peripherals Lecture slides 2006 5 Parallel Input ypical application Sense ON/OFF switches bus 1 5V IO Interface Switch ON Computer peripherals Lecture slides 2006 6

Serial communication IOinterface: Serial Communication Interface (SCI) Central Processing nit Serial to parallel conversion Parallel to serial conversion Receive Data: RxD ransmit Data: xd Computer peripherals Lecture slides 2006 7 Parallel/serial conversions, asynchronous Sender Receiver Clock Shift Register xd Serial data out Serial data in RxD Clock Shift Register Requires Sender and Receiver Clocks to be the same... Computer peripherals Lecture slides 2006 8

Parallel/serial conversions, synchronous Master Slave Clock Shift Register xd Serial data out Serial data in RxD Shift Register Clock Out Clock In Requires xtra Wire and a Clock Master... Computer peripherals Lecture slides 2006 9 xample: RS232 Common asynchronous serial communication protocol, for wire lengths up to 25 meters (approx). Central Processing Serial to parallel conversion ransceiver Receive ransceiver Receive nit Parallel to serial conversion ransmit ransmit Serial transmission Computer peripherals Lecture slides 2006 10

RS232 transmission of z character z is represented by the bit pattern 0111 1010 (ASCIIcharacter). 10 volt 0 volt 10 volt S A R B I idle 0 0 1 0 1 1 1 1 0 0 1 idle P A R I Y B I S O P B I z least significant bit first Overhead, 3 bits plus the required idle time Computer peripherals Lecture slides 2006 11 D/A conversion Load, e.g. loudspeaker light bulb heater etc... Digital/Analog Converter Continous signal out Power Amplifier Computer peripherals Lecture slides 2006 12

Digital/Analog Converter (DAC) S 3 S 2 S 1 S 0 r R/8 R/4 R/2 R I I r 1 = R S S S S 8 4 2 1 3 2 1 0 Computer peripherals Lecture slides 2006 13 Digital/Analog Converter (DAC) Switches Currents I tot (ma) S 3 S 2 S 1 S 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 I 0 I 1 I 1 I 0 I 2 I 2 I 0 I 2 I 1 I 2 I 1 I 0 I 0 I 1 I 1 I 0 I 2 I 2 I 0 I 2 I 1 I 2 I 1 I 0 0 0,2 0,4 0,6 0,8 1,0 1,2 1,4 1,6 1,8 2,0 2,2 2,4 2,6 3,8 3,0 I tot ma 3,0 2,8 2,6 2,4 2,2 2,0 1,8 1,6 1,4 1,2 1,0 0,8 0,6 0,4 0,2 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Digital value Computer peripherals Lecture slides 2006 14

A/D conversion Varying Voltage (input) sample and hold control convert bus sample and hold circuit Analog to Digital Converter (ADC) Data bus time Computer peripherals Lecture slides 2006 15 Analog/Digital Converter (ADC): Ramp t1: C is charged from the measured voltage t2: C is discharged Clock Counter Zero Voltage Sense Clock Counter Zero Voltage Sense = t t 2 1 t 1 t 2 t 1 t 2 Computer peripherals Lecture slides 2006 16

Analog/Digital Converter (ADC): Flash V in 7 6 5 4 3 2 8/3 Decoder 111 110 101 100 011 010 001 000 0 1 2 3 4 5 6 7 1 0 Computer peripherals Lecture slides 2006 17 Pulse Width Modulation (PWM) period dutycycle 1 out = 2 out = dutycycle period 3 out = 4 1 out = 4 Period and dutycycle are programmable... Computer peripherals Lecture slides 2006 18

PWM as replacement for DAC bus Data bus period Register dutycycle Register Load, e.g. loudspeaker light bulb heater etc... PWM Continous signal out Power Amplifier Computer peripherals Lecture slides 2006 19 Interrupts A peripheral can interrupt the CP, executing a program by means of a hardware signal, called Interrupt Request. he CP then acknowledge this request, freeze the current program and executes a dedicated Interrupt Handler. When the Interrupt Handler is finished the CP resumes execution of the interrupted program Computer peripherals Lecture slides 2006 20

Interrupts, hardware C P Address/Data/ buses address decode memory Signal: IRQ: (interrupt request) IOinterface Computer peripherals Lecture slides 2006 21 Interrupts, software main program interrupt handler hardware signal IRQ service interrupt RI special instruction: Reurn from Interrupt Computer peripherals Lecture slides 2006 22

Interrupts, multiple interrupt sources CP IRQ memory IRQ handler IRQ from A? N Y dispatch to dedicated interrupt handlers handler A IOinterface A SCI IOinterface B parallel input IOinterface C A/D input IRQ from B? N IRQ from C? Y Y handler B handler C N RI Computer peripherals Lecture slides 2006 23 Conclusion we we have got a brief introduction to to Whats a peripheral? Parallel Input/Output Serial communication A/D and D/A conversion Pulse width modulation Interrupts which finishes today s lecture...... Computer peripherals Lecture slides 2006 24