EE 308
Homework #7
Due Feb. 28, 1997
- 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.
- 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.
- 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.
- Write the program for Part 1 of
Lab 7.
- Write the program for Part 3 of
Lab 7.
- Write the program for Part 5 of
Lab 7.
- Write the program for Part 6 of
Lab 7.
Bill Rison,
<rison@ee.nmt.edu >