12F675 Stops working

Status
Not open for further replies.

Clonus

New Member
Hi there, having some problems with the 12f675

btw, I'ma new pic programmer, so i'm very much a newb.

so, i have the typical blink the led on gpio.0

i have vdd and vss setup 3 volts

so, i noticed that the pic runs for about 2 seconds then stops...

i figured that there was something wrong with my bread board,maybe intermiitent connectiviy or something...

THEN, i realized that when i touched the pins with my fingure trying to push it back onto the board the pic would start again...

to make a long story short,it seems i must have vdd in gpio.3 as well????

it works when i do this, ive tried 3 other chips, same issue.

why must i supply power to this pin as well????

thanks
clonus
 
If MCLR is not disabled in your configuration bit settings then the GP3/MCLR pin must be pulled up to VDD.

Are you setting the configuration bits in your source files? Are you disabling the MCLR function in your configuration bit settings?

Code:
;******************************************************************
;*                                                                *
;******************************************************************

        #include <p12f675.inc>
        errorlevel -302

        __config _MCLRE_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT

;
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…