internal oscillator

Discussion in 'Embedded Systems and Microcontrollers' started by ratan.pic, Mar 6, 2009.

  1. ratan.pic

    Thread Starter New Member

    Mar 6, 2009
    1
    0
    hi,
    I am using pic 12f675 8-pin Ic and I want to use all 6 i/o pins for my application .
    I am using MPlAB IDE 8.2 and my program is in .asm so I want to know how can I configure to use internal oscillator in use as I don't want to use any external crystal or RC circuit on the available pins. please send source code if possible.
     
  2. nanovate

    Distinguished Member

    May 7, 2007
    665
    1
    MPLAB has a "Configure" tab .. try clicking on that after reading the Help files.
     
  3. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
  4. Gert

    New Member

    Mar 19, 2009
    6
    0
    Hi

    Try this:
    __CONFIG _INTRC_OSC_NOCLKOUT

    I hop that this will help.(not entyerty sure but I think that it will work)
    Just a the rest of the configerations afterwardes.

    Gert
     
  5. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    Just so you know, GP3/MCLR/Vpp pin 4 is INPUT ONLY. It doesn't have a weak pull-up available, either.
     
  6. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,644
    759
    Have you tried the datasheet? That is the way to go.
     
  7. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Here is the config line to use all IO on the 12F675, and disable the watchdog timer with MPLAB Assembler:

    __CONFIG _MCLRE_OFF&_CP_OFF&_WDT_OFF&_IntRC_OSC_NO_CLKOUT

    Also pay special attention to SgtWookie's post above, and the datasheet.
     
Loading...