Components of a typical full-featured microcontroller.

Slides:



Advertisements
Similar presentations
MICROPROCESSORS AND MICROCONTROLLERS
Advertisements

Introduction to PIC Microcontrollers
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Interfacing to Microprocessors
EMBEDDED SYSTEMS. Special purpose system which are used as either standalone or part of big system. An embedded product uses a microprocessor or microcontroller.
Microcontroller – PIC – 4 PIC types PIC architecture
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Micro-controller or embedded controller
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Parallel ports, power supply, and the clock oscillator Chapter Three Dr. Gheith Abandah1.
The 8051 Microcontroller Architecture
Microcontroller based system design
Microcontroller: Introduction
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
SENIOR DESIGN 10/3.
The domestic refrigerator-An example A car door mechanism.
Lecture – 6 PIC18 Family Hardware Specifications 1.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Minimum Systems and the PIC 16F84A Chapter Two Dr. Gheith Abandah1.
MICROCONTROLLERS. What is a microcontroller? A microcontroller is a nifty little gadget that houses a microprocessor, ROM (Read Only Memory), RAM (Random.
Objectives How Microcontroller works
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.
The 8051 Microcontroller and Embedded Systems
1 AVR Session 2 Master : Dr.jafari Authors: M.H Edrisi, hadi.edrisi yyyy aaaa hhhh oooo oooo.... cccc oooo mmmm.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Microprocessors A practical approach Subjects Goals for this module Results Subjects of the module Plans Questions.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Designing with Components Wilmer Arellano. How to chose a Microcontroller Choose one that you are familiar with or that is easy to learn.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
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.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
MCS51 - lecture 6. Lecture 6 1/32 Extending MCS51 system Built-in peripherals MCS51 family.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Presented by Sadhish Prabhu
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
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.
Chapter Microcontroller
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
Product Overview 박 유 진박 유 진.  Nordic Semiconductor ASA(Norway 1983)  Ultra Low Power Wireless Communication System Solution  Short Range Radio Communication(20.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
15: Microprocessor and microcontroller
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
 Mini-Computer ◦ Microprocessor  The Brains  Arithmetic Logic Unit (ALU)  Control Unit  Program/ Data Storage  Peripherals (Input/Output)  Low-Cost.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Popular Microcontrollers and their Selection by Lachit Dutta
DTMF BASED REMOTE INDUSTRIAL LOAD AND/OR AGRICULTURAL PUMP CONTROL
AVR ATMEGA 8 MICRO-CONTROLLER
UNIT – Microcontroller.
Project Title EVM IN PIC Under the Guidance of Submitted by.
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
Introducing the PIC Mid-Range Family and the 16F84A
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
EECE.3170 Microprocessor Systems Design I
Presentation transcript:

Components of a typical full-featured microcontroller.

The PIC Microcontroller Family

Memory Type – Flash – OTP (One-time-programmable) – ROM (Read-only-memory) – ROMless PIC microcontrollers are available with many different specifications depending on:

Input–Output (I/O) Pin Count – 4–18 pins – 20–28 pins – 32–44 pins – 45 and above pins

Memory Size – 0.5–1 K – 2–4 K – 8–16 K – 24–32 K – 48–64 K – 96–128 K

Special Features – CAN – USB – LCD – Motor Control – Radio Frequency

All PIC microcontrollers offer the following features: RISC instruction set with only a handful of instructions to learn Digital I/O ports On-chip timer with 8-bit prescaler Power-on reset Watchdog timer Power-saving SLEEP mode High source and sink current Direct, indirect, and relative addressing modes External clock interface RAM data memory EPROM or Flash program memory

Some devices offer the following additional features: Analog input channels Analog comparators Additional timer circuits EEPROM data memory External and internal interrupts Internal oscillator Pulse-width modulated (PWM) output USART serial interface

Some even more complex devices in the family offer the following additional features: CAN bus interface I2C bus interface SPI bus interface Direct LCD interface USB interface Motor control

Selection Criteria Although there are several hundred models of PIC microcontrollers, choosing a microcontroller for an application is not a difficult task and requires taking into account these factors: Number of I/O pins required Required peripherals (e.g., USART, USB) The minimum size of program memory The minimum size of RAM Whether or not EEPROM nonvolatile data memory is required Speed Physical size Cost

main groups 12-bit instruction word (e.g., 12C5XX, 16C5X) (also referred to in this book as the 12 Series and the 16C5X Series) 14-bit instruction word (e.g., 16F8X, 16F87X) (also referred to in this book as the 16 Series) 16-bit instruction word (e.g., 17C7XX, 18C2XX) (also referred to in this book as the 17 Series and the 18 Series).

12-bit Instruction Word

PIC12C508: This is a low-cost, 8-pin device with EPROM program memory, and 25 bytes of RAM data memory. The device can operate at up to 4-MHz clock input and the instruction set consists of only 33 instructions. The device features six I/O ports, 8-bit timer, power-on reset, watchdog timer, and internal 4-MHz oscillator capability. One of the major disadvantages of this microcontroller is that the program memory is EPROM-based and it cannot be erased or programmed using the standard programming devices. The program memory has to be erased using an EPROM eraser device (an ultraviolet light source).  The “F” version of this family (e.g., PIC12F508) is based on fl ash program memory, which can be erased and reprogrammed using the standard PIC programmer devices.  The “CE” version of the family (e.g., PIC12CE518) offers an additional 16-byte nonvolatile EEPROM data memory.

PIC12F508 Microcontroller

PIC16C5X This is one of the earliest PIC microcontrollers. The device is 18-pin with a EPROM program memory, 25 bytes of RAM data memory, 12 I/O ports, a timer, and a watchdog. Some other members in the family, such as PIC16C56, have the same architecture but more program memory ( ). PIC16C58A has more program memory ( ) and also more data memory (73 bytes of RAM

PIC16C56 Microcontroller

14-bit Instruction Word This is a big family that includes many models of PIC microcontrollers. Most of the devices in this family can operate at up to a 20-MHz clock rate. The instruction set consists of 35 instructions. These devices offer advanced features such as internal and external interrupt sources.

PIC16F84: This has been one of the most popular PIC microcontrollers for a very long time. This is an 18-pin device and it offers flash program memory, 36 bytes of data RAM, 64 bytes of nonvolatile EEPROM data memory, 13 I/O pins, a timer, a watchdog, and internal and external interrupt sources. The timer is 8 bits wide but can be programmed to generate internal interrupts for timing purposes. PIC16F84 can be operated from a crystal or a resonator for accurate timing. A resistor-capacitor can also be used as a timing device for applications where accurate timing is not required. Figure 1.3 shows the pin configuration of this microcontroller.

PIC16F84 Microcontroller Pin Descriptions

PIC16F84 Microcontroller Pin Configuration

PIC16F877: This microcontroller is a 40-pin device and is one of the popular microcontrollers used in complex applications. The device offers x14 flash program memory, -368 bytes of RAM, 256 bytes of nonvolatile EEPROM memory - 33 I/O pins - 8 multiplexed A/D converters with 10 bits of resolution -PWM generator -three timers, an analog capture and comparator circuit - USART - internal and external interrupt facilities.

16-bit Instruction Word The 16-bit microcontrollers are at the high end of the PIC microcontroller family. Most of the devices in this group can operate at up to 40 MHz They have 33 I/O pins, and three timers. They have 23 instructions in addition to the 35 instructions found on the 14-bit microcontrollers.

Microcontroller specification Product Identification Code. The device number. If it is a Windowed, an OTP, or flash device. The windowed device is specified by a JW suffix. OTP devices are specified by Oscillator Frequency, and the Flash devices are specified with an F such as 16F84. The oscillation frequency, usually 04 for devices working up to 4MHz., 10 up to 10MHz or 20 up to 20MHz. 20MHz devices are of course more expensive than 4MHz devices. Temperature range, for general applications 0C to 70C is usually specified

PIC configurations

Microcontroller hardware

Microcontroller clock In the 16F84 microcontroller there are 4 oscillator options An RC (Resistor/Capacitor) oscillator which provides a low cost solution. An LP oscillator, i.e. 32kHz crystal, which minimises power consumption. XT. This is the standard crystal configuration. It is intended for crystals or resonators in the range 1–4 MHz. HS is the high-speed oscillator option. It recognises that higher frequency crystals, and ceramic resonators in general, require a higher drive current. It is intended for crystal frequencies in the region of 4MHz or greater, and/or ceramic resonators. It leads to the highest current consumption of all the oscillator modes. Common crystal frequencies would be 32kHz, 1MHz, 4MHz, 10MHz and 20MHz.

Crystal or ceramic, HS, XT or LP Resistor–capacitor

Microcontroller power supply

7805, Voltage regulator circuit For example if Vin = 24v, the output of the 7805 will be 5v, so the 7805 has 24-5= 19v across it. If it is supplying a current of 0.5amp to the circuit then the power dissipated (volts current) is 19 x 0.5 = 9.5watts. The regulator will get hot! and will need a heat sink to dissipate this heat. If a supply of 9v is connected to the regulator it will have 4v across it and would dissipate 4 x 0.5 = 2watts. In the circuits used in this course the microcontroller only requires a current of 15mA so most of the current drawn will be from the outputs. If the output current is not too large say <100mA (0.1A) then with a 9v supply the power dissipated would be 4 x0.1 =0.4watts and the regulator will stay cool without a heatsink.

Reset Circuit Reset is used to put the microcontroller into a known state. Normally when a PIC microcontroller is reset, execution starts from address 0 of the program memory. This is where the first executable user program resides. The reset action also initializes various SFR registers inside the microcontroller. PIC microcontrollers can be reset when one of the following conditions occur: Reset during power on (POR – Power On Reset) Reset by lowering MCLR input to logic 0 Reset when the watchdog overfl ows. Using the Power on Reset Using an External Reset Button

Circuits