1. Bit 4 of Port B is connected to a switch that normally outputs a zero. Monitor this switch to detect a change from zero to one. Immediately when it becomes one, call a function to toggle Bit 5 of Port B, which is connected to an LED.  Use an exclusive-OR operation to toggle PB5 two times. After the function call, the code should branch to the line that monitors PB4.

  2. Write a program to create an array initialized with Hex digits in the ROM space. The main code should copy this array to a different array in the RAM space.

    • 7 years ago
    ECET330 - HCS12 Microcontroller Week 7 assignment

    Purchase the answer to view it

    • attachment