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

    OK, how bout this for detection ...
    Code:
    ASM
      ifdef PM_USED
           "Dude, you have to use MPASM with DT_INTS"
      endif
    ENDASM
    If you put that in your program, and try to assemble it with PM.exe, It will automatically pop-up a window in MicroCode Studio like this ...

    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2450&stc=1&d=120694493 9" />

    Then you can just click on "Compile Using MPASM", and it will set the MPASM option and compile it.

    If it still fails to compile, you should try this ...
    http://www.picbasic.co.uk/forum/show...5&postcount=11

    I should add that to DT_INTS-14.

    hth,
    <br>
    Attached Images Attached Images  
    DT

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Hi DT,

    I wanted to post a "thank you" (also as an informative post).

    For the first time ever, I used your 18F routine (with RX_INT) about a minute ago.

    I saved 3100 bytes!!!

    Really very interesting for me.

    Thanks a lot for your amazing work.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

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


    Did you find this post helpful? Yes | No

    Default

    Hi sayzer,

    2 years and 3 months since you joined.
    What took you so long?

    WOW! Saved 3100 bytes. That's pretty impressive.

    Can I ask what the difference was? or maybe where the savings came from?
    <br>
    DT

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Hi sayzer,

    2 years and 3 months since you joined.
    What took you so long?

    WOW! Saved 3100 bytes. That's pretty impressive.

    Can I ask what the difference was? or maybe where the savings came from?
    <br>
    The interesting part is that I did not change anything other the "int" part.

    That is why it was surprising and "Really very interesting for me".
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    You mean that comparing to On-Interrupt of PBP you did a reduction of 3100?

    Ioannis

  6. #6
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    You mean that comparing to On-Interrupt of PBP you did a reduction of 3100?

    Ioannis
    Hi Ioannis,

    Actually I tried different codes after this experiment and came up with these simple results.

    1. In a relatively large code, DT's 18F int routine saves a lot of code space compared to On-Interrupt of PBP as you said.
    Ex: I saved 3100 bytes for the same code (code size : approx. 18,000 bytes).

    2. In a small code, DT's 18F routine becomes code hungry.
    Ex: PBP On-Interrupt produces 318 bytes for a sample code I just tried, but
    DT's 18F int routine produces 762 bytes. More then twice larger!


    As the code gets longer, DT's int routine gets handier I suppose.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  7. #7
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Since On Interrupts of PBP puts a check every assembly instructions is obvious why is that code explosion!

    Sure Darrels routines are fixed in length, so either your code is short or long, these routines are known in length. And in my humbble opinion, comparing Darrels interrupts with PBP interrupts is like comparing apples and oranges. Two different things.

    Ioannis

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 : 8

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