1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

__CONFIG explanation

Discussion in 'Microcontrollers' started by kilarn, Feb 12, 2009.

  1. kilarn

    kilarn New Member

    Joined:
    Feb 12, 2009
    Messages:
    2
    Likes:
    0
    I am new to the PIC world... i have had some C and assembly, but i an not familiar with the __CONFIG and how this works...
    Can anyone offer me a good explanation on this... this has to be utterly basic i know.

    I am using (at least would like to) a PIC16F887.

    THank you !
     
  2. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,205
    Likes:
    640
    Location:
    Derbyshire, UK
    It's used for setting the configuration fuses - it's an assembler directive (instruction to the assembler, NOT a PIC instruction), the MPASM helpfile explains it.
     
  3. JBrock

    JBrock Member

    Joined:
    Feb 8, 2009
    Messages:
    48
    Likes:
    1
    Location:
    Carlsbad CA
    In my dim understanding, the config file is a small set of data which is read from flash (non-volatile memory) on power-up. It configures programmable logic devices to define their personality and behavior. Such devices have huge internal logic arrays which can be mapped out and set up as needed by the config. This allows very general-purpose devices to serve very specific functions, depending on how you "config" them! :)
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. mvs sarma

    mvs sarma Well-Known Member

    Joined:
    Oct 29, 2006
    Messages:
    3,512
    Likes:
    76
    Location:
    Hyderabad, India.

    Suppose you have general study of the datasheet for 16F887, many clouds would be cleared. For C language related doubts you have to read and appreciate from the instruction manual of the software provider. You would get a better clarity. For left over issues you can always come back to electro-tech-online where the concerned experts would be rather happy to serve........
     
  6. kilarn

    kilarn New Member

    Joined:
    Feb 12, 2009
    Messages:
    2
    Likes:
    0
    Thank you, this clears up alot with the configuration bits...

    i will also take the advice and study more...

    Best regards,
     

Share This Page