12C509 GPIO

Hi all,

I'm feeling a little stupid here but could someone tell me how to switch GP0,1,2,4,5 & 6 simultaneously?

I'm familiar with

bsf GPIO,4 ;set output GP4 high call delay ;call the delay subroutine bcf GPIO,4 ;set output GP4 low

But a list of bsf GPIO,1 bsf GPIO,2 etc. can't be correct surely

Could someone please enlighten me as to the correct way?

TIA

--
             --dave

                 news001@nospam.org.uk
Reply to
Dave
Loading thread data ...

movlw b'xxxxxxxx' movwf GPIO

--
Ben Jackson

http://www.ben.com/
Reply to
Ben Jackson

You need to read up on boolean operators OR, AND, and XOR.

Reply to
Gary Kato

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.