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


Software for Signboard 2
[Edge LED flash Clockwise]




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


Source code

001
002
003
004
005
006
;*************  Edge LED flash to Right  ****************
right
        movf    portb,w         ;Read portb
        iorlw   h'80'           ;Set right 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 OR instruction to change only RB7.