Details of this Paper

HCS12 Microcontroller




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.;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.


Paper#65259 | Written in 18-Jul-2015

Price : $22