18F2580 with strange behaviour when using Hserin and RX interrupt


+ Reply to Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,721


    Did you find this post helpful? Yes | No

    Default Re: 18F2580 with strange behaviour when using Hserin and RX interrupt

    if I change to Define Osc 32 the code will run slower (tested before with pause 1000 and led blink). Weird things happen with this 18F2580 MCU
    pll only works with primary clock sources , if you set the int-osc as primary clock then it works as expected

    Code:
    DEFINE OSC 32
    
    
        OSCCON =% 01110000 '8MHz INTOSC 
        OSCTUNE=% 01000000 '
    Warning I'm not a teacher

  2. #2
    Join Date
    Jul 2024
    Posts
    35


    Did you find this post helpful? Yes | No

    Default Re: 18F2580 with strange behaviour when using Hserin and RX interrupt

    Hi Richard,

    you are correct (as always)!
    I thought we had to choose internal insteal of primary since it's set to an internal osc.

Similar Threads

  1. Strange WRITECODE behaviour
    By mikebar in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th December 2015, 01:43
  2. Strange IT behaviour
    By MikeBZH in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th February 2012, 09:00
  3. Strange behaviour
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th October 2009, 22:35
  4. Strange Serout Behaviour
    By bluesmoke in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th August 2009, 04:12
  5. strange int behaviour
    By tom in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th November 2005, 15:41

Members who have read this thread : 10

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