DT Ints not working on 16F18426


+ Reply to Thread
Results 1 to 30 of 30

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    419


    Did you find this post helpful? Yes | No

    Default Re: DT Ints not working on 16F18426

    The 18 series requires modifications in 2 places. Why is that? Because of the priorities?
    The first one creates a '#define' used by the INT_LIST, INT_ENABLE and other macros that specifies the PIR reg and bit
    Code:
      #define INT1_INT  INTCON3,INT1IF  ;-- INT1 External
    The second one adds all the details (PIR intr reg/bit, PIE enable reg/bit, and IPR priority reg/bit)
    Code:
      ifdef INT1IF
          INT_Source  INTCON3,INT1IF, INTCON3,INT1IE, INTCON3,INT1IP
      endif
    If you're lucky, that's all that's required. However, some of the newer devices like the 18FxxK42 and 18FxxQ43 required some serious modifications to the asm code to make DT_INTS compatible with the register layout and new instructions like MOVFFL, so the 'customization guide' isn't much help with them.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,847


    Did you find this post helpful? Yes | No

    Default Re: DT Ints not working on 16F18426

    Well, these are the chips I want to have DT_INTS work with...! Among a few others.

    Ioannis
    Last edited by Ioannis; - 20th September 2023 at 13:14.

  3. #3
    Join Date
    Aug 2011
    Posts
    419


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: DT Ints not working on 16F18426

    Here's a version of DT-INTS that works with all the 18xv core devices (K42, K83, and Q43)
    It could be used to add the Q83/Q84 and Q40/Q41, but those can't be used by PBP since they're not supported by the stock version of MPASMX
    (there are pbp device files for the Q84 but they don't work).

    If you want support for them (and a few others) you'll have to switch to using Swordfish, which has all the new 18F's.

    The zip file contains DT_INTS-18xv.bas and two versions of ReEnterPBP (ReEnterPBP-18xv.bas, ReEnterPBP-18xvLP.bas) to go along with it.
    Read the comments at the beginning of DT_INTS-18xv for details, especially the part about setting 'CONFIG MVECEN = OFF'
    Attached Files Attached Files
    Last edited by tumbleweed; - 20th September 2023 at 14:18.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,847


    Did you find this post helpful? Yes | No

    Default Re: DT Ints not working on 16F18426

    Many many thanks for these files!

    The Q83/Q84 and Q40/Q41 devices are very nice ones, but yeah, will not be supported, too pity.

    Ioannis

Similar Threads

  1. WRITE and DT-INTS
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 21st February 2016, 19:26
  2. DT-INTS and SSP1_INT
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th April 2015, 01:34
  3. DT-ints-18, How to ...
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 7th January 2014, 20:41
  4. DT INTs which int to use??
    By Heckler in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th March 2012, 00:23
  5. DT-ints-18 - new version
    By dip1 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 10th October 2007, 20:09

Members who have read this thread : 20

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