Hi Gary,
It's hard to tell without the code you're using, but here's something to look at.
INTOSC, is the same as INTRC_OSC_CLKOUT. Which means that FOSC/4 (1mhz) will be put out on GP4. If you have an o-scope, you can look for this signal to see if the processor is running or not.
If there is anything attached to GP4, it could also cause the chip to reset from over-current.
>> I'm using PBP and the 4.x melabs programmer
Is that 4.1? If so, look at the Code window in meProg.exe. (View | Memory)
Open the HEX file and press the program button. Now look at location 0000 in the code window. Has it changed?
There's a bug in that version that sometimes causes the first word to change to 0000h, which makes the program not run. If that's the case, you can download the 4.2 beta from the melabs website.
Here's a simple blink program for the 12F675...
Code:
@ device pic12F675, intrc_osc_noclkout, wdt_off, mclr_off, protect_off
CMCON = 7
ANSEL = 0
Main:
TOGGLE GPIO.5
pause 500
goto Main
<br>
ADDED: Kees, intrc_osc isn't valid for a 12F675
Bookmarks