Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Similar documents
Ali Karimpour Associate Professor Ferdowsi University of Mashhad

2011 Pearson Higher Education, Mazidi, Naimi, and Naimi Pearson Higher Education, 2011 Pearson Higher Education,

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

ATmega128. Introduction

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

Diploma in Embedded Systems

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Module 2: Introduction to AVR ATmega 32 Architecture

Computer Hardware Requirements for Real-Time Applications

ARDUINO MEGA INTRODUCTION

AVR Microcontrollers Architecture

Microcontrollers. Principles and Applications. Ajit Pal +5 V 2K 8. 8 bit dip switch. P2 8 Reset switch Microcontroller AT89S52 100E +5 V. 2.

Introduction to Microcontrollers

Microprocessors/Microcontrollers

AVR MICROCONTROLLER ARCHITECTURTE

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

MICROPROCESSOR BASED SYSTEM DESIGN

8051 Microcontroller

Microcontrollers. Microcontroller

WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company

ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham

Fig 1. Block diagram of a microcomputer

Chapter 1. Microcontroller Overview

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System

PIC Microcontroller and

Basic Components of Digital Computer

Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

Introduction to Microprocessor- Based Control

Department of Electronics and Instrumentation Engineering Question Bank

Architecture of Computers and Parallel Systems Part 6: Microcomputers

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

BASIC INTERFACING CONCEPTS

MICROCONTROLLERS 8051

Introduction to ARM LPC2148 Microcontroller

EE 354 Fall 2015 Lecture 1 Architecture and Introduction

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

Lecture (01) Introducing Embedded Systems and the Microcontrollers By: Dr. Ahmed ElShafee

CS-424/580A Microcontrollers and Robotics

CN310 Microprocessor Systems Design

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core


Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

THE AVR MICROCONTROLLER AND EMBEDDED SYSTEMS. Using Assembly and С

Microcontroller & Interfacing

ME 515 Mechatronics. A microprocessor

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Segment 1A. Introduction to Microcomputer and Microprocessor

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

Introduction to Computers - Chapter 4

ECE 471 Embedded Systems Lecture 2

Microprocessors And Microcontroller

Arduino Uno R3 INTRODUCTION

Microcomputer Architecture and Programming

Choosing a Micro for an Embedded System Application

Lecture 1. Course Overview and The 8051 Architecture

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

EE251: Tuesday December 4

Computer Organization and Microprocessors SYLLABUS CHAPTER - 1 : BASIC STRUCTURE OF COMPUTERS CHAPTER - 3 : THE MEMORY SYSTEM

ELC4438: Embedded System Design Embedded Processor

SARDAR RAJA COLLEGES SARDAR RAJA COLLEGE OF ENGINEERING ALANGULAM

Workshop on Microcontroller Based Project Development

Mohammad Shaffi 1, D Ravi Nayak 2. Dadi Institute of Engineering & Technology,

Babu Madhav Institute of Information Technology, UTU

ECE 471 Embedded Systems Lecture 2

Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack

Question Bank Microprocessor and Microcontroller

Embedded Systems. Read pages

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

XMEGA Series Of AVR Processor. Presented by: Manisha Biyani ( ) Shashank Bolia (

Week 1. Introduction to Microcomputers and Microprocessors, Computer Codes, Programming, and Operating Systems

Lab 1 Introduction to Microcontroller

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

PIC Microcontroller Introduction

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

TKT-3500 Microcontroller systems

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

Distributed Real-Time Control Systems. Module 3 Hardware for Real Time Distributed Control Systems

1 Microprocessors 2 Microcontrollers 3 Actuation sensing, process control

Robotics Training Module ABLab Solutions

(Embedded) Systems Programming Overview

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

EE 308: Microcontrollers

ELCT 912: Advanced Embedded Systems

COMP3221: Microprocessors and. and Embedded Systems. Instruction Set Architecture (ISA) What makes an ISA? #1: Memory Models. What makes an ISA?

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

EE 308: Microcontrollers

MECE336 Microprocessors I

COL862 - Low Power Computing

Overview of Microcontroller and Embedded Systems

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

8. Power Management and Sleep Modes

Lab Course Microcontroller Programming

Transcription:

AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar

Lecture 13 Introduction to Microprocessor-Based Control Topics to be covered include: What a microprocessor and microcontroller. Analog-to-digital converters and digital-to-analog converters. Understand the principles of digital controller software. Various types of available digital controllers, that is, microcontrollers, single-board computers, programmable logic controllers, and personal computers. 2

Microprocessors Microprocessors require additional components to be useful RAM, ROM, etc. 3

Microcontrollers Microcontrollers are essentially microprocessors with built-in features to be used independently. 4

Reasons for Microprocessor Control Low-level signals converted to digital can be transmitted long distances error free. Micro can handle complex calculations. Memory is available for tracking and storage. Loading new programs for control change is easy. Easily connected to networks. 5

Microprocessor System Hardware A computer is made up of four basic blocks: Central Processing Unit (CPU) Does the actual computing. Arithmetic Unit performs math and logic Control: Manages flow of data Memory RAM volatile, read/write memory ROM nonvolatile, read only EPROM/EEPROM/Flash Erasable ROM Input ports Output ports 6

Microprocessor System Hardware 7

Microprocessor Instructions & Op-Codes Each processor has its own instruction set of commands to control its operation. Move data Perform math operations Perform logical operations Each instruction has a unique Op-code, a binary value associated to it. (0100 1101 or 4D). An Accumulator is staging area for data data is moved into it, and operations are performed on that data. 8

Machine Code/Mnemonics/PC Machine Code The program the CPU follows represented in binary or hex. Mnemonics Abbreviations representing an op-code. Programs written in assembly language use mnemonics. Program counter Used to point to the memory address of the instruction to be performed. Fetch-execute cycles Performed to bring an instruction into memory and execute it. 9

Microprocessor Instructions & Op-Codes 10

DAC - Parallel Parallel Interface: Transfers 8-bits (or more) at once. Digital-to-Analog Converter (DAC) converts 8- digital data to analog. 11

DAC Formula & Resolution V out = DAC output analog voltage input = Decimal value of binary input V ref = Reference DC voltage Resolution The worst case error introduced when converting. In an 8-bit DAC, there are 255 possible steps. The resolution is the smallest step size, or 1/255, 0.39%. 12

DAC Example 13

DAC Example 14

ADC Analog-to-Digital converter (ADC): A circuit that converts an analog voltage to digital. 15

ADC Formula & Resolution V in = ADC input analog voltage output = Decimal value of binary input V ref = Reference DC voltage Resolution The worst case error introduced when converting. In an 8- bit ADC, there are 255 possible steps. The resolution is the smallest step size, or 1/255, 0.39%. Conversion Time The time required to convert an analog voltage to digital. 16

ADC Example 17

A Parallel Control System Lecture 13 18

Serial Interface Data is sent 1 bit at a time. Reduces number of cables or lines More easily shielded from noise. Existing data lines may be used (phone). Parallel data must be converted to serial to transmit, and vice-versa on receive. A UART (Universal Asynchronous Transmitter Receiver) is a device which performs this conversion. 19

Serial Interface 20

RS-232 RS-232 is a specification which defines standard for serial interfaces between DTEs (Data Terminal Equipment Computers), and DCEs (Data Communication Equipment Modems, etc). DTE to DTE communications can be performed serially using a cross-over or Null-Modem cable. 21

Controller Programmer Real Time control Program runs in a loop, sensing the current condition and calculating new output to the actuator. Each pass through the program is an iteration or scan. The frequency at which new data is collected is the sampling rate (scan time). Time-delay loops may be inserted to slow the execution or scan time. Programs can be written at the lowest level (machine code, assembler) or high level languages (C), BASIC, etc. 22

Microcontrollers A single-chip computer specifically designed for I/O control. On board RAM, ROM, possibly timers and ADCs. High speed is not required due to low complexity of tasks. Very large cost savings over microcomputers. Use reduced instruction set computer (RISC). Motorola 68HC11, Intel 8051, PIC 16C72, Atmel AVR, BASIC Stamp 23

Most common microcontrollers 8-bit microcontrollers AVR Advanced Virtual RISC Alf-Egil Bogen and Vegard Wollan PIC Programmable Interrupt Controller HCS12 8051 32-bit microcontrollers ARM Advanced RISC Machine PIC32

Motorola 68HC11 Microcontroller Block Diagram 25

Intel 8051 Microcontroller Block Diagram 26

PIC 16C72 Microcontroller Block Diagram 27

AVR Microcontroller Block Diagram (Atmega32) Lecture 13 28

Single-Board Computers A computer on a single board. Programmable for I/O control and the ability to use high level peripherals. 29

Programmable Logic Controllers Self-contained microprocessor based controller. Designed for fast connection and control of processes. Used extensively in industrial control environments. Programs in relay-logic to be compatible to the more traditional electrical workforce. 30

Personal Computers Used in Control Systems PCs with dedicated I/O and data acquisition cards and specialized software may be used as controllers. 31

A little history The PIC appeared around 1980. 8 bit bus executes 1 instruction in 4 clock cycles AVR (1994) 8 bit bus one instruction per cycle

AVR 8-Bit RISC Low Power Consumption 1.8 to 5.5V operation will use all the energy stored in your batteries A variety of sleep modes AVR Flash microcontrollers have up to six different sleep modes fast wake-up from sleep modes

AVR 8-Bit RISC Compatibility AVR Flash microcontrollers share a single core architecture 8 to 100 pins use the same code for all families 1 Kbytes to 256 Kbytes of code all devices have Internal oscillators

Why Atmel s AVR Microcontroller? 1. RISC architecture with mostly fixed-length instruction, loadstore memory access, and 32 general-purpose registers. 2. A two-stage instruction pipeline that speeds up execution. 3. Majority of instructions take one clock cycle 4. Up to 20-MHz clock operation 5. Wide variety of on-chip peripherals, including digital I/O, ADC, EEPROM, Timer, UART, RTC timer, pulse width modulator (PWM), etc 6. Internal program and data memory 7. Available in 8-pin to 64-pin package size to suit wide variety of applications 8. Up to 12 times performance speedup over conventional CISC controllers. 9. Wide operating voltage from 2.7 V to 6.0 V.