pickit 3 and configuration bits.


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2010
    Posts
    11

    Default pickit 3 and configuration bits.

    hi.

    i am battling to get my pickit 3 to work.
    using the examples which are in written in c it works perfect,however when i
    write my little program,nothing happens.
    therefore it leaves me with one conclusion: the configs are not set and i cannot find any literature on how to set these
    eg the mclre_off.how would one set the configs so that my little program will work,bearing in mind that the chip is loaded with my program.

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


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Feb 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Default configuration settings.

    0so if i try this it should work?

    @ _MCLRE_OFF_3H & _LVP_OFF_4L
    EQU H'FB' // EQU H'7F'

    what about the part where it mentions the equ?.will that be left out.

    will the first line of code work?

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


    Did you find this post helpful? Yes | No

    Default

    Which PIC are you using?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Default Pickit3 configbits

    The 18f45k20.

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


    Did you find this post helpful? Yes | No

    Default

    Soory, fussed out a bit, I know what you are asking...

    You must be looking at the inc file in MPASAM Suite.
    Do not worry about the "EQU H'FB" stuff. Just addresses.
    That file tells all of the options and a bunch of other things.

    The file to change or comment of you set the configs in code space is the inc file in the PBP directory. The way they are set up there is what you need.

    Assume you want MCLRE off and I will guess a HS OSC?
    Code:
           @ __CONFIG    _CONFIG1H, _FOSC_HSPLL_1H
           @ __CONFIG    _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H
           @ __CONFIG    _CONFIG3H, _MCLRE_OFF_3H & _PBADEN_OFF_3H
           @ __CONFIG    _CONFIG4L, _LVP_OFF_4L & _XINST_OFF_4L
    Notice the MCLRE is on the CONFIG3H line.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Feb 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Default

    thanks.
    i will try these this evening and give a quick reply in the morning.

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. Warning: Some configuration words not in hex file
    By Byte_Butcher in forum General
    Replies: 2
    Last Post: - 14th December 2009, 06:25
  3. ADC Problem with PIC16F88 Configuration
    By robert.quaas in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th April 2009, 17:46
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. 18f4620 Configuration bits
    By Raflex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th September 2006, 20:32

Members who have read this thread : 1

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