18f26k22


+ Reply to Thread
Results 1 to 3 of 3

Thread: 18f26k222206 days old

  1. #1
    Junior Member Gerard's Avatar
    Join Date
    Aug 2013
    Posts
    28
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    90.20 MB

    0 Not allowed!

    Default 18f26k22

    Hi,
    I work with a 18F26K22 with internal clock at 16MHz, I try the PLL but it don't work properly.
    The fuses are OK :
    FOSC = INTIO7 ;valeur pour tester oscillateur interne, après FOSC = INTIO67
    ;clockout on A6, port fonction on A7
    PLLCFG = On
    In OSCTUNE , PLLEN = 1

    Thank's for help.

Attention
×

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Member flosigud's Avatar
    Join Date
    Oct 2013
    Posts
    134
    Thumbs Up
    Received: 8
    Given: 12
    Total Downloaded
    2.96 GB

    0 Not allowed!

    Default Re: 18f26k22

    On 18f25k22 I do like this:


    Symbol PLLEN = OSCTUNE.6 ' PLL enable
    Symbol HFIOFS = OSCCON.2 ' HFINTOSC frequency stable

    OSCCON=%=1110000 ' Osc = 16MHz
    PLLEN=1 ' Enable PLL 4x 16MHz = 64Mhz
    While HFIOFS=0:Wend ' Wait till osc is stable

    The forum may strip leading percent sign and a zero from the osccon line.

    Regards,

    Flosi

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Junior Member Gerard's Avatar
    Join Date
    Aug 2013
    Posts
    28
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    90.20 MB

    0 Not allowed!

    Default Re: 18f26k22

    Hi,

    I try again this morning with a quartz and the PLL works good.
    Then I try with internal oscillator, FOSC = INTIO7 and PLLEN = 1 and I see that ma PLL is OK.

    Thank you.

    Sorry for my english, I am french.

  • Attention
    ×

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. 18F26K22 can't use PORTC.0 or 1
      By charliecoultas in forum Tips 'n Tricks
      Replies: 6
      Last Post: 4th August 2019, 14:37
    2. Bootloader for the 18F26K22
      By yvesmazzon in forum Projects discussion
      Replies: 6
      Last Post: 2nd July 2018, 07:34
    3. 18F26K22 vs 18F46K22
      By towlerg in forum Proton Plus Compiler v3
      Replies: 3
      Last Post: 19th June 2015, 19:21
    4. Analog help on 18F26K22
      By joesaliba in forum Proton Plus Compiler v3
      Replies: 1
      Last Post: 21st February 2015, 20:57
    5. 18F26K22 and PWM
      By joesaliba in forum Proton Plus Compiler v3
      Replies: 29
      Last Post: 28th November 2013, 14:53

    Members who have read this thread since 5th November 2019, 06:55 : 0

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts