PIC18F2685 config settings for 20 MHz


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2008
    Posts
    3

    Default PIC18F2685 config settings for 20 MHz

    What should the configuration settings be set to for a PIC18F2685 when running a 20 MHz crystal? Right now I have the oscillator set on HS and the watch dog timer disabled. I have DEFINE OSC 20 at the beginning of my program. It seems to be running too fast and it is not seeing my serial input.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Well there's a slight difference in the fuse that may screwup things... there's _OSC_HS_1H and _OSC_HSPLL_1H .

    Now how faster it is? Led Blink, serial comm, HPWM are nice start point.

    Just post your code here.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Mar 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    I'm using MicroCode Studio to burn the chip and I use the configuration settings provided by the software. Other than that, the only line dealing with the oscillator setting in my code is the DEFINE OSC 20 (PicBasic Pro). I can't post my entire code here because it is over 15,000 lines long. I'm driving a graphical LCD with the PIC. Concerning the header info you showed in your response, what language is that written in?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by wwilson17 View Post
    I'm using MicroCode Studio to burn the chip and I use the configuration settings provided by the software. Other than that, the only line dealing with the oscillator setting in my code is the DEFINE OSC 20 (PicBasic Pro). I can't post my entire code here because it is over 15,000 lines long. I'm driving a graphical LCD with the PIC. Concerning the header info you showed in your response, what language is that written in?
    Well, if you're using PicBasicPro, and this is a PicBasicPro oriented site, then it would follow that the line given above is a PicBasicPro compatible line....in one way or another...
    See the following link...
    http://www.picbasic.co.uk/forum/show...setting+config
    Bookmark it, Hotlink it, read it, then read it again, then read it again after that.
    Lots of good info on how things integrate with PBP, assembly, etc.

  5. #5
    Join Date
    Mar 2008
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    I've read the thread you suggested. Can't I just establish the proper settings in the configuration listing instead of writting a line of code?

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by wwilson17 View Post
    I've read the thread you suggested. Can't I just establish the proper settings in the configuration listing instead of writting a line of code?
    You can modify the *.inc file for the chip ( make a back up for safety)
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

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