UController Code Profiler Debugs Your Microcontroller

When working on digital circuits that operate at high frequencies it helps to have some special tools on hand. Things like oscilloscopes and logic analyzers are priceless when something isn’t working right. Another great tool would be this hardware-based profiler that [Mike] came up with while he was working on another project.

The profiler connects to USB and shows up as a serial port. Normally [Mike] used a set of LEDs to get information about how his microcontrollers work, but for this project that wasn’t enough. The uController Code Profiler can provide the main loop running time, time functions and sections of code, keep track of variables, and a few other tasks as well, all with nanosecond resolution.

The source code isn’t provided but a hex file is available, along with a schematic and an include file, if you want to try this one out on your next project. Like this homemade logic analyzer, this could be a powerful tool in your microcontroller arsenal. Simply include the file with various pieces of your code to get it up and running!

7 thoughts on “UController Code Profiler Debugs Your Microcontroller

  1. I was thinking about doing an extended version of this project to give more than just 80×25 screen size info, was thinking about showing input pin timers, for more accurate/critical timing of functions, more variable displays, etc.. Let me know if anyone finds this useful?

    1. Mike,
      thank you for your work !
      Is the uProfiler time dependent ? I would like to try it on a 18F2550 I have in my spare parts but only have 8 & 16MHz crystals to work with.

  2. It looks very interesting but, after browsing on [mike]’s website, I fail to see how I can test it in my project.
    Also, if it communicates with computer via B7 pin, what is the use for the USB link?

  3. I always wished we had an arduino simulator like you have for the Picaxe processors.

    It would be awesome to do tests in the computer without writing to the hardware.

Leave a Reply to Mike Bradley Cancel reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.