Help with PIC 12F683 bit confituration in PBP3


+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Posts
    78

    Default Help with PIC 12F683 bit confituration in PBP3

    Hello all,

    I would like to setup a 12F683 with 3 pins as inputs, and 3 pins as outputs.
    This means I will need to change the default bit configuration for the GPIO3 pin - which by default is MCLR

    If I understand correctly - in PBP3 I will need locate the following at the beginning of the code:

    #CONFIG
    __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF
    #ENDCONFIG

    Is this correct?

    Or is it a better practice to do this with the interface tools - such as Pickit2 or the MPLAB software?

    Thanks!
    dw

  2. #2
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    395

    Default Re: Help with PIC 12F683 bit confituration in PBP3

    Either method works, however, placing your CONFIGs in your code lets you debug issues better. If something doesn't work, and the problem lies with your CONFIG settings you set up a program time (with the pop-up window), how would you know??

  3. #3
    Join Date
    Jan 2007
    Posts
    78

    Default Re: Help with PIC 12F683 bit confituration in PBP3

    Thanks - good wisdom!

    However, I'm not familiar with setting up a program time (with the pop-up window)

  4. #4
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    395

    Default Re: Help with PIC 12F683 bit confituration in PBP3

    When you go to program, the Programmer window pops up. Under View/Configuration you can view your CONFIG options similarly to MPLABX. There are quite a few neat features in the header tabs. You ought to play with it and get to know your tool. Charles walked me through it several years ago.

  5. #5
    Join Date
    Jan 2007
    Posts
    78

    Default Re: Help with PIC 12F683 bit confituration in PBP3

    Thanks!
    I'm familiar with the MPLAB config editor.
    I guess because that was there I never thought much to look the the Pickit2 options.
    But perhaps you're referring to the ME programmer.
    I haven't used that since I had to let go of my PC with a serial port.
    I thought I would try out the Pickit2 and that seemed to be working fine.
    But just last week it died on me.
    So I may end up getting one of the newer ME Labs units
    Thanks!

  6. #6
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    395

    Default Re: Help with PIC 12F683 bit confituration in PBP3

    I have an old Pickit2 I haven't used in years. I also have a Pickit3 that I haven't used in about a year. I usually use either the Pickit4 or ICD4, depending on the board. I have the ME Labs U2 Programmer that I use often when breadboarding. Lastly, I have the inexpensive Snap, which I bought only to verify it worked on circuits I sent to my partner (who also has one). If cheap is a priority, you might look into the Snap:

    It programs anything Microchip sells, but
    - It cannot power the project
    - It requires LVP for programming

  7. #7
    Join Date
    Jan 2007
    Posts
    78

    Default Re: Help with PIC 12F683 bit confituration in PBP3

    I was successful at doing this.
    Thanks everyone for your kind help! :-]

Similar Threads

  1. How do I use 10 bit A/D on 8 bit Pic? 12F675
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 1st April 2020, 20:10
  2. PBP3 Code Does not Compile with PBP3.1
    By RossWaddell in forum PBP3
    Replies: 5
    Last Post: - 2nd July 2017, 08:42
  3. PIC 12F683 and DS18B20 problem
    By slash819 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th February 2012, 18:31
  4. pic 12f683 adc help please
    By Helgeland in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd February 2012, 14:31
  5. pic 12F683 question
    By Bouif2 in forum Forum Requests
    Replies: 7
    Last Post: - 29th January 2010, 16:21

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts