Code Timer - How long does it take to execute XYZ command?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343

    Default Code Timer - How long does it take to execute XYZ command?

    Since this question has come up again, I thought I'd throw this module out to the masses. It is something I worked on a while back, with DT's help. Amid life's other priorities, it got put on the self to collect dust.

    The basic idea is that by adding the module as an INCLUDE and inserting a couple of commands inside your code, you can have the PIC send timing data to your PC via the hardware serial port. It's make for 18F PICs (although some 16Fs may work too). You also need a timer that is not being used for anything else.

    1) Instructions are included, as well as a small example.
    2) It worked well for me, and as I recall, DT in testing.
    3) Use it however you want.
    4) I won't be able to offer much support, but figure there are enough knowlegeable folks around here that can help those who need it.

    Best Regards,
    SteveB

    Thanks Darrel for all your help!
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by SteveB View Post
    2) It worked well for me, and as I recall, DT in testing.
    Yes it did.
    Much better than mine ever was.

    And I gotta say, much prettier than any of mine too.
    Just love the look of it. Nice work Steve.
    <br>
    DT

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


    Did you find this post helpful? Yes | No

    Default

    Thanks SteveB.

    I bet this thread will get pointed to a lot.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    May 2006
    Location
    Del Rio, TX, USA
    Posts
    343


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    And I gotta say, much prettier than any of mine too.
    Just love the look of it. Nice work Steve.
    <br>
    I used this program for the ...

    <pre><font face=courier> _ ____ ____ ___ ___ _ _ _____ _<br> / \ / ___| / ___|_ _|_ _| / \ _ __| |_ |_ _|____ _| |_<br> / _ \ \___ \| | | | | | / _ \ | '__| __| | |/ _ \ \/ / __|<br> / ___ \ ___) | |___ | | | | / ___ \| | | |_ | | __/> <| |_<br> /_/ \_\____/ \____|___|___| /_/ \_\_| \__| |_|\___/_/\_\\__|<br></font></pre>

    Lots of fonts, but the more plain ones seem to be the most readable.
    SteveB
    Last edited by SteveB; - 10th August 2008 at 14:51. Reason: Hee, Hee, Hee.. nice trick DT!

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


    Did you find this post helpful? Yes | No

    Default

    <pre><font face=courier> _____ _<br> / ____| | |<br> | | ___ ___ | |<br> | | / _ \ / _ \| |<br> | |___| (_) | (_) | |<br> \_____\___/ \___/|_| _ _<br> |__ __| | | | | |<br> | | | |__ __ _ _ __ | | _____| |<br> | | | '_ \ / _` | '_ \| |/ / __| |<br> | | | | | | (_| | | | | <\__ \_|<br> |_| |_| |_|\__,_|_| |_|_|\_\___(_)<br></font></pre>
    DT

  6. #6
    Join Date
    Jan 2009
    Location
    Huntsville, AL
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    Thanks! I'm at work and haven't gotten a chance to try it yet, but I noticed you said it would work for "some" 16F chips. Would a 16F628a be included in that group?

    Thanks again!
    Dave

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 10:02
  2. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 18:39
  3. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  4. Interrupt/timer not really interrupting...
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd May 2005, 23:05
  5. Timer Accuracy
    By GEEZER in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 31st March 2005, 06:26

Members who have read this thread : 2

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