Microcontroller 68HC11

Thread Starter

wish6522

Joined Jun 29, 2009
5
Hi all,Just checking anyone out there still using this controller? Was doing mini project and was stuck will some problem... If anyone know how to play this controller pls come in....
 

RiJoRI

Joined Aug 15, 2007
536
As Johnny 5 said in "Short Circuit," "More Input!!"

More details are needed for anyone to begin to help you. I may be able to help somewhat, being familiar with the 6809, which is very close to the 6811. And some things are readily transferred between different micros.

--Rich
 

Papabravo

Joined Feb 24, 2006
21,228
We are still using this micro in our legacy designs. These designs are at least 10 years old, but still being produced as long as there are parts. The MC68HC11D0 in this case.
 

John Luciani

Joined Apr 3, 2007
475
I have used the F, K and KA series. Still have a bunch of parts, wire-wrap sockets and I believe an old dev board. It has been a while ;)

(* jcl *)
 

Thread Starter

wish6522

Joined Jun 29, 2009
5
Hi all,

Sorry for late reply. I was given a 8-bit LED circut, Trigger sensor alarm circut and 6811 controller. My program is to make the LEDs run left to right(L-R) when the first sensor(SW1) is trigger. And when trigger the second sensor(SW2) it will off the LEDs.

Below is the program i'd wrote so far. What is the instruction if i want to write?
1. How to off the LED when SW2 is trigger?
2. If i want to hv the LED to run from L-R and R-L?



PORTB equ $1004
PORTC equ $1003
ORG $0100
Start:
lds #$47 ;load SP

readPhotoSW:
ldaa PORTC ;i/p from PortC

checkSW1:
cmpa #$01 ;check PC.3
bne readPhotoSW ;not activated
ldaa #%00000001 ;i/p

repeat1
rora
staa PORTB ;o/p to PortB(leds)
ldy #$FFFF

loop
dey
bne loop
jmp repeat1

checkSW2:
cmpa #$02
bne readPhotoSW
bclr PORTB,#$FF

END
 
Top