Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal regs


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal regs

    Hi guys ,
    i am about to start using the interrupt priority of interrupts on a 18f67k22. for timer 0 , timer 1, timer 2,
    where timer 0 is low priority , timer 1 high , timer 2 low ,

    this chip incorporates a high/ low level priority for most of the interrupt sources and was wondering if using DT_IN_18LP.bas does the same thing as setting up the registers manually or do i need to do both ?

    Regards

    Sheldon.

  2. #2
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal re

    correction - ReEnterPBP-18LP.bas

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,519


    Did you find this post helpful? Yes | No

    Default Re: Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal re

    Hi,
    Have you looked at Darrels example for using high and low priority interrupts? It's been a while since I did it but it looks like DT-Ints handles setting the priority bits for you.

    /Henrik.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,596


    Did you find this post helpful? Yes | No

    Default Re: Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal re

    Yup, everything is done for you. Just make sure to follow Darrel's instructions.

    I had one program using high and low with 3 timers.

    Robert


    EDIT: I was using 18F4xK22 and 18F2xK22 models which must be close to yours.

  5. #5
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: Use of high / low priority interrupts - dt_int_18lp.bas ver 18f67k22 internal re

    thanks that is good to hear

    yes i have read darrel's examples , and they look straight forward to follow ,

    the 18f67k22 has 2 serial ports which upon design review will be needed as well for priority low interupts

    i think the first serial is covered looking at his examples , cant see if the 2nd is so far

Similar Threads

  1. high/low of 14 numbers
    By Christopher4187 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th December 2012, 09:43
  2. Use of HIGH and LOW for pin outputs
    By rnuke77 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th January 2011, 18:40
  3. differences using high- low or 0 1
    By volcane in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th August 2010, 09:32
  4. DT interrupts - High to Low
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th November 2008, 12:28
  5. Replies: 0
    Last Post: - 25th May 2005, 10:35

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