HCS12 Microcontroller

 

  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.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *