Slow starting up


Closed Thread
Results 1 to 35 of 35

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    As you can see, the 4MHZ is uncommented. If you convert the number to binary, it doesn't match the osccon bits in the datasheet when you select 4MHZ. Same with the reverse, select the 4MHZ bits in the datasheet, convert to decimal and it doesn't match the table. Yet, the numbers in the table do work.

    'osccon values for 16f818/819:
    'OSCCON = $00 'for 31.25 khz
    'OSCCON = $10 '125khz
    'OSCCON = $20 '250khz
    'OSCCON = $30 '500khz
    'OSCCON = $40 '1mhz
    'OSCCON = $50 '2mhz
    OSCCON = $60 '4mhz 'set int osc to 4mhz
    'OSCCON = $70 '8mhz

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    These hex values match the 16F818 as expected.

    from your code..........................
    'osccon values for 16f818/819:
    'OSCCON = $00 'for 31.25 khz
    'OSCCON = $10 '125khz
    'OSCCON = $20 '250khz
    'OSCCON = $30 '500khz
    'OSCCON = $40 '1mhz
    'OSCCON = $50 '2mhz
    OSCCON = $60 '4mhz 'set int osc to 4mhz
    'OSCCON = $70 '8mhz

    from the data sheet.....................
    bit 6-4 IRCF2:IRCF0: Internal Oscillator Frequency Select bits
    111 = 8 MHz (8 MHz source drives clock directly)
    110 = 4 MHz
    101 = 2 MHz
    100 = 1 MHz
    011 = 500 kHz
    010 = 250 kHz
    001 = 125 kHz
    000 = 31.25 kHz (INTRC source drives clock directly)

    I don't understand the issue?
    Dave Purola,
    N8NTA
    EN82fn

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    Never mind
    Last edited by Demon; - 17th May 2013 at 14:00.

  4. #4
    Join Date
    Sep 2006
    Posts
    747


    Did you find this post helpful? Yes | No

    Default Re: Slow starting up

    so I guess
    the clocking below 4Mhz cannot be used with HPWM ?

    Cause I need to get down to 50Hz, my choices is left with pulsout command.
    I'll see if I CAN use it on the same pin.
    K

Similar Threads

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