Introducing Microcontrollers System Design

Similar documents
Lecture (02) PIC16F84 (I)

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

ME 515 Mechatronics. A microprocessor

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

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

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

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Introduction to Microcontrollers

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

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

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

Microprocessors/Microcontrollers

Basic Components of Digital Computer

Computer Hardware Requirements for Real-Time Applications

AVR Microcontrollers Architecture

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

Embedded Systems. Computer Organization. Wednesday 25 November 15

8051 Microcontroller

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

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Introducing: New Low-Cost & Low Pin Count PIC Microcontrollers for the 8-, 16- & 32-bit Markets

MECE336 Microprocessors I

Midrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017

MICROCONTROLLERS 8051

PIC Microcontroller Introduction

Fig 1. Block diagram of a microcomputer

1 Introduction to Microcontrollers

Choosing a Micro for an Embedded System Application

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 1.

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

ME 6405 Introduction to Mechatronics

ATmega128. Introduction

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

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

Lecture 1. Course Overview and The 8051 Architecture

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

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

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

DERTS Design Requirements (1): Microcontroller Architecture & Programming

HOURS SYLLABUS

Department of Electronics and Instrumentation Engineering Question Bank

EEE394 Microprocessor and Microcontroller Laboratory Lab #6

Microcontroller Basics

ME 475 Lab2 Introduction of PIC and Programming. Instructor: Zhen Wang

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005

Lab 1 Introduction to Microcontroller

CS-424/580A Microcontrollers and Robotics

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core

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

ARDUINO MEGA INTRODUCTION

Overview of Microcontroller and Embedded Systems

Introduction to general architectures of 8 and 16 bit micro-processor and micro-controllers

Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot

EMBEDDED Systems. Functions. MODULE- 1 C programming with data Structure Introduction to C. Array and String. Control Flow Statements In C

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

Embedded Systems. Read pages

Microcontrollers. Microcontroller

MICROPROCESSOR BASED SYSTEM DESIGN

ENE 334 Microprocessors

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

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

Microcomputer Architecture and Programming

Architecture of Computers and Parallel Systems Part 6: Microcomputers

Embedded System Design

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

8051 Microcontrollers

Robotic Systems ECE 401RB Fall 2006

Designing Embedded Systems with PIC Microcontrollers

Alcohol Detection using Pic Microcontroller

Introduction to ARM LPC2148 Microcontroller

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

Introduction to Mechatronics and the Mechatronic Design Center Microchip Technology Incorporated. All Rights Reserved. 1

New 70 MIPS dspic33ep and PIC24EP Family High Performance, Integrated Analog, Easy Migration

WT6510. USB Keyboard Controller (Mask ROM Type)


PIC Microcontroller and

8051 MICROCONTROLLERS

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

Bolt 18F2550 System Hardware Manual

EMBEDDED SYSTEM BASICS AND APPLICATION

MA Unit 4. Question Option A Option B Option C Option D

Trends in Prototyping Systems. ni logic Pvt. Ltd., Pune, India

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

Reminder. Course project team forming deadline. Course project ideas. Friday 9/8 11:59pm You will be randomly assigned to a team after the deadline

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING. BEng(Hons) Electrical and Electronics Engineering SEMESTER 1 EXAMINATION 2016/2017

EMBEDDED SYSTEMS COURSE CURRICULUM

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming

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

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

Embedded System Curriculum

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

Overview The Microcontroller The Flex Board Expansion boards Multibus board Demo board How to: Compile demo Flash & Run Demos

Introduction to 8051 microcontrollers

Programming 8-bit PIC Microcontrollers in С

EE 308: Microcontrollers

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

Introduction to L.A.P. 1

Transcription:

Introducing Microcontrollers System Design Eng. Ahmed S. Afifi 1

What is a Microcontroller? Mini-Computer CPU (Brain) 1. Arithmetic Logic Unit (ALU) 2. Control Unit 3. Register Program/ Data Memory Peripherals (Input/Output) Buses (data, address and control) 2

Computer Essentials 3

Von Neumann and Harvard Computers 4

Microcontrollers 5

Microprocessors vs. Microcontrollers - Microprocessors Data BUS General Purpose Micro processor Address BUS RAM ROM Timer Serial COM Port IO Port Control BUS - Microcontrollers CPU RAM ROM Serial Port Timer I/O 6

Embedded System General Block Diagram sensor sensor sensor Sensor conditioning Microcontroller (uc) Output interfaces actuator indicator 7

Types of microcontrollers 8

Microcontroller Packaging and Appearance From left to right: PIC 12F508, PIC 16F84A, PIC 16C72, Motorola 68HC05B16, PIC 16F877, Motorola 68000 9

What are PIC s? Programmable Intelligent Computer Developed by Microchip Technology in 1975 Microcontrollers NOT Microprocessors Microprocessor system with number of components (EEPROM, RAM, I/O Support) http://o.mneina.googlepages.com/what_is_microcontroller.htm 10

Why Important? Applications Automotive systems Airplanes Toys Medical Devices Furniture 11

Why Important? Appliances Human interface: Touch Screen Display, Button Control, Audio handling Home systems: Heating & Cooling, Security Cell phones Microchip Human Interface Lab (http://www.microchip.com/stellent/) GSM Phone hacked (http://hackedgadgets.com) 12

Examples: Refrigerator 13

Examples: Car Door 14

Examples: Robot Autonomous Guided Vehicle 15

PIC Families PIC Family Stack Size Instruction Word Size No of Instructions Interrupt Vectors 12CX/12FX 2 12- or 14-bit 33 None 16C5X/16F5X 2 12-bit 33 None 16CX/16FX 8 14-bit 35 1 17CX 16 16-bit 58 4 18CX/18FX 32 16-bit 75 2 C implies CMOS technology; Complementary Metal Oxide Semiconductor F insert indicates incorporation of Flash memory technology Example: 16C84 was the first of its kind. It was later reissued as the 16F84, incorporating Flash memory technology. It was then reissued as 16F84A. 16

PIC Families Divided into families 8-bit: 8F, 16F, 18F 16-bit: 24F, ds33f 32-bit: 32F Minor differences Power Consumption Speed Package size Memory Capacity 17

PIC Families 8-bit: Max Speed 20 MIPS (mill. instr / sec) Generally 4 cycle processor Memory Range <1kB to 128kB instruction up to 32 kb data 16-bit: Max speed 40 MIPS 2 Cycle Processor Memory Range <1kB to 256kB instruction up to 32kB data 32-bit: Max speed 80 MIPS 5 stage pipeline, out of order Memory Range 32kB to 512kB instruction up to 32kB data 18

v http://www.microchip.com/stellent/images/mchpsiteimages/en537986.jpg 19

PIC16Fxxx Microcontroller PIC 16F84A Architecture, Instructions, Applications Microcontroller PIC 16F877 Architecture, Applications with, Keypad, LCD, Stepper motors, Analog to digital conversions, Timers, PWM, Serial communications, graphical LCD 20

Programming Languages ASM Low level Full Control C, BASIC, Forth, LOGO. Easy to use Slow 21

Software Requirements 1. Proteus. 2. MPLAB, MPASM 3. MicroC. 4. QL-2006 programmerpic simulator. 22

Hardware Requirements 1. Pc. 2. QL-2006 Programmer.. 3. Other components as: pic16f84a..pic16f877a..breadboard.. resistors.capacitors LCD sensor Oscillator..power supply 23

Oscillator 24

25

Necessary Connections PIC can be bread-boarded, with the following important connections: Power Ground Reset signal Crystal (oscillator) 26

PIC16F84A The PIC16F84A belongs to the mid-range family. 18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller. Harvard architecture. Only 35 single word instructions to learn. Operating speed 20 MHz clock input /200 ns instruction cycle. 25 ma sink/source max. Per pin. 10,000 erase/write cycles Enhanced FLASH Program memory typical. 10,000,000 typical erase/write cycles EEPROM Data memory typical. 27

PIC16F84A 15 Special Function Hardware registers. Direct, indirect and relative addressing modes Four interrupt sources: 1- External RB0/INT pin 2- TMR0 timer overflow 3- PORTB<7:4> interrupt-on-change 4- Data EEPROM write complete The program memory contains 1K words. 14-bit wide instruction words. 8-bit wide data bytes. The data memory (RAM) contains 68 bytes Data EEPROM is 64 bytes. 28

PIC16F84A 29

Program Memory 30

Data Memory 31

First Application (Buffer) 32

First Application (Buffer) 33

ان شاء الله لما نخلص الكورس ھتعرف تقرا قیم بالمیكرو (دیجیتال او انالوج ( تخرج قیم على المیكروDI\O تعرف تربط المیكروكنترولر بالكمبیوتر وتبادل البیانات ما بینھم تعرف تربط المیكروكنترول بال LCD نعرف نتعامل مع الاشارات الانالوج تعرف تتحكم بالmotor Dc 34

35

THANK YOU 36