PDA

View Full Version : I cant program a 12F675



LarryZ
- 23rd September 2009, 00:09
I'm trying to compile a basic program fro a 12F675 but I can't seem to get anything to work togeather. I have Micro studio and Code designer lite and Pic Basic pro free versions but none of them will let me compile my Basic programs to HEX form.
I have a PIC KIT2.
Any help?

mackrackit
- 23rd September 2009, 01:15
What errors are you getting?

Archangel
- 23rd September 2009, 03:28
I'm trying to compile a basic program fro a 12F675 but I can't seem to get anything to work togeather. I have Micro studio and Code designer lite and Pic Basic pro free versions but none of them will let me compile my Basic programs to HEX form.
I have a PIC KIT2.
Any help?Hi Larry,
FYI the freebie version of PBP is limited to some 30ish lines of code, and . . . I believe . . . that includes the lines you do not see which are hidden in commands like LCDOUT . . .Post your code and let's see what's ailing it.

LarryZ
- 23rd September 2009, 14:57
The code is a copy of a program I got from here. I was using it as a test to work with.
Here it is.


REM DEVICE = 12F675
CMCON = 7 'SETS DIGITAL MODE
ANSEL = 0 'GPIO.0 TO GPIO.3 SET AS DIGITAL
OPTION_REG = 0 'WEAK PULLUPS ENABLED
TRISIO = %00001100 'GPIO.2 AND GPIO.3 SET AS INPUT
VRCON.7 = 0 'TURN OFF VOLTAGE REFERENCE
' ************************************************** ***************
'CONDITIONS: INTERNAL OSC CLOCK OUT, WDT DISABLED, PWR UP TIMER DISABLED,
'MCLR FUNCTION: INPUT PIN, BROWN OUT RESET DISABLED, NO PROTECTION
DEFINE OSCCAL_1K 1 'SAVES OSCILLATOR CALIBRATION
START:
HIGH GPIO.0
PAUSE 100
LOW GPIO.0
PAUSE 100
IF NOT GPIO.2 AND NOT GPIO.3 THEN START 'IF BOTH ARE LOW, THEN LOOP
LOW GPIO.0
PAUSE 500

IF GPIO.2 OR GPIO.3 THEN HIGH GPIO.0 'ENERGIZE RELAY
IF NOT GPIO.2 AND NOT GPIO.3 THEN DELAY
GOTO START


DELAY:
PAUSE 2000 '2 SECONDS
LOW GPIO.0 'DE-ENERGIZE RELAY
GOTO START
END

I am running Windows XP

The Errors from the programs are :

From Code DesignerLite:

C:\windows\system32\cmd.exe
C:\windows\system32\autoexec.nt. “The system is not suitable for running MSDOS and Microsoft windows.

In Micro Code Studio There is no 12F675 in the pull down window.

In MPLAB IDE v.8.33:
I get “ Processor 12F675 not supported in Demo version. Time to purchase?

Do I need some other program?
Thanks for the help.
Larry

Acetronics2
- 23rd September 2009, 15:38
The code is a copy of a program I got from here. I was using it as a test to work with.
Here it is.


I am running Windows XP

The Errors from the programs are :

From Code DesignerLite:

C:\windows\system32\cmd.exe
C:\windows\system32\autoexec.nt. “The system is not suitable for running MSDOS and Microsoft windows.

In Micro Code Studio There is no 12F675 in the pull down window.

In MPLAB IDE v.8.33:
I get “ Processor 12F675 not supported in Demo version. Time to purchase?

Do I need some other program?
Thanks for the help.
Larry

Hi, Larry



“ Processor 12F675 not supported in Demo version. Time to purchase?"


Looks Obvious if you want to stick to 12F675 ...

Choose a PBP demo supported processor ( F84, F 628, F877 ?... I do not know), or Buy your PBP license or turn to other demo compilers if ... "just for fun" ...

If it's just for a test (?) I give you the compiled Hex ... for '675

Alain