18F1320 with external osc


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Location
    Selm, Germany
    Posts
    116

    Question 18F1320 with external osc

    Hi Guys,

    thats my first try with an 18F

    ASM
    CONFIG OSCS=OFF ; Oscillator switch OFF
    CONFIG OSC=ECIO EC-OSC2 ; Use extern oscillator (20MHZ here)
    CONFIG PWRT=ON ; Power-up timer ON
    CONFIG WDT=ON ; Watch dog timer ON
    CONFIG STVR=ON ; Stack over/underflow ON
    CONFIG DEBUG=OFF ; Background debugger OFF
    ENDASM
    define osc 20



    TRISB = 0

    loop:
    Pause 500 ' Wait .5 second
    PORTB.7 = 1
    Pause 500 ' Wait .5 second
    PORTB.7 = 0
    Goto loop

    END

    but this gives me just compilation errors.

    I just want to use an external osc.....i looked at most threads that were made before concerning this defines....just too new to me

    may anyone help?

  2. #2
    Join Date
    Sep 2007
    Posts
    50


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Mugelpower View Post
    Hi Guys,

    thats my first try with an 18F

    ASM
    CONFIG OSCS=OFF ; Oscillator switch OFF
    CONFIG OSC=ECIO EC-OSC2 ; Use extern oscillator (20MHZ here)
    CONFIG PWRT=ON ; Power-up timer ON
    CONFIG WDT=ON ; Watch dog timer ON
    CONFIG STVR=ON ; Stack over/underflow ON
    CONFIG DEBUG=OFF ; Background debugger OFF
    ENDASM
    define osc 20
    This method will not work with PBP see
    http://www.picbasic.co.uk/forum/show...ighlight=fuses

    Post 20
    Best Regards,

    Kurt A. Kroh
    KrohTech

    “Goodbye and thanks for all the fish”

Similar Threads

  1. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 14:58
  2. Replies: 1
    Last Post: - 28th January 2010, 22:15
  3. External osc defines
    By Mugelpower in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 17th February 2008, 14:56
  4. How to use an external oscillator
    By Mugelpower in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th February 2008, 14:19
  5. External clock
    By Firegod in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2007, 00:53

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