12C509 GPIO

Jan 31, 2004 2 Replies

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

movlw b'xxxxxxxx' movwf GPIO

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

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required