the code is clean and running in proteus, but when i program it in my pic16f877a its not functioning..doesn't even output logic 1.. vdd/vss are connected correctly..but no reading from the output ports.. I can read/write in my pic..i think its not broken..
I even tested it to output 2 ports.. still no output..can't even lit an LED.. what could be possible wrong?
here's my program for outputting the 2 ports:
here's my program for outputting the 2 ports:
Code:
LIST P=16F877A
#include <p16f8477.inc>
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _HS_OSC
org 0x0000
bsf STATUS, RP0
movlw 0x00
movwf TRISC
movwf TRISD
bcf STATUS, RP0
movlw 0xff
movwf PORTC
movwf PORTD
end