EE345 Midterm Review - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

EE345 Midterm Review

Description:

EE 345 Class Notes. A Simple Architecture. What is register? ... EE 345 Class Notes. Memory map in M68HC11. M68HC11 has 16 bit address bus. And 8-bit data bus ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 10
Provided by: don60
Category:
Tags: ee | ee345 | midterm | review

less

Transcript and Presenter's Notes

Title: EE345 Midterm Review


1
EE345 Midterm Review
  • Dr. Jane Dong

2
Outline
  • 6811 Architecture
  • Review of Addressing modes
  • Review of Instructions
  • Problem solving from Hw3
  • Exercise write a program

3
A Simple Architecture
4
M68HC11 Architecture (1)
  • CPU registers

5
Memory map in M68HC11
  • M68HC11 has 16 bit address bus
  • And 8-bit data bus
  • has memory locations
  • Each location hold 8-bit word
  • Not all locations can be used
  • Most useful regions in EE345
  • 256 byte RAM staring from 0000
  • Used for store variables, etc.
  • 8K ROM starting from e000
  • Used for store program

6
Addressing mode (1)
  • What is addressing mode?
  • The method to reference data in memory or in
    instruction
  • The same instruction may have different
    addressing mode
  • How M68HC11 distinguish among the addressing
    modes?
  • Different addressing modes? different Opcode in
    machine code
  • Example
  • LDAA 64 load an immediate value
  • LDAA 0001 load from memory address 0001
  • LDAA 4, X load from memory address X4

7
Addressing mode (2)
  • Immediate Addressing
  • Direct Addressing
  • Extended Addressing
  • Inherent Addressing
  • Index addressing
  • Relative addressing

Example What addressing modes are used? ADDA
100 ADDA 0001 SUBB 2, X
8
Instruction review
  • Your good friend Instruction set table

9
Example
  • CLRA
  • LDAA 10
  • LDAB 01
  • ABA
  • STAA 02
  • COM 03
  • LDX 0
  • STD 2, X
Write a Comment
User Comments (0)
About PowerShow.com