PBP vs Assembly interrupt speed


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2006
    Posts
    10

    Default PBP vs Assembly interrupt speed

    Hi all,

    I have a general question regarding PBP vs Assembly and how much faster an interrupt handler would run if written in Assembly. Essentially we are using a PBP interrupt now and the short amount of time it takes to run the interrupt handler is long enough to cause a visual disturbance in the LEDs that we are lighting up via a scanning loop. We are wondering what we will gain by moving to assembly. Are we talking twice as fast? 100 times faster? 1000?

    If we do end up going that way....Anybody out there available to re-write some PBP code in Assembly? Any services available for that?

    thanks!
    Brad

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: PBP vs Assembly interrupt speed

    The problem with PBP interrupts is they are not processed until there is a break in the code, as in if you have a PAUSE in your code PBP will wait until the PAUSE is finished before the interrupt is handled. ASM interrupts do not wait.

    To make it all easy Darrel gave us this
    http://www.picbasic.co.uk/forum/showthread.php?t=3251

    If that does not work you may have a problem else where.
    Dave
    Always wear safety glasses while programming.

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