Speed Up ICD


Closed Thread
Results 1 to 5 of 5

Thread: Speed Up ICD

  1. #1

    Default Speed Up ICD

    Is there anyway to speed up ICD? I have a bug but its near the end of my program loop and it seems to take forever to get to where the problem is.

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


    Did you find this post helpful? Yes | No

    Default

    You can put a DISABLE DEBUG at the top of the program, and then an ENABLE DEBUG just before the area you want to look at.

    Then everything should run at normal speed until it gets to that point.
    <br>
    DT

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    Thanks for the great tip. That makes my life so much nicer.

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


    Did you find this post helpful? Yes | No

    Default

    Your welcome!

    Just wondered if you notice the reduction in code size when you did that too.

    Anything between the DISABLE DEBUG and ENABLE DEBUG doesn't get the added instructions placed inbetween EVERY line of code. For a program with 500 lines, it can add as much as 2K words to the program size.

    So, they really come in handy when trying to debug a program that's almost filled the chips program space.
    <br>
    DT

  5. #5


    Did you find this post helpful? Yes | No

    Default

    To be completely honest I never looked at the program size before and after. I will now that you mention it. This is definitely a useful piece of information. Thanks again.

Similar Threads

  1. ICD Woes
    By spad13m in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 14th February 2008, 05:56
  2. Closed loop speed controller
    By Ryan7777 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 26th January 2008, 14:15
  3. NEWB Help HPWM coding
    By Seafurymike in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st January 2008, 21:52
  4. Replies: 14
    Last Post: - 26th September 2007, 05:41
  5. Speed Up ICD in MCSP
    By CocaColaKid in forum General
    Replies: 0
    Last Post: - 2nd September 2005, 02:35

Members who have read this thread : 0

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