Referring to the PIC18F2420 datasheet (page 108), the sequece that can be used to initialize portb is as below:
CLRF PORTB
CLRF LATB
MOVLW 0Fh
MOVWF ADCON1
Referring to the PIC18F2420 datasheet (page 108), the sequece that can be used to initialize portb is as below:
CLRF PORTB
CLRF LATB
MOVLW 0Fh
MOVWF ADCON1
Bookmarks