Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top