Docsity

Key Microprocessor Components - Lecture Slides | AME 3623, Study notes of Aerospace Engineering

Partial preview of the text

Download Key Microprocessor Components - Lecture Slides | AME 3623 and more Study notes Aerospace Engineering in PDF only on Docsity!

Final Exam Andrew H. Fagg: Embedded Real-Time Systems: Final Preparation

  • When: 8:00-10:00 am Thursday, May 10

th

  • Location: here (Carson 439)• 1/3: midterm material
    • See lecture notes for midterm preparation
      • 2/3: material since midterm• 1 page of personal notes• No electronic devices/books/other notes

Pre-Midterm Material

  • Basic gates• Boolean algebra• Digital circuits and circuit reduction• Number representations (binary, hex)• Bit-wise operators• Sequential logic• Components of microprocessors• Memory behavior (input/output signals,

buses, addressing)

Special-Purpose Registers

What does each do?• Program counter• Instruction register• Status register

Timer/Counters

  • Prescalars• Counters (hardware)
    • Timer0, timer2: 8-bit– Timer1: 16-bit
      • Interrupts on timerX overflow• Computing timerX count frequencies/periods• Computing timerX interrupt

frequencies/periods

Andrew H. Fagg: Embedded Real-Time Systems: Final Preparation

Interrupt Woes

The Shared Data Problem• One segment of code can be interrupted

at any time to execute another segment ofcode

  • Both access the same data structures• Solution: ensure that a

critical section

of

code cannot be interrupted– In our case: use disable/enable interrupts

Input/Output Systems

  • Polling vs interrupt-driven input/output• Buffers
    • Why do we need buffers?– Circular buffer implementation
      • Modes of communication:
        • Parallel, serial, analog, PWM

Finite State Machines

  • Definition
    • States– Events– Transition function– Outputs and output function
      • State transition diagrams• Relationship to sequential logic• FSMs for control

Basics of Digital Port I/O

  • Input/output

selection

  • Output

value

  • Input

Analog Processing

  • Digital to analog:
    • Pulse-width modulation– Resistive network (last two lectures)Note: we did not cover analog to digital

conversion (don’t worry about thismaterial)