I cant program a 12F675


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2009
    Posts
    6

    Default I cant program a 12F675

    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?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    What errors are you getting?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by LarryZ View Post
    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.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jul 2009
    Posts
    6


    Did you find this post helpful? Yes | No

    Default 12F675 help

    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

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by LarryZ View Post
    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
    Attached Files Attached Files
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  3. Compile and Program help using PICKit2
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th March 2009, 14:51
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. PIC16F684 Program question
    By Nicholas in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th December 2006, 14:30

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts