pic16f876 need help

Status
Not open for further replies.
i try to programme pic16f876 and i successful by using IC-PROG
to make portC=ff then when i remove the pic from programmer and connect the pic with +5V and RC oslliatorand MCLR=5V i do not get anything
and this is the code:

LIST p=16f876, R=DEC
#include "p16f876.inc"
org 0x00
bsf STATUS,RP0
movlw 0x00
movwf TRISC
bcf STATUS,RP0
movlw 0x0F
movwf PORTC
circle goto circle
end



then the problem come from where from code or from

the circuit...please help me to make portC=ff
 
Where are your config fuse settings? Are you setting them from within IC-Prog?

Mike
 
Last edited:
Yes, more information is required about your circuit (what kind of oscillator you are using, etc) and use configuration word.

Also, your code is making portC 0x0F , not 0xFF
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…