Microcontroller 68HC11

Thread Starter

infinitig35

Joined Mar 3, 2008
25
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
 

RiJoRI

Joined Aug 15, 2007
536
1) How far have you gotten?
2) Get out (or look on the internet for) the 6811 programmer's aid and the 6811 manual with the instruction set. The programmer's aid has, amongst other things, a picture of the 6811 registers and a listing of the instructions.
3) Use pseudo-code (or BASIC! :D ) to figure out a solution.
4) Post it here for more help.

--Rich
 
Top