12C509 GPIO

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
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

                 snipped-for-privacy@nospam.org.uk

Re: 12C509 GPIO
Quoted text here. Click to load it

    movlw b'xxxxxxxx'
    movwf GPIO

--
Ben Jackson
We've slightly trimmed the long signature. Click to see the full one.
Re: 12C509 GPIO
You need to read up on boolean operators OR, AND, and XOR.


Site Timeline