How to use GPIO meant for OSC


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Set the config to
    Code:
    __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF
    Then you can use the internal 4 MHz osc and GP3 can be used for an input.
    Then turn off the ADC
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2008
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Problem solved. Need to use the following code if not using MPASM assembler in PBP:

    asm
    device pic12F629, MCLR_OFF,INTRC_OSC_NOCLKOUT, wdt_off, pwrt_on,protect_off
    endasm
    Last edited by Pic2008; - 26th August 2008 at 07:52.

Similar Threads

  1. Gpio ? Trisio ?
    By ultiblade in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th October 2008, 14:38
  2. 12F675 A/D and GPIO sleep interrupt
    By macinug in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 8th September 2008, 14:39
  3. 12f629 Gpio
    By alfredo canales in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th May 2008, 12:53
  4. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  5. 12c508 Gpio
    By oki_one in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th August 2003, 07:51

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