CSE466 Assignment 1: Due Monday 10/2

This assignment is a little longer than a typical 3-pointer, so it will be worth 5-points and it is due on Monday 10/2

A. Describe a strategy, using the hardware resources of the 8051, to measure the fan speed and detect errors as in the introductory example. Hint: consider the use of timers and interrupts, see the AT89 Series Hardware Description for ideas.

B. What factors might affect with the accuracy of your measurement?

C. Write the 8051 assembly program including reset code, interrupt routine(s), hardware initialization and main execution loop to implement to perform fan speed measurement and verification. I don't mean for you to worry too much about syntax for 8051 assembly programs. What you turn in should look something like this

Variable Declarations: 
list and 8-bit RAM variables that you need here

Absolute Code Segment:
at <address of reset vector>
code to jump to main routine

Absolute Code Segment
at <address of appropriate interrupt vector>
code to perform interrupt routine (my include jmp or subroutine call if necessary) 

Relocatable Code Segment
main: 
code to initialize hardware as needed
code for continuous execution loop

note that "reset vector" and "timer-0 interrupt vector" are specific addresses in memory. You do not need to define where in memory the relocatable code segment starts. You do not have to assemble or test your code.