RA6 & RA7 I/O setting on the 16F88


Results 1 to 36 of 36

Threaded View

  1. #28
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi PICante,
    Lots of speculation going on here, please give this a try:
    Code:
    @ __config _CONFIG1,_INTRC_IO
    OSCCON =126 ' or 1111110 or $7E for 8mhz, 1101110 for 4mhz, 1011110 for 2 mhz . . .
    page 40 of the data sheet I am looking at, sect. 4.6.3
    Osccon bits 6:4 set osc speed, bit 3 when set makes primary clock, bit 2 set= stable, not set= not stable, bit 1:0 set as 10 = internal R/C as system clock<br>
    edit: 1111110 = 126 not 62
    Last edited by Archangel; - 13th August 2008 at 00:01.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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