Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.

Slides:



Advertisements
Similar presentations
Microprocessors A Beginning.
Advertisements

Getting the O in I/O to work on a typical microcontroller Activating a FLASH memory “output line” Part 1 Main part of Laboratory 1 Also needed for “voice.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
MC68HC11 System Overview. System block diagram (A8 version)
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
Processor System Architecture
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
EMBEDDED SYSTEM AND ITS APPLICATIONS
Microcomputer Systems 1
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
Boot Issues Processor comparison TigerSHARC multi-processor system Blackfin single-core.
6/2/2015 Labs in ENCM415. Laboratory 2 PF control, Copyright M. Smith, ECE, University of Calgary, Canada 1 Temperature Sensor Laboratory 2 Part 2 – Developing.
Thermal arm-wrestling Design of a video game using two programmable flags (PF) interrupts Tutorial on handling 2 Hardware interrupts from an external device.
Building a simple loop using Blackfin assembly code M. Smith, Electrical and Computer Engineering, University of Calgary, Canada.
Specialized Video (8-bit) and Vector (16-bit) Instructions on the Blackfin There is always a “MAKE-UP-YOUR-QUESTION-AND-ANSWER-IT” Question on a Dr. Smith.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
TigerSHARC and Blackfin Different Applications. Introduction Quick overview of TigerSHARC Quick overview of Blackfin low power processor Case Study: Blackfin.
Core Timer Code Development How you could have done the Take- Home Quiz using a test driven development (TDD) approach.
HD44780 LCD programming From the Hardware Side Design and implementation details on the way to a valid SPI-LCD interface driver.
Specialized Video (8-bit) and Vector (16-bit) Instructions on the Blackfin Expand on these ideas for Q9 question and answer on the final.
LCD programming Design and implementation details on the way to a valid SPI-LCD interface driver.
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
A look at interrupts What are interrupts and why are they needed in an embedded system? Equally as important – how are these ideas handled on the Blackfin.
Understanding the Blackfin ADSP-BF5XX Assembly Code Format
Getting the O in I/O to work on a typical microcontroller Ideas of how to send output signals to the radio controlled car. The theory behind the LED controller.
Getting the O in I/O to work on a typical microcontroller Activating a FLASH memory “output line” Part 1 Main part of Laboratory 1 Also needed for “voice.
Microcontroller based system design
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
HD44780 LCD programming From the Hardware Side
Developing a bicycle speed-o-meter Midterm Review.
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.
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
M. Smith University of Calgary.  Many people like to sing in the shower.  However, its rather boring as there is no accompaniment.  The McVASH device.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Moving Arrays -- 1 Completion of ideas needed for a general and complete program Final concepts needed for Final Review for Final – Loop efficiency.
Computer Organization & Assembly Language © by DR. M. Amer.
Module 11 Adapted By and Prepared James Tan © 2001.
What is a Microprocessor ? A microprocessor consists of an ALU to perform arithmetic and logic manipulations, registers, and a control unit Its has some.
Building a simple loop using Blackfin assembly code If you can handle the while-loop correctly in assembly code on any processor, then most of the other.
بسم الله الرحمن الرحيم MEMORY AND I/O.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Popular Microcontrollers and their Selection by Lachit Dutta
Microcontrollers & GPIO
Microprocessor or Microcontroller
UNIT – Microcontroller.
Dr. Michael Nasief Lecture 2
Microcomputer Architecture
Developing a bicycle speed-o-meter
Introduction to Microprocessors and Microcontrollers
Moving Arrays -- 1 Completion of ideas needed for a general and complete program Final concepts needed for Final Review for Final – Loop efficiency.
SPI Compatible Devices
Thermal arm-wrestling
The planned and expected
Moving Arrays -- 1 Completion of ideas needed for a general and complete program Final concepts needed for Final Review for Final – Loop efficiency.
Moving Arrays -- 2 Completion of ideas needed for a general and complete program Final concepts needed for Final DMA.
Thermal arm-wrestling
Using Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
Moving Arrays -- 2 Completion of ideas needed for a general and complete program Final concepts needed for Final DMA.
HD44780 LCD programming From the Hardware Side
HD44780 LCD programming From the Hardware Side
Expand on these ideas for Q9 question and answer on the final
Thermal arm-wrestling
Developing a bicycle speed-o-meter
Independent timers build into the processor
Developing a bicycle speed-o-meter
Developing a bicycle speed-o-meter
Thermal arm-wrestling
Developing a reliable communication between Blackfin and Slave device
Presentation transcript:

Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 2/ 29 Information taken from Analog Devices On-line Manuals with permission Information furnished by Analog Devices is believed to be accurate and reliable. However, Analog Devices assumes no responsibility for its use or for any infringement of any patent other rights of any third party which may result from its use. No license is granted by implication or otherwise under any patent or patent right of Analog Devices. Copyright  Analog Devices, Inc. All rights reserved.

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 3/ 29 Tackled today Basic microprocessor Concept of a microcontroller Difference between the Blackfin microcontroller and Blackfin Ez-Kit Lite evaluation board Capabilities of the ADSP-BF533 Blackfin Ez- Kit Lite evaluation board Various acronyms that will be used in the course

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 4/ 29 Microprocessor – Basic concept CPU contains CCU ALU data registers and pointer registers ADDRESS BUS 32-bit / 64-bit wide CONTROL BUS Timing signals, ready signals, interrupts etc DATA BUS – bidirectional 8-bit / 16-bit / 32-bit / 128-bit Microprocessor, by-itself, completely useless – must have external peripherals to Interact with outside world

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 5/ 29 Microprocessor – Basic concept CPU contains CCU ALU data registers and pointer registers CONTROL ADDRESS DATA Microprocessor, by-itself, completely useless – must have external peripherals to Interact with outside world BOOT ROM Used at startup Instruction (program) ROM Transducers Keyboard Screen UART Parallel interface etc Data RAM

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 6/ 29 Every external device needs this amount of support “glue logic” External Device Device itself with all necessary internal logic DATA BUS OE – output enable Interrupt signals, etc ADDRESS BUS DECODE LOGIC Address strobe Data strobe Read/Write control CS – chip select

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 7/ 29 Issues with external devices Many pins  Mechanical failure increased  Design time increased – routing issues  Cost increased, board size increased Continually redesigning same thing  Compatibility between parts  Upgrade part  Many similar options between different projects Don’t need “100% flexibility”

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 8/ 29 Microcontroller – Basic concept CPU contains CCU ALU data registers and pointer registers CONTROL ADDRESS DATA Microcontroller – put a limited amount of most commonly used resources “inside” the chip – a “limited” amount is often “enough” for many applications BOOT ROM Used at startup Instruction (program) ROM Transducers UART Parallel interface Etc Data RAM

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 9/ 29 Advantages of microcontroller Pin count down Design time down, Board layout size down Upgrade path easier – matching between peripherals Cost down – bulk purchases Reliability up Common software / hardware design available from manufacturer

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 10/ 29 Issues Two types of memory  On-chip – fast, easy to access, “almost like a register”, limited amount available  Off-chip – slower  Use on-chip memory in a “cache” mode External components still there  E.g. Video CODECs – need to use DMA – Direct Memory Access – so that the controller can get on with the “processing” and let something else worry about moving data in and out of the chip Real time environment  Event driven – can’t WAIT for a device to become ready, can’t POLL to see if device is ready, interrupt handling is key All these resources are “power hungry” and compete for resources (data busses etc) – special features

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 11/ 29 From smallest to largest Processor Core  One core on Blackfin ADSP-BF533  Two cores on Blackfin ADSP-BF561 Processor itself Blackfin Evaluation board  Don’t forget the software development package VisualDSP++

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 12/ 29 Blackfin ADSP-BF533

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 13/ 29 Enter some key discussed elements from previous slide You need to do a “load” and “store” at the same time – what registers used? Why can you do 2 loads at the same time, a load and store at the same time, but not two stores? Why would you want 8-bit ALUs on a 32-bit processor? Give an example of an instruction where four 8-bit ALU operations occur at the same time Give an example of an instruction where two 16-bit ALU operations occur at the same time

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 14/ 29

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 15/ 29 Enter the key elements from previous slide What does a watch-dog timer do – and “how do you find out how to feed it?” What does the acronym MMU stand for? What does the acronym SPI stand for, and in what labs will we be using the SPI? When is the PPI used? Will you learn to “flash” in this class, and how would you do it and why? What’s a real time clock?

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 16/ 29

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 17/ 29 Lab. 1 – demonstration of microcontroller capability Use the microcontroller  Configure the FLASH memory Contains memory and also I/O components (input / output)  Use the FLASH memory I/O capability to control the LED  Configure the PF lines (Programmable flags) Used to control many of the external devices (chip select and timing lines) Used as input (Lab. 2) and / or interrupt lines (Lab. 3)

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 18/ 29 Need to learn how to “configure” the flash memory so that We can control the LEDs Parallel interfaces present on the FLASH memory chips

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 19/ 29 Push-button switches (PF lines) LED (controlled by FLASH memory logic)

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 20/ 29 Need to configure the PF lines (Programmable Flags) Replace one button input with the input of a temperature transducer TMP03 as used in Assignment 1

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 21/ 29 Control of the PF lines – how / why?

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 22/ 29 PF lines being used by other devices When we change the PF registers, we must ONLY change those over which we have control PF8, PF9, PF10, PF11

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 23/ 29 Enter the key elements from previous slide Which A/D is used on the Blackfin board? Why are the signals that control the LED’s coming from the FLASH? What does SPORT1 means, and what external device is being controlled by it? How does the SPORT device allow “time sharing” of the bus by several different external devices?

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 24/ 29 Audio-Video Interaction of ADSP-BF533 Ez-Kit Lite with the outside world

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 25/ 29

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 26/ 29 Review quiz CPU stands for CCU stands for ALU stands for DMA stands for

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 27/ 29 Review Quiz How come the FLASH memory can be used to control the LEDs? Why can’t we use PF0 line in Lab. 1 to read temperature transducer signals? Why will AND and OR operations be necessary when we control the PF lines? What does PF stand for?

29 August 2004 Differences between a microprocessor and a microcontroller M. Smith, University of Calgary, Canada 28/ 29 Tackled today Basic microprocessor Concept of a microcontroller Difference between the Blackfin microcontroller and Blackfin Ez-Kit Lite evaluation board Capabilities of the ADSP-BF533 Blackfin Ez- Kit Lite evaluation board Various acronyms that will be used in the course