DT_Interupts with 18F2525


Results 1 to 7 of 7

Threaded View

  1. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: DT_Interupts with 18F2525

    The Pic is running at 4 MHz with internal xtal.
    Have you actually verified that? The fact that SERIN2 works indicates that you have and it is but I must ask again because as far as I can see (looking at this datasheet setting OSCCON=$60 selects 1MHz and you don't have the PLL enabled (which only works when 4 or 8MHz is selected anyway) - if I read the datasheet correct of course.

    Then you say that the ASM interrupt won't trip, but you have the type set to PBP (and you don't show the handler).

    Anyway, make sure you can recieve using HSERIN, when that works properly go back to the interrupt driven stuff.

    EDIT: By the way, setting the baudrate and other settings using DEFINEs doesn't seem to actually do anything until you include a HSEROUT/HSERIN statement in the code. Instead of doing the DEFINE method try setting the registers directly and see if that makes any difference.

    /Henrik.
    Last edited by HenrikOlsson; - 11th January 2016 at 14:14.

Similar Threads

  1. 18f2525 with LM34
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd January 2007, 04:47
  2. 18F2525 ADC Accuracy
    By mungam753 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th December 2005, 04:48
  3. 18F2525 Stack Pointer
    By milestag in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd November 2005, 13:40
  4. 18F2525 Int Osc settings?
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th March 2005, 22:44
  5. Interrupts on 18F2525
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th March 2005, 02:37

Members who have read this thread : 2

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