Trouble setting config. bits


Closed Thread
Results 1 to 3 of 3
  1. #1
    jswayze's Avatar
    jswayze Guest

    Default Trouble setting config. bits

    Hi folks,

    I'm brand new to PBP, and I'm trying to adapt some 16F84 code to a 16F628. One thing I'd like to do but cant is to set the configuration bits within the compile and not in the EPIC programmer setup screen.

    From what I've seen in this forum, you are supposed to type something like:

    @ DEVICE pic16F628, INTRC_OSC_NOCLKOUT

    to set that bit. However, when I do this, I get warning messages:

    Warning [207] c:\blablah.asm 92: Found label after column 1 (DEVICE)

    and

    Error[122] c:\blahblah.asm 92: Illegal opcode [pic16F628]

    I've tried some of the other variations I've seen and still can't get it to compile without errors/warnings. Any idea what I'm doing wrong? I can work around this, but it's a pain!

    Thanks,
    Jeff

  2. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Jeff,

    what version of PBP are you using?

    Are you using PM or MPASM ?

    regards

  3. #3
    jswayze's Avatar
    jswayze Guest


    Did you find this post helpful? Yes | No

    Default

    Well, as things sometimes go, it's the question that provides the answer.

    I was in fact using MPASM (what 's the difference between PM and MPASM?) and that was the root of my problem. I've since found ME Lab's page on the same topic, and that answered all my questions. Shame I couldn't find it before; here's a link for those looking for it in the future:

    http://picbasic.com/support/config_defaults.htm

    Thank you!

    -Jeff

Similar Threads

  1. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  2. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  3. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  4. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

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