PDA

View Full Version : Epic Plus And 12f683 Novice Please Help



B_Symons
- 30th June 2005, 01:23
I just purchased some 12f683 and can't get them to program.

I am using PBP 2.46 and melabs programmer v3.3 beta.
My programmer is Epic Plus.

I have verified that the programmer is working. I programmed a 16f628 with no problems.

I keep getting "Code programming error at 0000."


My code is as follows


@ DEVICE INTRC_OSC, MCLR_off, PROTECT_OFF, WDT_OFF
OSCCON = %110 ' Set OSC TO 4MHZ
CMCON0 = 7 ' Comparators off
ANSEL = 0 ' A/D OFF -- Port pins all digital
TRISIO = %000000 ' All I/O outputs
GPIO = %00000000 ' All 0 on boot

LED VAR GPIO.0

START:

LED = 1

PAUSE 500

LED = 0

PAUSE 500

GOTO START

B_Symons
- 30th June 2005, 07:22
I think I have the programmer working now.
I replaced meprog v3.30 Beta with EPICWin Beta and now it seams to be working.
However, I am still unable to blink an led. Now I am thinking the problem is in my code as I am unfamilliar with this pic (12f683).

Any suggestions?

Thanks in advance.

Brian Symons