Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Instructor: Eng.Moayed N. EL Mobaied
POWER ELECTRONICS Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department بسم الله.
TK2633 Introduction to Parallel Data Interfacing DR MASRI AYOB.
Engineering 4862 Microprocessors Lecture 23 Cheng Li EN-4012
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
Microcontroller – PIC – 4 PIC types PIC architecture
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Micro-controller or embedded controller
Parallel ports, power supply, and the clock oscillator Chapter Three Dr. Gheith Abandah1.
Digital I/O Connecting to the Outside World
Microprocessor and Microcontroller Based Systems
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microcontroller: Introduction
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
The domestic refrigerator-An example A car door mechanism.
Microprocessor Block Diagram
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Input/Output mechanisms
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
Software; Nature, Capabilities and Limitations: describe the need for interfacing with peripherals storage devices, input and output devices and display.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Microprocessor-Based System. What is it? How simple can a microprocessor-based system actually be? – It must obviously contain a microprocessor otherwise.
POWER ELECTRONICS Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department بسم الله.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessor-based Systems
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
Chapter 7 Larger Systems and the PIC 16F873A The aims of this chapter are to introduce: The architecture of the 16F873A microcontroller; The 16F873A memory.
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
POWER ELECTRONICS Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department بسم الله.
Basic LED Interface.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Chapter 3 Parallel Ports, Power Supply and the Clock Oscillator The aims of this chapter are to introduce: Why we need parallel input/output; How simple.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
8255:Programmable Peripheral Interface
Components of a typical full-featured microcontroller.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Memory Interface EEE 365 [FALL 2014] LECTURER 12 ATANU K SAHA BRAC UNIVERSITY.
Instructor: Eng.Moayed N. EL Mobaied
For further information
UNIT – Microcontroller.
Dr. Michael Nasief Lecture 2
EE Embedded Systems Fall 2015
Introduction to Microprocessors and Microcontrollers
Interfacing Memory Interfacing.
Tiny Computers, Hidden Control
EE Embedded Systems Fall 2015
Introducing the PIC Mid-Range Family and the 16F84A
EECE.3170 Microprocessor Systems Design I
Microprocessor I 7/18/2019.
Presentation transcript:

Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical Engineering Department بسم الله الرحمن الرحيم EELE 4315 — Fall 2010 Lecture 9

Almost any embedded system needs to transfer digital data between its CPU and the outside world. This transfer falls into a number of categories, which can be summarised as: Direct user interface, including switches, keypads, light emitting diodes (leds) and displays; Input measurement information, from external sensors, possibly being acquired through an analog to digital converter; Output control information, for example to motors or other actuators; Bulk data transfer to or from other systems or sub-systems, moving in serial or parallel form, for example sending serial data to an external memory. How can we provide the required interface between the microcontroller core and the outside world? More precisely, how do we get the data onto or off the data bus at the right moment? Why Digital Input/Output? Digital Input/Output and the 16F84A

Parallel Output We could apply a circuit like this for output. Here a pulse on the Port Select line captures data on the bus at that instant, and transfers it to the external pin. Data Bus External Pin Port Select QD Two lines of External Pin QD Read/Write Flip-flop latches data bus value onto external pin, when memory location is selected, AND Write is active high whenever port address is selected Digital Input/Output and the 16F84A

Parallel Input Data Bus External Pin Port Select Two lines of buffer transfers logic value on external pin onto data bus line, when memory location is selected, AND Read is active External Pin Read/Write Or we could apply a circuit like this for input. Here a pulse on the Port Select line transfers data on the external pin at that instant to the data bus. Digital Input/Output and the 16F84A

A Bi-Directional Port Pin Driver Circuit Or, we could combine both circuits into one multi- function circuit, like this. You don’t need to grasp all the detail of this circuit, although it’s neat if you can. There is now an extra flip- flop, labelled “Direction”. The state of this decides in which direction data will flow. The two flip-flops shown can each form one bit in an SFR, which can be controlled from the CPU. A group of these bits, each driven by a circuit like this, is called a “port D Q D Q "Direction" "Data" I/O Pin Read/Write Port Select Direction Select Data Bus (bit n of an 8-bit port) (bit n) Output Buffer Input Buffer Alternate Input Function "Data" SFR "Direction" SFR Read Port Write Port Write DDR buffer, enabled when pin is output determines whether port bit is input or output 8 of these flip-flops form the "Data Direction" SFR 8 of these the "Data" SFR holds bit output value flip-flops form D Q D Q "Direction" "Data" I/O Pin Read/Write Port Select Direction Select Data Bus (bit n of an 8-bit port) (bit n) Output Buffer Input Buffer Alternate Input Function "Data" SFR "Direction" SFR Read Port Write Port Write DDR buffer, enabled when pin is output determines whether port bit is input or output 8 of these flip-flops form the "Data Direction" SFR 8 of these the "Data" SFR holds bit output value - flip-flops form Digital Input/Output and the 16F84A

Holds output data Value held determines data direction Output buffer 0 on this line enables output buffer From Option Register Decoded address lines Digital Input/Output and the 16F84A

Port Input Characteristics When designing with microcontroller digital I/O one needs to have an understanding of their electrical characteristics. 16F84A Input Characteristics The input of a logic gate or port pin requires the voltage to be below a certain maximum in order to be recognised as a logic 0, or above a certain minimum to be recognised as a logic 1. Minimum Input High Voltage, V IH 2.4V(TTL buffer inputs) Maximum Input Low Voltage, V IL 0.8V(TTL buffer inputs) Input Leakage Current, I IL +1  A PIC 16F84A Port Input Characteristics (5V power supply) Digital Input/Output and the 16F84A

Simple Digital Interfacing – connecting to switches Digital Input/Output and the 16F84A

Light Emitting Diodes (leds) - Review High Efficiency Red Yellow Digital Input/Output and the 16F84A

a) Gate Output Sourcing b) Gate Output Sinking Current to LED Current from LED Driving LEDs from Logic Gates (and hence Port Bit Outputs) I R D I R V D D V S V D current flows out of the gate and lights led when output is at logic 1 current flows into gate and lights led when output is at logic 0 Digital Input/Output and the 16F84A

PIC Microcontrollers Families PIC controllers are roughly classified by Microchip into three groups: baseline, mid-range, and high performance. Within each of the groups the PICs are classified based on the first two digits of the PIC’s family type. However, the sub classification is not very strict, since there is some overlap. For this reason we find PICs with 16X designations that belong to the baseline family and others that belong to the mid-range group.

Baseline PIC Family This group includes members of the PIC10, PIC12, and PIC16 families. The devices in the Baseline group have 12-bit program words and are supplied in 6- to 28-pin packages. The microcontrollers in the baseline group are described as being suited for battery-operated applications since they have low power requirements. The typical member of the Baseline group has a low pin count, flash program memory, and low power requirements.

Baseline PIC Family “PIC 10 Devices”

Baseline PIC Family “PIC 12 Devices”

Mid-range PIC Family The mid-range PIC family includes members of the PIC12 and PIC16 groups. According to Microchip, the mid-range PICs all have 14-bit program words with either flash or OTP program memory. Those with flash program memory have EEPROM data memory and support interrupts. Some members of the mid-range group have USB, I2C, and converters A/D.

Mid-range PIC Family Implementations range from 8 to 64 pins. This is by far the most extensive PIC family. Currently, over 80 versions of the PIC16 are listed in production by Microchip. The Microchip website has more detailed information on these devices.

Mid-range PIC Family

High-Performance PIC Family The high-performance PICs belong to the PIC18 group. They have 16-bit program words, flash program memory, a linear memory space of up to two Mbytes, and protocol-based communications facilities. They all support internal and external interrupts and have a much larger instruction set than members of the baseline and mid-range families.

High-Performance PIC Family The PIC18 family is also a large one, with over 70 different variations currently in production. The PIC18 family uses 16-bit program words and are furnished in 18 to 80 pin packages. Microchip describes the PICs in this family as high-performance with integrated A/D converters. They have 32-level stacks and support interrupts. The instruction set is much larger and starts at 79 instructions. The PICs in this family have flash program memory, a linear memory space of up to 2 Mbytes, 8-by-8 bit hardware multiplier, and communications peripherals and protocols.

High-Performance PIC Family