RA6 & RA7 I/O setting on the 16F88


Closed Thread
Results 1 to 36 of 36

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Location
    Sweden
    Posts
    73

    Question RA6 & RA7 I/O setting on the 16F88

    I would like to use RA6 & RA7 on the 16F88 as standard I/O. I haven’t been able to figure out (the datasheet is not helping me a lot) how to set the CONFIG1 (FOSC) bit 4, 1 and 0 to (%1XX00) without disturbing other settings. Can someone please explain how to accomplish this.


    Thanks!

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


    Did you find this post helpful? Yes | No

    Default

    You can find all of the config settings in the *.inc file for the chip by going to program files, microchip, mpasm suite.. find the *.inc for your chip , open in notepad, go towards the end.

    Looks like
    _INTRC_IO

    That should have the internal running and the two pins as I/Os.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi PICante,

    I had the same problem with the 16F87 which is sister chip to the F88. Do a search for my thread entitled "Internal Osc help" dated January 12, 2007 and look at Bruce's reply. It worked for me.

    HTH,

    BobK

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


    Did you find this post helpful? Yes | No

    Default

    Now I am confused.

    I went and read the post Bob mentioned and tried it. Did not work.

    I do not have a 16F88 laying around, but set up a project in MPLAB.

    When I use _INTRC_IO and read the config register I have the expected results.

    When I use _INTRC_OSC_NOCLKOUT I get an error and the config register says LP.
    Dave
    Always wear safety glasses while programming.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Now I am confused.
    I went and read the post Bob mentioned and tried it. Did not work.
    I do not have a 16F88 laying around, but set up a project in MPLAB.
    When I use _INTRC_IO and read the config register I have the expected results.
    When I use _INTRC_OSC_NOCLKOUT I get an error and the config register says LP.
    Unless I'm wrong, the P16F88.INC file in the MPASM doesn't have that config directive listed.
    It's got these listed for oscillators:
    ;Configuration Byte 1 Options
    _EXTRC_CLKOUT EQU H'3FFF'
    _EXTRC_IO EQU H'3FFE'
    _INTRC_CLKOUT EQU H'3FFD'
    _INTRC_IO EQU H'3FFC'
    _EXTCLK EQU H'3FEF'
    _HS_OSC EQU H'3FEE'
    _XT_OSC EQU H'3FED'
    _LP_OSC EQU H'3FEC'

    I think you want INTRC_CLKOUT.

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


    Did you find this post helpful? Yes | No

    Default

    We are looking at the same thing.

    I picked _INTRC_IO because I think that should make the pins I/Os.

    So what was Bruce talking about in Bob's post? The *.inc s are pretty much the same for the 88 and 87.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. PICKit2 - warning about configuration words
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 4th August 2009, 14:01
  2. Setting I/O ports on 16f629
    By Optech in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 24th January 2008, 21:51
  3. 16F88 RA6 and RA7 troubles
    By gandora in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 3rd August 2007, 02:57
  4. 16F88 - CCPMX strange fuse setting for HWPM
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 5th April 2007, 22:33
  5. Making RA6 (OSC2) an output on a 18F2525
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th September 2006, 17: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