[Menu]>[Circuits Gallery]>[Signboard 2]>[Software]


Software for Signboard 2
[Edge LED flash Counterclockwise]




This routine sholud be put on the main process.
Function
    This routine makes the turn of the edge LED counterclockwise.


Source code

001
002
003
004
005
006
;*************  Edge LED flash to Left  *****************
left
        movf    portb,w         ;Read portb
        andlw   h'7f'           ;Set left data
        movwf   portb           ;Output data
        return



Explanation
    In this processing, it reads the condition of present PORTB and it sets only RB7 to '1'.
    It uses an AND instruction to change only RB7.