Programming Assignments 1 and 2

These are related assignments, so we present them together.


Assignment 1: Flash an LED at 38khz (that's on and off 38,000 times persecond). You will need to demo your program and verify
speed with an oscilliscope.


Assignment 2: (an extension of assignment 1)
Write two subroutines called "on" and "off". "on" will flash an LED at 38khz for 1 millisecond, "off" will pause (no flash) for 1 millisecond.
Your main program should look like the following

top
    call   on
    call   off
    call   on
    call   off
    call   on

    call   off
    call   off
    call   off
    call   off
    call   off
    goto top

You will need to run your program and verify timing with an oscilliscope.