Programming 12F683 in QBASIC


Results 1 to 18 of 18

Threaded View

  1. #6
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Programming 12F683 in QBASIC

    That GP3 has tripped me up more than a few times as I was just learning. That is true, it can only act as an input (or the MCLR, depending on your configuration fuses)

    In fact on all the PIC's that I have worked with so far... What ever pin is the MCLR pin can ONLY act as Input or MCLR.
    All the other 5 pins can act as either input or output depending on the TRISA register.

    Be sure and get (download) the datasheet for any PIC that you choose to work with.
    It is essential to refer to as you are setting up and defining the pin functions and other features (timers, A/D, PWM, etc).

    The configuration (CONFIG) register is the one that defines the function of that GP3 pin, (and other things like WDT, Brown Out Reset, etc). This register can ONLY be defined at the time you burn the program into the PIC. It can NOT be changed on the fly by your program as it runs. So you must choose how you want the bits in the CONFIG register set and leave them that way unitl you re-program the PIC.

    good luck
    Last edited by Heckler; - 4th January 2014 at 16:16.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Similar Threads

  1. first program 12f683
    By sparkness in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 4th January 2014, 16:07
  2. 12f683 help!!!! L@@K!!!
    By thm ov3rkill in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd December 2008, 22:46
  3. 12F683 Programmer
    By Red_Stafford in forum Schematics
    Replies: 9
    Last Post: - 2nd October 2008, 21:44
  4. Replies: 2
    Last Post: - 23rd July 2006, 08:16
  5. 12F683 Startup
    By GregK in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th March 2005, 00:25

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