PORTD is not available on the PIC16F677 and as far as I know Microchip hasn't made silicon revisions of this chip (I can't go to the Microchip's site right now, though ). So, did you mean PIC16F877A?
PORTD is not available on the PIC16F677 and as far as I know Microchip hasn't made silicon revisions of this chip (I can't go to the Microchip's site right now, though ). So, did you mean PIC16F877A?
Oh, I'm really blurred. I didn't notice that it was PIC16F677. I thought it was a PIC16F877A
I have just read the datasheet of PIC16F677, there are only port a, b and c. Besides, there is no PIC16F677A.
mas,
their is no problem with your code,if your config is correct.select ossci as Xt as you are using 4MHz.then simulate your code and check the watch window from view menu. if its showing the changes in ur port then prblm may be with ur hardware, or else try with another IC .