Instant Interrupts - Revisited


Closed Thread
Results 1 to 40 of 773

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    Hi. I am getting an error Symbol not previously defined (PIR2) on a 16F628 with Darrels interrupts.
    Ioannis,

    I've compiled your program here for a 16F628 with several versions of PBP, and I don't get that error.

    <strike>Have you made any changes to the DT_INTS-14 file?</strike>

    Added:
    Oh shoot, now I remember.
    That was fixed in version 0.93 (Jan '06)

    Try downloading the lastest version.
    http://www.darreltaylor.com/DT_INTS-14/downloads.htm
    <br>
    Last edited by Darrel Taylor; - 4th October 2009 at 22:45. Reason: Added
    DT

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel.

    Yes I commended the wsave3 as I compile for 16F628 chip.

    Also to get rid of the error I commended out the PIR2 references too.

    I attach the modified file to check.

    Thanks,
    Ioannis
    Last edited by Darrel Taylor; - 4th October 2009 at 23:06. Reason: deleted file to minimize confusion

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Sorry, I added to my previous post.
    Didn't get it in there soon enough.

    It should help.
    <br>
    DT

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    Thanks Darrel. Besides the wsave3 thing I had to commend out, yes it helped.

    Now is fine.

    About the disable interrupt, will the timer be enabled upon @ INT_RETURN ?

    Ioannis

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    Also if I want to disable TMR0 interrupts inside the timer0 INT Handler, will the Interrupts be enabled on exiting the routine? Like this:

    Code:
    INT_Service_TMR0:
    @ INT_DISABLE TMR0_INT
        tmr0=21                 'Preload for 60msec time out
        timer0=1                'timer 0 has timed out flag
    @ INT_RETURN    <<<<<<<<----------------Here I do not want to enable timer0
    No it will not be re-enabled automatically.

    And you won't get any more interrupts from the timer untill there's an @ INT_ENABLE TMR0_INT somewhere else in the program.

    The Timer will continue to run and overflow, so the next time you Enable the timer ints ... make sure you clear the flag first or it will immediately jump into an unwanted INT.
    @ INT_CLEAR TMR0_INT
    <br>
    DT

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    OK. Better is to use Tmr1 but not available at the moment.

    Thank you very much.
    Ioannis

  7. #7


    Did you find this post helpful? Yes | No

    Smile

    I still had some strange anomalies going on...
    reading GPIO.2 to a testvariable (Testbit VAR BIT BANK0)
    just before the @ INT_RETURN seems to solve those...

  8. #8
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default New Enhanced Core Pics 16f193x ?

    Hey Darrel,
    Have you had a chance to try any of the new enhanced core pics yet ?

    I have a few 16f1936 chips on order and would love to know if you have had a chance to play with DT_INT on them yet.

    bill

  9. #9
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bcd View Post
    I have a few 16f1936 chips on order and would love to know if you have had a chance to play with DT_INT on them yet.
    Did you order them in the QFN package?
    Apparently the SOIC's won't be available from Microchip till November

    I think the only thing you can get in a DIP package so far is the 1934, but they're usually out of stock on those.

    I have some on order too, have no idea when I'll get them.

    Consequently, DT_INTS will not work with the "E" (F1) chips.
    <br>
    DT

  10. #10
    Join Date
    Feb 2003
    Location
    Sydney, Australia
    Posts
    126


    Did you find this post helpful? Yes | No

    Default

    Got 16f1936 and 16f1937 in DIP and some 16f1936 in SOIC due to arrive with UPS today.
    Ordered them last week from microchip direct.

    Want me to send you a couple ?

    Bill.

  11. #11


    Did you find this post helpful? Yes | No

    Thumbs up

    Thanks! ...Hadn't noticed because the main routine wasn't doing anything, and the other Led still seamed to toggle at 1 Hz...

Similar Threads

  1. Clock using Instant Interrupts
    By PICpocket in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th February 2009, 21:43
  2. DT instant interrupts with mister_e keypad
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th November 2008, 20:02
  3. DT's Instant Interrupts trouble
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th November 2008, 20:48
  4. Keypad and DT's Instant Interrupts
    By Homerclese in forum General
    Replies: 11
    Last Post: - 27th April 2007, 06:32
  5. Replies: 1
    Last Post: - 1st November 2006, 03:11

Members who have read this thread : 6

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts