Need help with config


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Mar 2004
    Posts
    74

    Default Need help with config

    I am trying to set up internal asc and MCLr options in the config of my code for a 16f688. The data sheet has the config bits for all of this on page 100. Is there an easy way of setting this? I tried config=%11001111000100 nut this did not work. I got a syntax error. The posts that I have read seem to set each function in the config individualy. Can some one point me in the right direction.
    Thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I may have mis-understood your post but if you're just trying to set the configuration bits try:

    for PM Assembler:
    Code:
    @ device INT_OSC, MCLR_OFF
    Is this what you're after?

    Kind regards

    Rob

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


    Did you find this post helpful? Yes | No

    Default

    Hi Darrenmac,
    see this thread for configs.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    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
    Feb 2005
    Location
    Essex, UK
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Hi Darrenmac,
    see this thread for configs.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Yeah, that's a good thread - should've posted a link to it myself!

  5. #5
    Join Date
    Mar 2004
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I have read the suggested post again. All examples in this post appear to set each option in the config seperatly, ie pic type, mclr, pwrt as seperate comands but the datasheet for the 16f688 shows a config register called 11.1 (page 100) with each option as seperate bits either set or cleared. Can I just send this as a binary string (or hex equivelent)? if so how?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrenmac View Post
    Can I just send this as a binary string (or hex equivelent)? if so how?
    It never worked that way for me, every newbie reads that and tries it,(I did) and it has never worked that I heard of. You can string the commands together though, like so:
    Code:
    @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE_ON & _MCLRE_OFF & _BODEN_ON & _LVP_OFF & _CP_ALL & _DATA_CP_ON
    The data sheet shows you what happens in those registers, but you can access them only at program time and require you to use the proper syntax as shown in Melanies post.
    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.

Similar Threads

  1. Run-Time Config
    By Darrel Taylor in forum PBP Extensions
    Replies: 1
    Last Post: - 1st February 2012, 16:26
  2. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  4. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

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