ECE 265 – LECTURE 3 68HC11 Address Space, Memory, Registers, and data transfers 3/29/2011 1 ECE265.

Slides:



Advertisements
Similar presentations
Introduction to Computers Section 4A. home Decimal Number System Called base 10 because 10 symbols are available.
Advertisements

Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
Prith Banerjee ECE C03 Advanced Digital Design Spring 1998
MC68HC11 System Overview. System block diagram (A8 version)
1 Homework Reading –Tokheim, Chapter 12-1 through 12-4 Machine Projects –MP4 due at start of next class Labs –Continue with your assigned section.
Processor System Architecture
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
9/20/6Lecture 14 - Static Memory1 Static Memory. 9/20/6Lecture 14 - Static Memory2 Static Memory.
ECE 301 – Digital Electronics Memory (Lecture #21)
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
IT Systems Memory EN230-1 Justin Champion C208 –
EET 2261 Unit 2 HCS12 Architecture
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
Chapter 6 Memory and Programmable Logic Devices
CPU Structure and Instruction Execution Timothy C. Rice Jr., MIT.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
ECE 265 – LECTURE 4 The M68HC11 Address Modes 8/14/ ECE265.
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
The M68HC11 Basic Instruction Set Basic Arithmetic Instructions
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.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
CPU MEMORY Powered by DeSiaMore1. CPU Its manage everything held in memory so that the machine keeps track of what is stored, where it is and what type.
Introduction to Computing: Lecture 4
Random access memory.
What is a computer ?  A computer is an electronic device that can accept data and instruction, process them or store them for later retrieval, and sometimes.
Memory /27/081ECE Lecture 13 Memory 2.
Internal Input/Output Devices (I/O Subsystems)
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Information Technology Basic Computer Architecture Adnan Khalid.
1 Homework Reading –PAL pp , Continue mp1 –Questions? Continue lab sessions with your section.
Primary Storage Primary storage is the storage that is directly available to the CPU. It is also known as: Main Memory Main Memory Direct Access Storage.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Architecture Lecture 24 Fasih ur Rehman.
ECE 265 – LECTURE 5 The M68HC11 Basic Instruction Set 12/8/ ECE265.
COMPURT ORGANAZTION CHAPTER 5. Computer Organization We can divide the parts that make up a computer into 3 subsystems : 1. Central processing unit (CPU).
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
AHMEDABAD INSTITUTE OF TECHNOLOGY
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
Components of Computer. Memory Unit Most important part of the computer Used to store data and instructions that are currently in use Main memory consists.
Chapter 2 content Basic organization of computer What is motherboard
CPU Lesson 2.
Systems Architecture Keywords Fetch Execute Cycle
Programmable System on Chip
Homework Reading Tokheim, Chapter 12-1 through 12-4.
Homework Reading PAL pp ,
Atmega32 Architectural Overview
Processor/Memory Chapter 3
Internal Memory.
Introduction of microprocessor
Dr. Michael Nasief Lecture 2
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Subject Name: Embedded system Design Subject Code: 10EC74
COMS 161 Introduction to Computing
MICROPROCESSOR MEMORY ORGANIZATION
Chapter 4 Introduction to Computer Organization
Introduction to Computers
Computer Memory.
Presentation transcript:

ECE 265 – LECTURE 3 68HC11 Address Space, Memory, Registers, and data transfers 3/29/ ECE265

Lecture Overview  How is the address space broken out in the 68HC11  RAM and ROM memories  Structure and Logical organization memory  Registers  Material from Chapter 2 and a 68HC11 reference manual 3/29/ ECE265

What is the difference – RAM and ROM 3/29/2011ECE265 3  RAM = Random Access Memory

What is the difference – RAM and ROM 3/29/2011ECE265 4  RAM = Random Access Memory  As the name implies any location of the memory can be accessed in any order, i.e., randomly.  Given an address, the data is stored at that address, or the data at that address is retrieved, depending on the mode of access (read or write).  RAM is the memory where data is stored.  ROM = Read Only Memory  Memory that can only be read.

What is the difference – RAM and ROM 3/29/2011ECE265 5  RAM = Random Access Memory  As the name implies any location of the memory can be accessed in any order, i.e., randomly.  This is the memory where data is stored.  ROM = Read Only Memory  This is memory that can only be read.  There are different types  One time programmable, UV erasable, EEPROM – electrically erasable  ROM will maintain the contents even when power is off.

Different flavors of the 68HC11  Different flavors of the chip have different amounts  MC68HC11A8 – 256 bytes of RAM and 8K of ROM  MC68HC11E9 – 512 bytes RAM, 12K ROM  MC68HC11D3 – 192 bytes RAM, 4K ROM  The different amounts allow choice of a chip tailored to the embedded system.  Note: There is also a 192 byte ROM on board for use in testing that has a bootstrap loading program. This ROM is also used for security. 3/29/2011ECE265 6

The RAM  The entire memory space – 16 bit address (65,536)  RAM is in the first 256 loactions - $0000 to $00FF  These locations are available using direct addressing mode.  Direct addressing mode assumes the upper byte of the address is $00 Saves space in program memory – only 8 bits for address and a 1 word instruction versus 2 Saves a cycle of execution as only one fetch to load the instruction  By using the INIT register, 4-bits, RAM can be moved to the start of any 4K partition within the memory space as the INIT register specifies the upper 4-bits when direct addressing modes is used. INIT starts with /29/2011ECE265 7

Power and RAM  The contents in RAM are lost if power is lost.  The design is fully static RAM so the data is not lost if the clocks are halted.  In DRAM – Dynamic RAM – clocks are needed to keep the data refreshed as the contents are not static. The charge that determines the value of that bit will bleed off if not refreshed. 3/29/2011ECE265 8

The memory map  The complete 64K memory space  Note that EEPROM is located at $B600 to $B7FF  The map also supports add-on RAM – another chip in the system.  There is also a monitor EPROM 3/29/2011ECE265 9

The Registers  Within the CPU  The 68HC11 is an accumulator based architecture  What is an accumulator based architecture?  First consider the programmers model of the architecture. The programmers model is what the programmer see, i.e., what the programmer has direct access to. Allows the programmer to visualize how data is transferred between registers. In may cases there are other registers within a processor architecture that required for operation but are not directly visible to the programmer. An example is the Instruction Register. 3/29/2011ECE265 10

The Registers  Within the CPU  The 68HC11 is an accumulator based architecture  What is an accumulator based architecture? An architecture in which all data operations require the data to be loaded in or interact with the accumulator.  First consider the programmers model of the architecture. The programmers model is what the programmer see, i.e., what the programmer has direct access to. Allows the programmer to visualize how data is transferred between registers. In most cases, there are other registers within a processor architecture that are required for operation but are not directly visible to the programmer. An example is the Instruction Register. 3/29/2011ECE265 11

The 68HC11 Programmer Model  7 registers in total  2 are index registers  Used in addressing data  A stack pointer register  The PC  A CC register  The accumulator 3/29/2011ECE265 12

The Accumulator  Actually have 2–Accumulator A &Accumulator B  Can be combined to form Accumulator D  For the most part they can be used to perform the same operations.  EXCEPT –  Decimal arithmetic – BDC operation must use A  CC register can only be transferred to A  Certain operations put the result in A 3/29/2011ECE265 13

Example of Accumulator Use  The ABA instruction  Add accumulators  Result is loaded into Accumulator A 3/29/2011ECE265 14

Accumulator D  Can perform a Load Double Accumulator Instruction  Loads both the A and B accumulators from Memory  Can also perform add and subtract operations on D  Can use the D accumulator in shift operations  The D accumulator is not a separate accumulator  If you use the D accumulator for an operation it will replace the contents of the A and B accumulators as it is the same physical register. 3/29/2011ECE265 15

Lecture summary 3/29/2011ECE  Have covered  The pin configuration on the M68HC11  The organization of the pins  The basic interface capabilities of the pins

Assignment 3/29/2011ECE  Read Chapter 2  Look at Chapter 2, Problems: 2, 4, 5, 6, 7, 8, 9, 10