CONFIG issues with 18F26K22


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: CONFIG issues with 18F26K22

    Tumbleweed - You're right - I should have looked it up instead of going by memory.

  2. #2
    Join Date
    May 2009
    Location
    Saint-Quentin-en-Yvelines, FRANCE
    Posts
    82


    Did you find this post helpful? Yes | No

    Default Re: CONFIG issues with 18F26K22

    Thank you Dave,

    I need some frequency accuracy. This is why I don't use the internal oscillator but an external xtal and in that case the CONFIG is a little bit different.

    But this issue is fixed now.

    I am now faced with reading the port A digital inputs. Quite simple question but for an unknown reason it behaves differently than with the 18F2685.

    73
    MikeBZH (F8DFN)

  3. #3
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: CONFIG issues with 18F26K22

    I am now faced with reading the port A digital inputs
    Both devices have analog functions on portA but the function is selected differently.
    On the 2685 you use the ADCON1 register, while with the 26K22 it's set with the ANSELA register.

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


    Did you find this post helpful? Yes | No

    Default Re: CONFIG issues with 18F26K22

    Mike, here is the setup for one of my projects:

    ANSELA = %00101111 'PORTS A5,A3,A2,A1,A0 ALALOG, A7,A6,A4 DIGITAL
    ANSELB = %00100000 'PORTS B7,B6,B4,B3,B2,B1,B0 DIGITAL BUFFERED, B5 ANALOG
    ANSELC = %00000000 'PORTS C7,C6,C5,C4,C3,C2,C1,C0 DIGITAL BUFFERED

    Hope this helps...
    Dave Purola,
    N8NTA
    EN82fn

  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

    Default Re: CONFIG issues with 18F26K22

    im also having issues to understand the configuration fuses of the PIC18F26K22. I believe that microchip would like to give you more access for each peripheral, but for us it makes it more complicated. It should be straight forward. In the manual it is not cleared what are the right configuration bits needs to be set. Especially the ones covers the OSCCON, OSCCON2 and OSCTUNE.

    For internal use of OSC and 4xPLL it is a bit more clear. But i'm really confused for the external OSC. This is what i have set up to now in this thread. Thanks to Ioannis and to Richard helping me out.

    http://www.picbasic.co.uk/forum/show...982#post143982

    It would be nice if we could have a clear configuration of the internal and external use of osc with 4x PLL.

    thanks a lot.

Similar Threads

  1. DT_INTS and 18F26k22
    By Mike2545 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 9th September 2017, 16:08
  2. 12F1840 config issues
    By enigma in forum PBP3
    Replies: 13
    Last Post: - 15th February 2015, 07:49
  3. 18F26K22 slow startup
    By Tobias in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th January 2014, 22:10
  4. Compiling for 18F26K22 - Does anyone have a solution for me?
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th August 2012, 12:49
  5. 12c508a Device Config. And Burning Issues
    By sayzer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th March 2006, 16:50

Members who have read this thread : 1

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