Today 10:43
Forum: Analog-to-Digital Converter Module
Starter: hadv215
Views: 23
Replies: 1
Today 10:41
Forum: Proton Users File Server
Starter: Les
Views: 0
Replies: 0
Yesterday 17:43
Forum: WIKI Discussion
Starter: starwars
Views: 86
Replies: 2
Yesterday 14:22
Forum: Third Party Developments
Starter: johngb
Views: 1096
Replies: 46
Yesterday 12:18
Forum: Absolute Beginners Section
Starter: Mr Anderson
Views: 86
Replies: 3
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: I need help setting up the 18F13K2250 days old

  1. #11
    Junior Member Mentcleer's Avatar
    Join Date
    Aug 2014
    Posts
    98
    Thumbs Up
    Received: 2
    Given: 0
    Total Downloaded
    1,017.34 MB

    0 Not allowed!

    Default Re: I need help setting up the 18F13K22

    Hi,

    I am working at 64Mhz with this set.

    Code:
    Device 18F13K22
    Declare Xtal = 64
    
    
    Config_Start
    FOSC = IRC ' Internal RC oscillator 
    PLLEN = On 'On ' Oscillator multiplied by 4 
    PCLKEN = On ' Primary clock enabled 
    FCMEN = On ' Fail-Safe Clock Monitor enabled 
    IESO = OFF ' Oscillator Switchover mode disabled
    PWRTEN = On ' PWRT enabled 
    BOREN = OFF ' Brown-out Reset disabled in hardware and software 
    WDTEN = OFF ' WDT is controlled by SWDTEN bit of the WDTCON register 
    HFOFST = On ' HFINTOSC starts clocking the CPU without waiting for the oscillator to stablize. 
    MCLRE = OFF ' RA3 input pin enabled; MCLR disabled 
    XISNST = OFF' Instruction set extension and indexed addressing mode enabled
    LVP = OFF ' Single-Supply ICSP disabled 
    Config_End 
    
    
    'Set internal osc to 16 MHz, PLL enabled
    OSCCON.6 = 1
    OSCCON.5 = 1
    OSCCON.4 = 1
    OSCTUNE.6 = %1
    Last edited by Mentcleer; 30th November 2016 at 10:25. Reason: CONFIG XINST = OFF

  2. #12
    Junior Member Ledroj's Avatar
    Join Date
    Apr 2008
    Posts
    12
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    80.33 MB

    0 Not allowed!

    Default Re: I need help setting up the 18F13K22

    Hola, amigo Mentcleer.
    Aprecio sus instrucciones para mi propósito, ahora estoy un poco complicado en un proyecto, y sólo tengo los fines de semana para probar la configuración.
    Tan pronto como lo intento, voy a comentar los resultados para todo el amigos que me han ayudado.
    Muchas gracias.

  3. #13
    Junior Member Ledroj's Avatar
    Join Date
    Apr 2008
    Posts
    12
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    80.33 MB

    0 Not allowed!

    Default Re: I need help setting up the 18F13K22

    Amigo Mentcleer.
    Ya he conseguido que funcione a 64Mhz
    Tu configuracion era buena, y ha funcionado.
    Muchas gracias por tu ayuda y por la de todos.

  4. #14
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,510
    Thumbs Up
    Received: 50
    Given: 13
    Total Downloaded
    654.71 MB

    0 Not allowed!

    Default Re: I need help setting up the 18F13K22

    Ledroy,

    Can you please answer all your posts in English? This is also a rule of the forum. Thank you.
    Regards

    Joseph

  5. #15
    Junior Member Ledroj's Avatar
    Join Date
    Apr 2008
    Posts
    12
    Thumbs Up
    Received: 0
    Given: 0
    Total Downloaded
    80.33 MB

    0 Not allowed!

    Default Re: I need help setting up the 18F13K22

    Ok. My English is not very good for writing, I just wanted to thank you for the help.

    Friend Mentcleer.
    I already got it to work at 64Mhz
    Your setup was good, and it worked.
    Thank you very much for your help and for everyone's help.

  6. #16
    Prolific Poster joesaliba's Avatar
    Join Date
    Sep 2004
    Posts
    2,510
    Thumbs Up
    Received: 50
    Given: 13
    Total Downloaded
    654.71 MB

    0 Not allowed!

    Default Re: I need help setting up the 18F13K22

    Ledroy,

    Thanks for your understanding. But it is confusing for someone reading the posts and cannot understand nothing.
    Regards

    Joseph

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Setting up A/D 18F45K80
    By chuckieboy in forum The Lounge
    Replies: 24
    Last Post: 1st September 2012, 00:56
  2. 18F13K22 and PIKIT2 round 2 - new info
    By barak in forum Proton Plus Compiler v3
    Replies: 38
    Last Post: 2nd August 2010, 22:43
  3. Xtal setting
    By nigelb in forum Proton Plus Compiler v3
    Replies: 20
    Last Post: 19th January 2010, 16:54

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