seyyah
Advanced Member level 2
pic bsf porta bug
BSF STATUS,RP0 ;BANK1
MOVLW B'00000110'
MOVWF ADCON1
CLRF TRISE
BCF STATUS,RP0 ;BANK0
BSF PORTE,0
BSF PORTE,1
BSF PORTE,2
When i use porta and porte as digital i/o, i can't use bsf and bcf with these ports like other ports. In the above code. Only porte[2] remains 1 and others are 0. For which bit i use bsf, that bit is set to 1 and others are set to 0. I couldn't resolved this. This porblem is only with porta and porte. I tried portb; it's ok. Am i doing something wrong?
BSF STATUS,RP0 ;BANK1
MOVLW B'00000110'
MOVWF ADCON1
CLRF TRISE
BCF STATUS,RP0 ;BANK0
BSF PORTE,0
BSF PORTE,1
BSF PORTE,2
When i use porta and porte as digital i/o, i can't use bsf and bcf with these ports like other ports. In the above code. Only porte[2] remains 1 and others are 0. For which bit i use bsf, that bit is set to 1 and others are set to 0. I couldn't resolved this. This porblem is only with porta and porte. I tried portb; it's ok. Am i doing something wrong?