guys i dont know what going on with my pic. i am using pic16f876 with 4Mhz crystal oscillator, 22pF capacitor. i have written a flash code to test the output and it seems its not working for me. here is my code below.i am trying to measure the output voltage to be +5v. i have put Mclr to +5v.
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_ENABLE_OFF & _LVP_OFF & _DEBUG_OFF & _CPD_OFF
org 0x000
goto Start
org 0x006
Start
bsf STATUS,RP0
MOVLW H'06'
MOVWF ADCON1
movlw 0x00
movwf TRISB
movwf TRISA
movwf TRISC
bcf STATUS,RP0
movlw 0x0F
movwf PORTA
movlw b'00000000'
movwf PORTB
movlw b'00000111'
movwf PORTC
;*********************************************************
Main
clrf PORTB
movlw b'11111111'
movwf PORTB
;bsf PORTB
goto Main
END ; directive 'end of program'
__CONFIG _CP_OFF & _WDT_OFF & _BODEN_OFF & _PWRTE_ON & _XT_OSC & _WRT_ENABLE_OFF & _LVP_OFF & _DEBUG_OFF & _CPD_OFF
org 0x000
goto Start
org 0x006
Start
bsf STATUS,RP0
MOVLW H'06'
MOVWF ADCON1
movlw 0x00
movwf TRISB
movwf TRISA
movwf TRISC
bcf STATUS,RP0
movlw 0x0F
movwf PORTA
movlw b'00000000'
movwf PORTB
movlw b'00000111'
movwf PORTC
;*********************************************************
Main
clrf PORTB
movlw b'11111111'
movwf PORTB
;bsf PORTB
goto Main
END ; directive 'end of program'