Help with 18F2520


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    BertMan's Avatar
    BertMan Guest


    Did you find this post helpful? Yes | No

    Default

    Just for grins I adjusted the baud rate in hyperterminal to see if I could get any different results, and found something very interesting. At 300 baud it works! I set the baud rate to 2400 as it is defined in pbp, and nothing.

  2. #2
    BertMan's Avatar
    BertMan Guest


    Did you find this post helpful? Yes | No

    Smile

    Thanks Darrel, it was a typo.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    One more thing, use uppercase for your DEFINE statements.

  4. #4
    BertMan's Avatar
    BertMan Guest


    Did you find this post helpful? Yes | No

    Default

    Figured it out! The 4x clock multiplier is enabled by default. This means I was running at 32mhz instead of 8mhz. Had to set both of these to get the oscillator to perform the way I needed it to:

    OSCTUNE = %00000000
    OSCCON = %11110000

    This would explain running at 300baud when I selected 2400.

Similar Threads

  1. 18F2520 clock speed ?
    By Gixxer in forum mel PIC BASIC Pro
    Replies: 24
    Last Post: - 21st August 2008, 19:01
  2. who knows how to let LCD03 work with 18F2520?
    By Janine in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd May 2008, 14:24
  3. 18f2520 - Option_reg
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th April 2008, 17:06
  4. A/D conversion problem in 18F2520, 2523, 2550 etc.
    By selimkara in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th March 2008, 16:26
  5. Writecode With 18f2520
    By TomM in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th March 2006, 18:48

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