Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
; initialise the variable to have 3 bits set.
movlw b'00111000'
movwf Phase
; in your ISR rotate the variable like this.
rrf Phase,F
bcf Phase,7
btfsc STATUS,C
bsf Phase,5
;After the above shift, bit 5 will be the red phase, bit 3 will be blue and bit 1 will be yellow.
; in your ISR rotate the variable like this.
bcf STATUS,C
rlf Phase,F
btfsc Phase,6
bsf Phase,0
bcf Phase,6
;After the above shift, bit 5 will be the red phase, bit 3 will be blue and bit 1 will be yellow.