ECE 567 Microprocessor Lab - PowerPoint PPT Presentation

1 / 16
About This Presentation
Title:

ECE 567 Microprocessor Lab

Description:

Timing (Both Software & Hardware), Designing your own Dancing Light show. Lab3 ... Add, Subtract, (Multiply, Divide), Increment/Decrement, Compare, Test. Logical ... – PowerPoint PPT presentation

Number of Views:74
Avg rating:3.0/5.0
Slides: 17
Provided by: ece8
Category:

less

Transcript and Presenter's Notes

Title: ECE 567 Microprocessor Lab


1
ECE 567Microprocessor Lab
  • Instructor Yen-Lun Chen
  • chen.1098_at_osu.edu

2
Lab Overview
  • Lab1
  • Introduction, Familiarity with the THRSim11
  • Lab2
  • Timing (Both Software Hardware), Designing your
    own Dancing Light show
  • Lab3
  • Analog to Digital Conversion, Designing your own
    Digital Thermometer
  • Lab4
  • Keypad Interfacing

3
Tentative Schedule
4
Todays Review
  • Hardware Model
  • 68HC11 Instruction Set (course website)
  • Addressing Modes
  • Assembler Directives (ORG, EQU,)

5
Programmers Model
  • 8-bit processor
  • Accumulators (A,B, and D)
  • Index Registers (X and Y)
  • Stack Pointer (SP)
  • Program Counter (PC)
  • Condition Code Register (CCR)

6
Instruction Set
  • Data Movement
  • Load, Store, Push, Pull, Clear, Exchange,
    Transfer
  • Arithmetic
  • Add, Subtract, (Multiply, Divide),
    Increment/Decrement, Compare, Test
  • Logical
  • AND, OR, Complement, XOR
  • Bit Manipulation
  • Bit tests, bit set, bit clear

7
Instruction Set
  • Shift and Rotate
  • Arithmetic/Logical shifts and rotates
  • Condition Code Register (CCR)
  • Set/Clear carry, overflow, get/set CCR
  • Branch
  • Unconditional (BRA), Conditional (BGT, BEQ, BNE)
  • Subroutines
  • Branch/Jump to subroutine (BSR/JSR)
  • Return (RTS)
  • Miscellaneous
  • waste 2 cycles (NOP)

8
M68HC11Addressing Modes
9
M68HC11Addressing Modes
10
M68HC11Simple exercise
00
FF
0010
FF
F4
76
0A
0010
0021
000A
5623
76F4
34A1
0010
11
M68HC11Assembler Directives
  • ORG specifies the address to generate code at.
  • END stop assembling. Anything written after
    this is not assembled.
  • Others such as FCB, EQU, and FDB will be
    discussed later.

12
Lab 1
  • Form Groups
  • Introduction to THR11Sim Simulation Tool

13
Lab 1 (cont)
  • ORG 100
  • MAIN CLRB
  • LDAA 37
  • LOOP DECB
  • BNE LOOP
  • TAB
  • COMB
  • BK1 BRA LOOP
  • END

14
Evaluation Board
Figure 2.1
Figure 2.3
15
Lab 2 Setup
  • Port B (output)
  • Writing a 1 turns LEDs OFF / Writing a 0 turns
    LEDs ON
  • Port C (input)
  • Switch ON reads as 0 / switch OFF reads as 1

5v
5v
16
Reminders
  • Buy course packet from UniPrint
  • Bring money to buy one 567 kit per group
  • Bring to Lab
  • Breadboard and 567 Kit
  • Course packet
  • Text (Optional)
  • Quiz 1 next week
Write a Comment
User Comments (0)
About PowerShow.com