Hello,

I've just started working with the 10F222, and haven't been able to get anywhere due to a 'Code Programming Error at 0000'. I've poked around on the threads and found a couple of interesting things [apparently, bit 5 of Option_Reg interferes with the function of GPIO.2..?]. Anyhow, I'm using PBP, and the meLabs USB programmer. Firmware has been updated on the programmer. ZIF adapter is connected correctly. Chip package is DIP.
The process goes like this.

Write some simple test code [below, board set up with LEDs on pins 3,4,5]
Ask PBP to compile [no errors or warnings. Yes!]
Set OSC, MCPU, WDT, MCLR, Code Protect in meProg configuration window.
Ask meProg to program, and get a message
'Device not blank, program anyway?'
Well, yes. I want you to program the chip after all. Click OK, and get message
'Code Programming Error at 0000'

I've read the chip with the meProg, and it's blank.
I've tried all the chips [10] in my batch.
Any advice will appreciated.




Code:
 

OPTION_REG = %11000000
ADCON0 = 0
TRISIO = 0
GPIO = 0

Main:                        'chase the LEDs
    high GPIO.0
    pause 500
    low GPIO.0
    high GPIO.1
    pause 500
    low GPIO.1
    high GPIO.2
    pause 500
    low GPIO.2 
    pause 500

goto MAIN