Slow starting up


Closed Thread
Results 1 to 35 of 35

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Hi,

    Nothing Strange .... Just Shame on me

    Alain

    PS: F....ing Timeout !!! I begin to think just a Lester's trick to get more posts on the forum counter ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Thanks for he program Alain, way better then mine
    I changed breadboard, redone the circuit and it works !! go figure....
    I tried opersting at 1Mhz to get slower output frequency. used
    OSCCON = %01001000 '
    but DEFINE OSC 1 do not work.
    Do I have to do something else ?
    K

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Yes ...

    Urgent to learn your Holy Manual !!!

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Hey
    belive me I had a look..
    page 278 and 279 of the manual states the define and OSCCON values.
    The datasheet talks about the OSCCON value which I set. But the define OSC 1 Mhz do not work. Lowest it will go is 4Mhz.
    Datasheet stipulates internal oscillation can go as low as 31khz...

  5. #5
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    I'd like to see the rest of your code but is OSCCON = %01001000 correct? Shouldn't it be OSCCON = %01001110? I'm assuming you're using an internal oscillator, should be stable and it should be used as system clock. I don't know why 4Mhz worked but, if that's all you changed between compiles, then try that.

    This is for a 16F88 and is on page 40 of the datasheet.

  6. #6
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    ya that works, that bit at position 1. Ithink that did it. thanks

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


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Bits 0 through 3 of OSCCON are read only?
    Last edited by mackrackit; - 16th May 2013 at 15:58.
    Dave
    Always wear safety glasses while programming.

  8. #8
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Actually it compiles , but after careful testing, the frequency is all over the place when using only OSCCON = %01001110..

  9. #9
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Quote Originally Posted by mackrackit View Post
    Bits 0 through 3 of OSCCON are read only?
    I'm curious what do you mean? Bits 0 to 3 set status bit, oscillator stability and mode select. Can't these be set at beginning of code?

Similar Threads

  1. My project is starting
    By cncmachineguy in forum General
    Replies: 91
    Last Post: - 15th February 2011, 02:56
  2. Starting with PIC18F
    By Gérard in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 7th May 2006, 17:40
  3. Starting PC from PIC
    By Tissy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th February 2006, 15:42
  4. Help starting a 876A
    By Naslund in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th March 2005, 10:25
  5. Help for someone just starting
    By Ed Cannady in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th March 2003, 12:17

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