EE 308
Homework #7
Due Feb. 28, 1997

  1. What setup do you need to do to have the HC11 generate an interrupt on either a rising or falling edge of Input Capture 2? Write some C code to do this.

  2. What setup do you need to do to have the HC11 toggle bit 6 of Port A on a successful output compare? Write some C code to do this.

  3. You want to generate a 250~Hz square wave using Output Compare 2. What value should you add to TOC2 in your toc2_isr()? What else should you do in your toc2_isr()? Write the interrupt service routine toc2_isr() to do this.

  4. Write the program for Part 1 of Lab 7.

  5. Write the program for Part 3 of Lab 7.

  6. Write the program for Part 5 of Lab 7.

  7. Write the program for Part 6 of Lab 7.