18F1220 newbie


Closed Thread
Results 1 to 17 of 17

Thread: 18F1220 newbie

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: 18F1220 newbie

    Thank you Henrik, I have now removed the config statements from the PBP 2.6 18F1220.inc file
    and inserted the required config statements into my program. Works like a dream and no more
    interfering with the .inc file.
    I realise now that my problem was caused by the inclusion of the following lines in the PBP 2.6
    18F1220.inc file:
    "
    __CONFIG _CONFIG1H, _XT_OSC_1H
    __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
    __CONFIG _CONFIG4L, _LVP_OFF_4L
    "
    I can't believe that this took thirty hours to resolve. I would most probably
    have abandoned this project if I hadn't received such patient and speedy assistance from
    you and Richard. And an added bonus - I don't have to go to the pains of buying new
    software tools and dealing with their idiosyncrasies.

    Hebe

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: 18F1220 newbie

    Hi,
    Yes, dealing with the CONFIG bits has got to be THE single most discussed issue on this very forum and, I'm guessing, on the various support channels to MELABS - which is probably why they changed it - for the better - when releasing PBP3. That change alone is IMHO worth the cost of an upgrade, not to mention the conditional compile feature but of course YMMV.

    Now that you've commented the CONFIG out of the .inc file you must remember to always include them in your source file when compiling for that particular device. If you don't they will default to their erased state.

    /Henrik.

Similar Threads

  1. 18F1220 A/D Converter
    By BobEdge in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st May 2011, 16:50
  2. 18F1220 fuse help
    By mr.sneezy in forum General
    Replies: 6
    Last Post: - 24th May 2010, 14:54
  3. 18F1220 LCD and Sleep
    By jderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th July 2008, 18:58
  4. 18F1220 and DT Instant Interrupts
    By jderson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th June 2008, 05:37
  5. Sleep command with 18F1220
    By suded in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th April 2005, 11:11

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