Microcontroller – 2 PIC.

Slides:



Advertisements
Similar presentations
Microcontroller – 3 PIC.
Advertisements

ECP2036 Microprocessor and Interfacing
Dec Hex Bin Prof. Sari Kulthm. MICROPROCESSORS – CET2123C Lecture 2 – HCS History and Features.
The 8051 Microcontroller and Embedded Systems
Chapter 1 The 8051 Microcontroller
CHAPTER 1 THE 8051 MICROCONTROLLERS. Microcontroller vs. General- Purpose Microprocessor General-purpose microprocessors have ◦ No RAM ◦ No ROM ◦ No I/O.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Engr. M.K.Debnath1 Microcontroller and PLC Eng. ISRAFIL KHAN. DIPLOMA IN ELECTRONIC.
Microcontroller – PIC – 4 PIC types PIC architecture
Introducing Embedded Systems and the Microcontrollers
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
Smarter systems and the PIC® 18FXX2 Chapter One 12.1 – 12.5 Dr. Gheith Abandah1.
The 8051 Microcontroller Architecture
Microcontroller: Introduction
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
The domestic refrigerator-An example A car door mechanism.
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
ATMEL AVR 8 bit RISC MICROCONTROLLERS
MCU – Microcontroller Unit – 1 MCU  1 cip or VLSI core – application-specific.
Introduction to Microcontrollers Dr. Konstantinos Tatas
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.
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.
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
ECE Lecture 1 1 Introduction to Microcontrolllers Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
1 The /27/ Today over fifty companies produce variations of the Several of these companies have over fifty versions of the 8051.
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.
Embedded System. What is an Embedded System? Computing systems embedded within electronic devices Hard to define – Nearly any computing system other than.
MICROOCESSORS AND MICROCONTROLLER:
Components of a typical full-featured microcontroller.
15: Microprocessor and microcontroller
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Introducing Embedded Systems and the Microcontrollers Chapter One.
Introduction to Microcontroller Technology
Embedded Microcontroller Systems
MCU – Microcontroller Unit – 1
Popular Microcontrollers and their Selection by Lachit Dutta
SHRI S’AD VIDYA MANDAL INSTITUTE OF TECHNOLOGY
Embedded Systems Programming
Microcontroller.
Hoda Roodaki AVR Family Overview Hoda Roodaki
Government Engg College Bhuj E. C. Engg. Department
ATMEL AVR 8 bit RISC MICROCONTROLLERS
MICROCONTROLLER ARCHITECTURE & ASSEMBLY LANGUAGE PROGRAMMING
Microprocessor and Microcontroller Fundamentals
Introducing Embedded Systems
Embedded Microcontroller Systems
MCI PPT AVR MICROCONTROLLER Mayuri Patel EC-1 5th sem
Microprocessors and Programming Department of Mechatronics Engineering
MCU – Microcontroller Unit – 2
Modified Harvard Architectures
Introduction Definition of Embedded Systems Examples
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.
Introducing Embedded Systems and the Microcontrollers
AVR Microcontrollers Prepared By: Disha Ruparelia ( )
Why microcontrollers in embedded systems?
Chapter 1: The 8051 Microcontrollers
Introduction to Microprocessors and Microcontrollers
Tiny Computers, Hidden Control
EE Embedded Systems Fall 2015
ریز پردازنده. ریز پردازنده مراجع درس میکروکنترلرهای AVR برنامه نویسی اسمبلی و C محمدعلی مزیدی، سپهر نعیمی و سرمد نعیمی مرجع کامل میکروکنترلرهای AVR.
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Introducing the PIC Mid-Range Family and the 16F84A
CHAPTER 1 THE 8051 MICROCONTROLLERS
MCU – Microcontroller Unit – 2
Microprocessors and Programming Department of Mechatronics Engineering
Presentation transcript:

Microcontroller – 2 PIC

Various companies Freescale semiconductor’s –x Motorola] 68HC11 Intel – 8051 Atmel – AVR Zilong – Z8 Microchip technology – PIC etc.

PIC – Peripheral Interface Controller by Microchip Tech. Corp.

PIC Microcontrollers Peripheral Interface Controller (PIC) was originally designed by General Instruments In the late 1970s, GI introduced PIC® 1650 and 1655 – RISC with 30 instructions. PIC was sold to Microchip Features: low-cost, self-contained, 8-bit, Harvard structure, pipelined, RISC, single accumulator, with fixed reset and interrupt vectors. Dr. Gheith Abandah

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 12-bit 16CX/16FX 8 14-bit 35 1 17CX 16 16-bit 58 4 18CX/18FX 32 75 ‘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. Dr. Gheith Abandah

12 Series PIC The small 12F508 Dr. Gheith Abandah

PIC 12F508/509 pin connection diagram Dr. Gheith Abandah

The 12F508 Architecture Dr. Gheith Abandah

Microchip is the no. 1 supplied of 8-bit microcontrollers! 8 pins Small Data RAM Few hundred bytes of on-chip (program [code]) ROM One timer Few pins for I/O ports 8-bit processor – CPU can work on only 8-bits of data at a time Q: if data is larger than 8 bits?  Break it into 8-bit pieces to be processed by the CPU

PIC… - Upwardly compatible in terms of software, when going from one family to another family? Not always – prob! E.g., PIC12xxx has 12-bit wide instructions PIC16xxx has 14-bit wide instructions PIC18xxx has 16-bit wide instructions & many new instructions *So, to run a prog in PIC18 – but written for PIC12 – we MUST recompile the prog, & – possibly change some register locations before loading it into the PIC18.

PIC18xxx Highest-performance 8-bit microcontroller ~ 18- to 80-pin packages Now, no 8-pin versions of PIC18 [others have] Q. RISC or CISC architecture? RISC!

PIC18 RISC Data RAM On-chip (program [code]) ROM Data EEPROM - Q. What is EEPROM? I/O ports Peripherals – e.g., Timers ADC – Q. What is ADC? USART - Universal Asynchronous Receiver/Transmitter

Read Simplified view of a PIC microcontroller PIC18, PIC16 block diagrams

ROM – why? To store programs – hence, called program/code ROM PIC18 has 2MB of prog ROM space This ROM type may be of – Flash OTP Masked [more in Ch. 14]

PIC mcc with UV-EPROM Need PROM burner Need UV-EPROM eraser to erase the contents of ROM The window of the U…M chip allows the UV light to erase the roM ~20min to erase the chip before it can be programmed again hence, need flash version of the PIC family [see Table 1-2]

PIC18Fxxx with flash memory F – for flash Flash version can erase in seconds Need a ROM burner that supports flash mem But a ROM eraser is not needed, as flash is an EEPROM [electrically-

An embedded system is a product that has one or more computers embedded within it, which exercise primarily a control function. The embedded computer is usually a microcontroller: a microprocessor adapted for embedded control applications. Microcontrollers are designed according to accepted electronic and computer principles, and are fundamentally made up of microprocessor core, memory and peripherals.

Microchip offers a wide range of microcontrollers, divided into a number of different families. Each family has identical central architecture and instruction set. However, common features also appear across all their microcontrollers. The Microchip 12F508 is a good microcontroller to introduce a range of features of microcontrollers in general and of PIC microcontrollers in particular.