16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.

Slides:



Advertisements
Similar presentations
Introduction to PIC Microcontrollers
Advertisements

Computer Architecture
MC68HC11 System Overview. System block diagram (A8 version)
Chapter 2 HARDWARE SUMMARY
8051 Core Specification.
I/O Unit.
Microcontroller – PIC – 4 PIC types PIC architecture
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Pyxis Aaron Martin April Lewis Steve Sherk. September 5, 2005 Pyxis16002 General-purpose 16-bit RISC microprocessor bit registers 24-bit address.
Microprocessor Systems Design I Instructor: Dr. Michael Geiger Fall 2013 Lecture 26: PIC microcontroller intro.
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 30: PIC data memory.
Microprocessor Systems Design I
ASPPRATECH.
Microcontroller based system design
Microcontroller: Introduction
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
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.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
Atmega32 Architectural Overview
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
ECE/CS-352: Embedded Microcontroller Systems Embedded Microcontroller Systems.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
Directives, Memory, and Stack. Directives Special commands to the assembler May or may not generate machine code Categories by their function Programming.
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
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.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
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.
1 © Unitec New Zealand Interrupt Lecture 6 Date: - 20 Sept, 2011 Embedded Hardware ETEC 6416.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Interrupts  An interrupt is any service request that causes the CPU to stop its current execution stream and to execute an instruction stream that services.
Lecture 7: Overview Microprocessors / microcontrollers.
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.
بسم الله الرحمن الرحيم MEMORY AND I/O.
Components of a typical full-featured microcontroller.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
Dr. Iyad Jafar Introducing the PIC 16 Series and the 16F84A.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
Embedded Microcontroller Systems
MICROCONTROLLER ARCHITECTURE & ASSEMBLY LANGUAGE PROGRAMMING
Microprocessor Systems Design I
Microprocessor Systems Design I
Embedded Microcontroller Systems
Microprocessor Systems Design I
UNIT – Microcontroller.
Microprocessor Systems Design I
Micro-Controller: PIC16C74 < Architecture >
Microprocessor Systems Design I
PIC 8 BIT AND 16 BIT MICROCONTROLLER ARCHITECTURE
Microprocessor Systems Design I
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
PIC Microcontroller What is PC LATH?????.
EE Embedded Systems Fall 2015
Introducing the PIC Mid-Range Family and the 16F84A
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Important 8051 Features On chip oscillator 4K bytes ROM 128 bytes RAM
EECE.3170 Microprocessor Systems Design I
EECE.3170 Microprocessor Systems Design I
Presentation transcript:

16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro

Lecture outline Announcements/reminders  Lab 3 report due today  Lab 4 to be posted today, due 4/25  HW 4 to be posted early next week  Exam regrade requests due by Friday, 4/13 Lecture outline  Microcontrollers  PIC introduction 7/2/2015 Microprocessors I: Lecture 29 2

3 Overview of Microcontrollers Basically, a microcontroller is a device which integrates a number of the components of a microprocessor system onto a single microchip. Reference: 7/2/2015

Microcontroller features Processor Usually general-purpose but can be app-specific On-chip memory Often RAM for data, EEPROM/Flash for code Integrated peripherals Common peripherals Parallel I/O port(s) Clock generator(s) Timers/event counters Special-purpose devices such as: Analog-to-digital converter (sensor inputs) Mixed signal components Serial port + other serial interfaces (SPI, USB) Ethernet 7/2/2015 Microprocessors I: Lecture 29 4

Microcontroller features Benefits Typically low-power/low-cost Target for embedded applications Easily programmable Simple ISAs (RISC processors) Use of development kits simplifies process Limitations Small storage space (registers, memory) Restricted instruction set May be required to multiplex pins Not typically used for high performance 7/2/2015 Microprocessors I: Lecture 29 5

6 PIC Microcontroller (PIC16F684) High performance, low cost, for embedded applications Only 35 different instructions Interrupt capability Direct, indirect, relative addressing mode Low Power 32KHz, 2.0V Peripheral Features 12 I/O pins with individual direction control 10-bit A/D converter 8/16-bit timer/counter Special Microcontroller Features Internal/external oscillator Power saving sleep mode High Endurance Flash/EEPROM cell 7/2/2015

Microprocessors I: Lecture 29 7 PIC16F684 Block Diagram 7/2/2015

Microprocessors I: Lecture 29 8 PIC16F pins, 2048 instructions, 128 byte variable memory, ADC, comparator, Timers, ICD 7/2/2015

Microprocessors I: Lecture 29 9 Harvard vs Von Neumann Organization of program and data memory 7/2/2015

Microprocessors I: Lecture Program Memory Space 13-bit program counter to address 8K locations Each location is 14-bit wide (instructions are 14 bits long) RESET vector is 0000h When the CPU is reset, its PC is automatically cleared to zero. Interrupt Vector is 0004h 0004h is automatically loaded into the program counter when an interrupt occurs Vector  address of code to be executed for given interrupt 7/2/2015

Microprocessors I: Lecture Data Memory Space 7/2/2015

Microprocessors I: Lecture Special Function Registers 7/2/2015

Microprocessors I: Lecture Status Register 7/2/2015

Microprocessors I: Lecture PCL and PCLATH PC: Program Counter, 13 bits PCL (02h): 8 bits, the lower 8 bits of PC PCLATH (0Ah): PC Latch, provides the upper 5 (or 2) bits of PC when PCL is written to 1st example: PC is loaded by writing to PCL 2nd example: PC is loaded during a CALL or GOTO instruciton 7/2/2015

Microprocessors I: Lecture Stack 8-level deep x 13-bit wide hardware stack The stack space is not part of either program or data space and the stackpointer is not readable or writable. The PC is “PUSHed” onto the stack when a CALL instruction is executed, or an interrupt causes a branch. The stack is “POPed” in the event of a RETURN, RETLW or a RETFIE instruction execution. However, NO PUSH or POP instructions ! PCLATH is not affected by a “PUSH” or “POP” operation. The stack operates as a circular buffer: after the stack has been PUSHed eight times, the ninth push overwrites the value that was stored from the first push. 7/2/2015

Next time Continue with discussion of PIC 7/2/2015 Microprocessors I: Lecture 29 16