I am using a 16f628a and int clock 4MHz in assembly using MPlab 8.xx. I have 7 LEDs on PortB <1:7> and am reserving RB0 as an input for IOC. (Sounds like I know a little huh? Don't be fooled!) I want to be able to flash the lamps on 1, 3, and 6 (or 2, 4, and 7) irrespective and ignoring and not altering the status of the other LEDs.
I can:
Flashloop
bsf Portb, 1
bsf Portb, 3
bsf Portb, 6
Delay
bcf Portb, 1
bcf Portb, 3
bcf Portb, 6
Delay
goto Flashloop
Is there a way to do the bsf and bcf for all three LEDs in a single step??? Like bsf <1,3,6> or something along that line??
Thank you!
I can:
Flashloop
bsf Portb, 1
bsf Portb, 3
bsf Portb, 6
Delay
bcf Portb, 1
bcf Portb, 3
bcf Portb, 6
Delay
goto Flashloop
Is there a way to do the bsf and bcf for all three LEDs in a single step??? Like bsf <1,3,6> or something along that line??
Thank you!
Last edited: