Review for Midterm Exam - Microcontroller Interfacing | ECE 2534, Study notes of Microprocessors

Material Type: Notes; Class: Microcontroller Interfacing; Subject: Electrical & Computer Engineer; University: Virginia Polytechnic Institute And State University; Term: Spring 2010;

Typology: Study notes

Pre 2010

Uploaded on 02/25/2010

grantb2
grantb2 🇺🇸

1

(1)

12 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Review for
Review
for
Midterm Exam
General background knowledge
Combinational logic
Sequential logic
Binary representations and arithmetic
Memor
y
conce
p
ts
yp
Computer languages
C/C++, assembly language, machine lang.
Computer organization
Computer
organization
Major parts of a computer
von Neumann architecture
Harvard / Princeton architecture
Harvard
/
Princeton
architecture
RISC vs. CISC
Microprocessors vs. microcontrollers
Microprocessors
vs.
microcontrollers
pf3
pf4
pf5

Partial preview of the text

Download Review for Midterm Exam - Microcontroller Interfacing | ECE 2534 and more Study notes Microprocessors in PDF only on Docsity!

Review forReview for

Midterm Exam

  • General background knowledge
    • Combinational logic
    • Sequential logic
    • Binary representations and arithmetic
    • Memory conceptsy p
    • Computer languages
      • C/C++, assembly language, machine lang.
    • Computer organizationComputer organization
      • Major parts of a computer
      • von Neumann architecture
      • Harvard / Princeton architectureHarvard / Princeton architecture
      • RISC vs. CISC
  • Microprocessors vs. microcontrollersMicroprocessors vs. microcontrollers

Common computer organizationCommon computer organization

CPU

Memory

ALU I/O

Control to peripheral devices

  • Memory - stores programs and data
  • CPU Central Processing Unit

devices

  • CPU - Central Processing Unit
  • ALU - Arithmetic & Logic Unit
  • Control unit - Sequences data transfers and other operationsh i
  • I/O unit - Communicates with the “outside world”

MicroBlaze Instruction Set

  • ~ 124 instructions
    • 22 integer
      • 2 instruction types
        • Type A arithmetic
    • 8 logical
    • 9 shift
      • Up to 2 source registers
      • 1 destination
    • 2 compare register
    • 36 branch
    • 11 floating point 12 l d/ t

register

  • Type B
    • 1 source register
    • 1 immediate
  • 12 load/store d
  • 4 return
  • 22 other

operand

  • 1 destination register

Programming

  • Assembly language programming
    • What constitutes a program?What constitutes a program?
      • Instructions
      • Assembler directives (pseudo-ops)
      • CommentsComments
    • Assembly language vs. machine language
    • Subroutines (and parameter passing)Subroutines (and parameter passing)
    • Stacks
    • Timing loops
  • C/C++ programming
    • Program flow
    • Use of variables, pointersUse of variables pointers

Stack usage

• What is a stack?

• How can a stack be used forH t k b d f

subroutine linkage?

• Why is this a good idea?• Why is this a good idea?

• Where should the stack be

placed in memory?placed in memory?