12F683 _CONFIG problem


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: 12F683 _CONFIG problem

    Plus to the above, you still had one underscore instead of the correct two.

    Ioannis

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: 12F683 _CONFIG problem

    I have used the following header for the 12F683 many times and never encountered any compiling problems. Try it.

    CMCON0 = 7 'comparators off
    ANSEL = 0 'all inputs digital, the adcin command automatically converts it to analog
    DEFINE OSCCON_1K 1 ' Set OSCCAL for 1K device to accurize osc
    OSCCON = %01110111 'Set osc to 8MHZ 12F683. Normally I leave this line out to default to 4MHZ
    @ DEVICE MCLR_ON, INTRC_OSC_NOCLKOUT, WDT_ON, BOD_OFF, PWRT_ON, PROTECT_ON

    START:

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: 12F683 _CONFIG problem

    I think you refer to an ancient version of PBP.

    Now we do not use this @ DEVICE MCLR_ON.....

    Current versions use this syntax:

    Code:
    #config
     __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _BOD_OFF & _MCLRE_ON & _CP_OFF 
    #endconfig
    Ioannis

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: 12F683 _CONFIG problem

    Yes it is old. I think it's version 2.65 or something.

Similar Threads

  1. 12F683 Light Dimmer Problem (SOLVED)
    By DavyJones in forum General
    Replies: 19
    Last Post: - 24th July 2020, 22:59
  2. PIC 12F683 and DS18B20 problem
    By slash819 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th February 2012, 18:31
  3. 12F683 Logic Output Problem?
    By shockwave in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th February 2012, 19:48
  4. _config set change for pic12f683
    By nbrucew in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th March 2010, 01:03
  5. 12F683 GPIO.3 problem
    By ozarkshermit in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 30th October 2009, 08:43

Members who have read this thread : 0

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