Is there a wise way to debug a large code?


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Is there a wise way to debug a large code?

    I would try first the software filtering as I described to you.

    Last resort to capacitors. If something changes, then you would remove old caps and put new, larger or smaller???

    Ioannis

  2. #2
    Join Date
    Feb 2013
    Posts
    1,160


    Did you find this post helpful? Yes | No

    Default Re: Is there a wise way to debug a large code?

    Yeah maybe
    My software skills are quite limited as you can see from my posts
    And by the way, there was another issue which I've fixed now, and quite likely it was also causing the problems
    Due to coding error, I had that brightness adjusting PWM routine called 500 times per second (it was placed in middle dot blink loop)
    and when you use HPWM statement, instead of changing the current PWM register, Picbasic stops the pwm generator and restarts it with new values (you can check this with oscilloscope) which causes additional noise generation. Now I moved it into segment refresh routine, which happens once per minute (and keyboard input is deactivated during it), so most likely, it should work without capacitor now, but too lazy to take it apart and unsolder

    Name:  clcock.jpg
Views: 1081
Size:  378.4 KB

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default Re: Is there a wise way to debug a large code?

    Glad you found the logic error on your code. You did just fine!

    Ioannis

Similar Threads

  1. DEBUG DEC DatVar vs DEBUG #DatVar
    By netstranger.nz in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th March 2011, 22:26
  2. Replies: 0
    Last Post: - 18th November 2010, 19:50
  3. How does everyone debug their code?
    By HankMcSpank in forum General
    Replies: 30
    Last Post: - 18th June 2009, 07:41
  4. SERIN from a large string
    By earltyso in forum Serial
    Replies: 5
    Last Post: - 2nd May 2008, 23:23
  5. large displays
    By George in forum Off Topic
    Replies: 2
    Last Post: - 18th March 2007, 22:56

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