Introduction to Microcontroller Technology

Slides:



Advertisements
Similar presentations
MC68HC11 System Overview. System block diagram (A8 version)
Advertisements

PCEL4303 MICROPROCESSOR & MICRO CONTROLLERS MODULE - I (10 hours) Microprocessor Architecture: Microprocessor and Microcomputer Architecture, Pins & Signals,
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Processor System Architecture
Microcontroller – PIC – 4 PIC types PIC architecture
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Microcontroller based system design
6. The CPU and Memory Chapt. 7.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
COMPONENTS OF THE SYSTEM UNIT
INTRODUCTION TO MICROCONTROLLER. What is a Microcontroller A microcontroller is a complete microprocessor system, consisting of microprocessor, limited.
EC4012PA PIC 18F Introduction 2  Processor  Input Devices  Output Devices  Memory Devices 3.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
Introduction to Computing: Lecture 4
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
November SSI Small Scale Integration Up to 12 equivalent gate circuits on a single chip Includes basic gates and flip-flops.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Internal Input/Output Devices (I/O Subsystems)
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Microprocessor-based Systems
General Concepts of Computer Organization Overview of Microcomputer.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
MICROOCESSORS AND MICROCONTROLLER:
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Computer operation is of how the different parts of a computer system work together to perform a task.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
Computers Are Your Future Tenth Edition Inside the System Unit 1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Know Difference Between Microprocessors and Microcontrollers.
Unit Microprocessor.
Embedded Microcontroller Systems
Computers Are Your Future Tenth Edition
Seminar On 8085 microprocessor
Popular Microcontrollers and their Selection by Lachit Dutta
COURSE OUTCOMES OF Microprocessor and programming
Atmega32 Architectural Overview
Computer Hardware – System Unit
Embedded Microcontroller Systems
Microprocessor Systems Design I
UNIT – Microcontroller.
Discovering Computers 2011: Living in a Digital World Chapter 4
Chapter 7.2 Computer Architecture
Microprocessor Systems Design I
Computer Architecture
Introduction of microprocessor
introduction to computer
Principles & Applications
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Dr. Michael Nasief Lecture 2
Programming Microcontroller
The Arduino Microcontroller: Atmel AVR Atmega 328
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Lecture 3 The Hardware.
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Microprocessor & Assembly Language
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Unit – Microcontroller Tutorial Class - 2 ANITS College
Registers.
Components of a CPU AS Computing - F451.
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
ADSP 21065L.
Presentation transcript:

Introduction to Microcontroller Technology Basic Concepts Introduction to Microcontroller Technology

What is a Computing System ? Hardware & Software CPU Control unit Arithmetic Logic Unit Registers communication bus MEMORY Program Storage Data Storage OUTPUT UNIT INPUT UNIT URL: Ubiquitous

What is a Microprocessor ? Pentium 4 microphotograph

Inside the Microprocessor

Microprocessor Basic Operation Program (instructions) and Data are stored in Memory Each instruction is read (fetched) from memory, interpreted (decoded), and executed Arithmetic Logic Unit (ALU) performs operations on data Data is transferred (register, memory, I/O) Program Counter (PC) indicates current location of program in Memory and is automatically incremented after each instruction Each instruction can take several clock cycles Decode Fetch Execute

What is a Microcomputer System ? It is a computing system based on microcontroller.

Microcontroller System The buffers and converters condition I/O signal levels if necessary The bus is a group of signals (data, address, control signal) with a common purpose. The clock circuit generates a fixed-frequency, timing signal for the entire system. The power supply converts a raw power source into the DC voltage (nominally 5V) required by the system.

An example of microcontroller system (MC68HC11EVBU evaluation board)

Microcontroller Integrated system designed to operate as an embedded computing system (= a computer which is part of a larger system) It is composed by: microprocessor (CPU), ROM (for the program), RAM (for the data) I/O ports (to communicate/interface with external resources), Peripheral devices (to make easier the interfacing and implementation of the desired functionalities),

Common Applications Consumer: Communication: Automotive: Washing machine, Remote controls Clocks and watches Games and Toys Audio/video Communication: Telephone systems, Answering machines Cell phones and pagers Networking (ATM, credit cards, Ethernet) Automotive: Safety devices (Automatic Braking System, Airbag) Motor control (ignition, exhausts) Power windows and seats Instrumentation

Common Applications Military: Industrial: Medical: Guidance systems Global positioning systems Target recognition systems Industrial: Traffic control Robotics Production plants Inventory and stock management Medical: Cardiac monitors Renal Monitors Pacemakers Dialysis machines

Microcontroller Organization

Microcontroller Functional Units CPU: Central Processing Unit (4,8,16,32 bit data bus) ROM: Read Only Memory (Firmware) RAM: Random Access Memory (Register File, Processor Stack, Temporary data) PIO: Parallel I/O (relays, sensors) INT: Interrupt Inputs (external/internal sources) UART: Universal Asynchronous Receiver Transmitter (e.g. RS232) GPT: General Purpose Timer (optional event counter) PWM: Pulse Width Modulator (motor controller) WDT: Watch Dog Timer (automatic reset) AIO: Analog I/O (ADC & DAC)

Memory basic concepts Digital data is stored in the form of binary numbers, however it is often represented using the hexadecimal numbering system. The bit is the smallest digital unit, and is either 1 or 0. A byte is defined to be 8 bits. A word varies from processor to processor and can be 8, 16, 32 or more bits. Normally, the byte is the smallest addressable unit; however, it is possible to address individual bits in I/O registers. Motorola convention: binary number are prefixed by % and hexadecimal numbers by $

Memory basic concepts

Memory Types The main types of semiconductor memory are: ROM – Read Only Memory RAM – Random Access Memory EPROM – Erasable Programmable Read Only Memory EEPROM – Electrically Erasable Programmable Read Only Memory

The Bus The bus provides the communication infrastructure among the various components of the system Data bus carries the information being transmitted/received. Address bus tells where the information is being transferred to/from. Control bus specifies when the information transfer take place by coordinating the access to the data bus and the address bus, and directs the data from/to the specific components.

Motorola 68HC11 The 68HC11 is a family of 8 bit microcontroller (MCU). The chip used in this class is: MC68HC11E1CFN2

68HC11E1 Features 8-bit CPU Power Saving STOP and WAIT Modes Low-Voltage Devices Available (3.0-5.5 Vdc) 512 Bytes of On-Chip RAM, Data Retained During Standby 512 Bytes of On-Chip EEPROM Asynchronous Non-return to Zero (NRZ) Serial Communications Interface (SCI) Synchronous Serial Peripheral Interface (SPI) 8-Channel 8-Bit Analog-to-Digital (A/D) Converter 16-Bit Timer System Three Input Capture (IC) Channels Four Output Compare (OC) Channels One Additional Channel, Selectable as Fourth IC or Fifth OC

Comparison between A and E series

68HC11E Pin Assignments

68HC11E block diagram

Memory Map A memory map is a graphical way of showing how the memory space of the microcontroller is divided. The map indicates the type (RAM, ROM, etc.), size and boundaries of each part of the memory space. NOTE: 1 KB = 1024 (=210) bytes of memory. The 68HC11 uses a 16-bit address, which means it can directly address 216 (=65,536) memory locations.

Memory Map of the MC68HC11E1

68HC11E1 operating modes

68HC11 CPU Registers CPU registers are used solely to perform general-purpose operation such as arithmetic, logic and program flow control. CPU registers do not occupy the 68HC11 memory space.