Good morning all, I have several end of year homework problems that I'm stuck with. If anyone know about the Motorolla 68HC11 please chime in. Here are the questions:
1. Write a program using 68HC11 instructions that will perform a loop 100 times. Use AccB as the loop and AccA as an accumulator. Initialize the counter and accumulator to start. Inside the loop add 2 to the previous accumulator value and decrement the counter until the loop is done. End the program in a terminal loop.
2. Write a program that will recognize the switch position of the first switch (SW1-1) connected to port bit PC0 and indicates the switch's position by turning ON and OFF the LED connected to port bit PB0. USe Motorola 68HC11 instruction set.
thanks everyone
1. Write a program using 68HC11 instructions that will perform a loop 100 times. Use AccB as the loop and AccA as an accumulator. Initialize the counter and accumulator to start. Inside the loop add 2 to the previous accumulator value and decrement the counter until the loop is done. End the program in a terminal loop.
2. Write a program that will recognize the switch position of the first switch (SW1-1) connected to port bit PC0 and indicates the switch's position by turning ON and OFF the LED connected to port bit PB0. USe Motorola 68HC11 instruction set.
thanks everyone