Microcontroller 68HC11

Discussion in 'Embedded Systems and Microcontrollers' started by wish6522, Jan 20, 2010.

  1. wish6522

    Thread Starter New Member

    Jun 29, 2009
    5
    0
    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....
     
  2. RiJoRI

    Well-Known Member

    Aug 15, 2007
    536
    26
    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
     
  3. Papabravo

    Expert

    Feb 24, 2006
    10,140
    1,789
    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.
     
  4. John Luciani

    Active Member

    Apr 3, 2007
    477
    0
    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 *)
     
  5. rjenkins

    AAC Fanatic!

    Nov 6, 2005
    1,015
    69
    We used these a lot some years ago.

    What do you need to know?
     
  6. wish6522

    Thread Starter New Member

    Jun 29, 2009
    5
    0
    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
     
Loading...