CS452 - Real-Time Programming - Spring 2008

Lecture 4 - Devices


Questions & Comments

  1. Hand in assignment 1
  2. Lab should be ready Friday

ISRs

Like function calls without arguments or return values.

  1. Save state of interrupted task
  2. Turn off source of interrupt
  3. Do the work
  4. Restore state of interrupted task
  5. Return to next instruction of interrupted task

Contrast RT to non-RT

Devices

Real-time clock

Usually a count-down timer

Programming

Reading

USART

Universal Synchronous/Asynchronous Receiver/Transmitter

We load a piece of data, usually a byte. It shifts out the bits on a time-multiplexed signal

Programming

Using


Return to: