I need help..asm

Discussion in 'Embedded Systems and Microcontrollers' started by SAADABDOO2, Jan 20, 2009.

  1. SAADABDOO2

    Thread Starter New Member

    Jan 19, 2009
    1
    0
    I want asm program about counter up/down using PIC16F84,
    start:
    IF count =10; yes{ set RB6 ;
    change: IF button1 Pressed;yes{decrement count;​
    goto start ;}}
    No {go to start;}​
    No {clear RB6 ;
    IF button2 pressed ;yes{increment count;​
    delay: set RB7;​
    IF button3 pressed;yes{clear RB7;​
    go to start;}​
    No{go to delay;}​
    }
    No {go to change;}
    end;

    =======================================================
    circuit....
    (decrement button1 connect to (RB2) = push-button used to decrement count)
    ( increment button2 connect to (RB1) = push-button used to increment counter, & set RB7=1)
    (ENTRY button3 connect to (RB3) = push-button used to clear RB7 =0)
    ( RB1,2,3 of portB are input , others output)
    The flow diagram of the program in file....
     
    Last edited: Jan 20, 2009
  2. RiJoRI

    Well-Known Member

    Aug 15, 2007
    536
    26
    Saad --
    The [ code ] & [ /code ] commands will allow you to properly format code. Using ----------'s is almost guaranteed to reduce the number of replies.

    Also, this seems to be partial pseudo-code. What have you done so far? Let us see it with the [code ] & [/code ] commands.

    --Rich
     
    Last edited: Jan 20, 2009
Loading...