Pickit3 from Microcode Studio


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    OK, borrowed a clone pickit3 from a guy at work.
    set it up as we discussed - that went fine!

    So, NOW I discover how thick I really am!
    Since I'm not using epic, I need to define the pic and settings in the file. I get compile errors when I use
    @ DEVICE PIC16F88 __config _CONFIG1, _INTRC_IO
    I want to use the internal oscillator.

    and error 207 "found label after column error and
    err 122 "illegal opcode"

    I've searched for quite a while AND tried a variety of syntax AND looked in the 16f88 inc file and know I'm missing something but....

    So, syntax wise I need to tell MPASM
    1. the processor
    2. the fuse options

    everyone else just posts
    @ __config _CONFIG1, _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _LVP_OFF & _CP_OFF

    or some applicable derivative of this and it works, but makes me wonder how MPASM knows the processor.

    So I add
    INCLUDE "p16f88.inc"
    and it says "unable to open include file"

    What am I missing?

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


    Did you find this post helpful? Yes | No

    Default

    The processor is stated in the ASM code generated by PBP that is then turned to hex.
    If you are using MCS or MPLAB the chip selected is the one used when the code is compiled.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Oct 2010
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    I am using MCS and PBP
    I see that, I forgot about that, I was thinking about the epic definitions.
    So, one question down, I see the definition for the processor. So why does

    @ DEVICE PIC16F88 __config _CONFIG1, _INTRC_IO
    or
    @ __config _CONFIG1, _INTRC_IO

    give me error[118]?

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Plcguy View Post
    @ __config _CONFIG1, _INTRC_IO

    give me error[118]?
    If you are going to set configs in your code, you need to comment out the default configs in c:/pbp/picxxx.inc file like this (see bottom "do not forget" paragraph) http://www.picbasic.co.uk/forum/cont...o-your-Program
    http://www.scalerobotics.com

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


    Did you find this post helpful? Yes | No

    Default

    And I will add..
    Do not use PM
    @ DEVICE PIC16F88 __config _CONFIG1, _INTRC_IO

    Move up to MPASM
    @ __config _CONFIG1, _INTRC_IO

    It will save you problems in the future.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Oct 2010
    Posts
    27


    Did you find this post helpful? Yes | No

    Default

    Now that I see Melanie's write up I get it.
    I'm surprised I didn't find this in a search? I looked in FAQ, but that is for the forum only.

    Thank you for the pointing.

    So, I'm assuming PM has "features" MPASM doesn't?

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


    Did you find this post helpful? Yes | No

    Default

    The write up from Mel is in the FAQ forum.
    You have it backwards, MPASM has more than PM.
    Dave
    Always wear safety glasses while programming.

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