P1c18f26k20-internal clock set up fail -64mhz


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    HI ALL,

    the pic run well @ 4mhz ,HSPLL; 8, 10mhz ... problem (HSPLL).

    the conf. remains unchanged

    __CONFIG _CONFIG1H, _FOSC_HSPLL_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H
    __CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H
    __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L

    where is the problem?
    thanks all for your help
    regards

  2. #2
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    Quote Originally Posted by MINHLE View Post
    the conf. remains unchanged

    __CONFIG _CONFIG1H, _FOSC_HSPLL_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H
    __CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H
    __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L

    where is the problem?
    thanks all for your help
    regards
    The conf. has changed from #4
    here is the conf.
    __CONFIG _CONFIG1H, _FOSC_INTIO7_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
    __CONFIG _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H' __CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H
    __CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
    also you said

    yes the above is work.
    ..
    osccon = $70 or (60)
    osctune = $40

    for single leds
    i move to drive 595 then there r problem- lost power or low speed @ out put
    If it works for single leds then it works and all of your code needs checking. So please post your code so we can help.

  3. #3
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    HI,
    thanks for your help.
    i suspect st wrong,
    i test the whole port b. it runs well (8 leds) - FOSC_INTIO67 (16x4mhz)
    However, when attaching portb to the 74hc595 - then 1 of the port pin lost power.
    just last week, the system run well @40mhz. (external osc).
    now problem is data to send out is not right
    i will spend 1 more time to check, and will send the program to you

    regards

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    when attaching portb to the 74hc595 - then 1 of the port pin lost power.
    I'm not really sure what this means , its rather ambiguous
    perhaps a schematic diagram (or a photo) of your setup would be in order

  5. #5
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    HI,,
    thANKS A LOT RICHARD,

    I MOVE TO USE 18F4620, THE PREVIOUS CONF. IS FINE (internal osc*4 = 32 mhz)
    the program runs well @40mhz (external osc) then there are problems
    i.e. data output randomly- (due to dirty breadboard)
    line appears on the screen (same cause above).
    i will going back to see the 18f26k20.next week.

    thanks again
    regards

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


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    As requested by others, post your complete code and a schematic of your circuit.

    Have you disabled analog features on any pins you use as digital?

    Robert

  7. #7
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default Re: P1c18f26k20-internal clock set up fail -64mhz

    HI ALL
    THANKS for all
    the program actually runs well, but the pause time is not correct and the current supply is not adequate ( due to dirty breadboar...)

    at high frequency, some of the port pins is measured = 0, (when the port drives other ic) look like there is no power at all.
    the set up is right:

    _FOSC_INTIO67_1H
    OSCTUNE = $40
    OSCCON = $70

    the PBADEN = OFF, so the portb is digital I/O
    thanks a gain for all

    regards

Similar Threads

  1. 18F26K22 - Unable to get 64MHz Internal clock speed
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th July 2014, 16:53
  2. How to set the internal CPU speed?
    By Ramius in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 26th April 2011, 20:04
  3. UberNewbie can't set his clock...
    By Byte_Butcher in forum General
    Replies: 19
    Last Post: - 7th January 2009, 04:22
  4. external clock / internal clock
    By grounded in forum General
    Replies: 4
    Last Post: - 31st May 2008, 17:44
  5. How to set internal oscillator on 16F88
    By newgeppetto in forum Off Topic
    Replies: 0
    Last Post: - 3rd December 2005, 09:28

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