I am working on pic 16f677a chip
I wrote a short code just to test the IC ..
The code is desired to set PORTD to outputs
& assign all PORTD pins to HIGH
Here is the code
Is there something wrong or missing with the code ??
I wrote a short code just to test the IC ..
The code is desired to set PORTD to outputs
& assign all PORTD pins to HIGH
Here is the code
Code:
BSF STATUS,RP0
BCF STATUS,RP1
MOVLW 0X00
MOVWF TRISD
MOVLW 0X06
MOVWF ADCON1
BCF STATUS,RP0
MOVLW B'11111111'
MOVWF PORTD
Is there something wrong or missing with the code ??