18F2525 Int Osc settings?


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125

    Question 18F2525 Int Osc settings?

    I am moving from a 16F867/A to an 18F2525 - very similar pin-outs both 28 pins. The challenge is that I can't seem to get the INT OSC to work...

    On the 16 part I was running a 4mz XT, on this one, I want to run 8Mhz INT. I have found the fuses for the 18F, and set the OSC, but I don't think it worked.

    I really just need to turn off all the special stuff, and use the pins as digital I/O - no A/D, nothing.. Just read-in from serial data on RB4 at 9600b, and read data back out to two devices one on RC5 and one on RC4. As well, I have external I2C eeprom on RC3, RC4, saving to EEPROM, and reading out to serial data - and hopefully an LCD on RA0-RA5.. Also using an interrupt on RB0 and RB1..

    This was working with the 16 part, but I need some pointers on how to set the 18F2525..

    Ideas?

    Thanks,
    Tom

  2. #2
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Thumbs up

    Fixed. I found via email that my issue internal OSC setting problems were because I needed to turn off MCLR, and use the OSCCON setting for 8 Mhz, and it works fine.

    OSCCON=%01111000
    DEFINE OSC 8

    The 18 Parts have LOTS of switches. More difficult a switch than I thought it would be. Working now however.

    My settings are:

    @ __CONFIG _CONFIG1H, _OSC_INTIO67_1H
    @ __CONFIG _CONFIG2H, _WDT_ON_2H & _WDTPS_128_2H
    @ __CONFIG _CONFIG3H, _PBADEN_OFF_3H & _MCLRE_OFF_3H
    @ __CONFIG _CONFIG4L, _LVP_OFF_4L & 0bfh ;_XINST_OFF_4L

    Not sure if I have it all right yet, but at least I am moving forward!

    Thanks.

    Tom

Similar Threads

  1. Replies: 4
    Last Post: - 9th October 2009, 08:01
  2. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  3. Trouble using int. osc. On 18f2455
    By KPDes in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th June 2007, 10:35
  4. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

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