How to Easily Test a Microcontroller with a Logic Analyzer

4

Have you ever struggled with a project and not known why? You’ve tested the code and it still isn’t working. You’re considering throwing your board against the wall (but please don’t). You’re glaring at your resistors. What to do?! Sometimes it’s a bad digital pin. Save time, energy, and anger by by testing your microcontroller before you get to work on your project. Instructables user¬†¬†uses the Analog Discovery’s logic analyzer to do this.

A great oscilloscope/logic analyzer to use for this project...

A great oscilloscope/logic analyzer to use for this project…

After you’ve picked your logic analyzer (we recommend upgrading to the Analog Discovery 2), then pick your microcontroller board! Upload your code and connect your logic analyzer to your board. Connect each pin you’re testing to a different channel, which should provide a reasonable test of each.

analog-discovery-2

Obvious, logic analyzers have plenty more uses, and the problem might actually be in the code, but this is a great Instructable!

 

Share on FacebookTweet about this on TwitterShare on Google+Pin on PinterestShare on RedditShare on TumblrShare on LinkedInShare on StumbleUponEmail this to someone
Share.

About Author

I was the Digilent blog editor, and now I'm a contributor. I love learning about wearables and writing about social issues in STEM. Outside of work, I can be found watching Netflix with my cat, working on an art project, or trying to find new, delicious local foods.

4 Comments

    • For more information on the product, be sure to check out the product specs that are featured on its page on our main site. Thanks for commenting!

Leave A Reply