18f2550 oscillator problems


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Hey guys,

    Thanks so much for your input. Much appreciated. _CPUDIV_OSC1_PLL2_1L fixed it. I now have the same problem on a 16f88 that I was trying to use with internal osc. It ran about 10 times slower than it should. I can't find any fuses relating to PLL. I was out of internet range (I work on a boat) so I put a resonator in the circuit and fixed it that way. Strange to have the same problem with 2 different chips when there is absolutely no relationship between the problems!! Well, there must be a fuse somewhere I can't recognise!

    Thanks again

    Rich

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    well it's more than set a fuse, you also need to set the internal OSC register. Open the datasheet under OSCCON Section. If my memory serves me well, the default value is set to 32KHz

    And then if my memory still serves me well
    OSCCON=%01100000 ' will set the internal osc to 4MHz
    OSCCON=%01110000 ' will set the internal osc to 8MHz
    Last edited by mister_e; - 27th September 2007 at 14:13.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Sep 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Default

    Thanks Mr_e!

    I actually tried 8mhz and 4mhz internal using the following settings:

    DEFINE OSC 8
    OSCCON=%01110000

    DEFINE OSC 4
    OSCCON=%01100000

    My fuse setting was INTRC. I can't find anything else of relevance to osc speed in fuses. It's not a major problem as ultimately I will use a 20mhz crystal but it would enhance my understanding for future projects to be able to use the internal osc.

    Cheers

    Rich

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


    Did you find this post helpful? Yes | No

    Default

    Just a thought, have you read this? Post #6
    http://www.picbasic.co.uk/forum/show...ost13087#post6
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. 18F2550 timing
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd August 2008, 01:30
  2. 18f2550 + 24lc512
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2007, 23:02
  3. Madness, 18F2550!
    By tom in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 11th February 2007, 12:00
  4. 18f2550 'access is denied' USB error?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th December 2006, 15:29
  5. EasyHid and 18F2550 - why? what? how?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th December 2006, 08:57

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