18f2550 oscillator problems


Closed Thread
Results 1 to 14 of 14

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    and then ... bit 2+3 are read-Only... so writing 1 or 0 on these won't change anything... sorry again

    Ever have ONE OF THOSE DAYS when.... Thanks for letting me know that I am having one.
    Oh... trust me... i really understand... i recently have more than day(s) like that... count them in weeks and months....
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    and then ... bit 2+3 are read-Only... so writing 1 or 0 on these won't change anything... sorry again
    Well I have got bigger problems than I thought. I am trying to learn the 18F4320 and I realize you can read bits 2+3 , but the only way I can get the chip to run correctly is to set them high.

    Must have been a fluke, now I am going to try them low. I have only done a couple of projects with this chip.

    Just tried it on a data logger I am working on, now bits 2+3 do not make a difference.

    Learn something every day Thank you Mr.E
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    nice! You're welcome.

    Don't worry, we all learn new thing every day with those nifty black pinned boxes.

    Thanks to internet, forums and various Gurus all 'round the world. Really nice toolssssssssss!
    Steve

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

  4. #4
    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

  5. #5
    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 13:13.
    Steve

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

  6. #6
    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

  7. #7
    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, 00:30
  2. 18f2550 + 24lc512
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2007, 22:02
  3. Madness, 18F2550!
    By tom in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 11th February 2007, 11:00
  4. 18f2550 'access is denied' USB error?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th December 2006, 14:29
  5. EasyHid and 18F2550 - why? what? how?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th December 2006, 07: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