Channels ▼

Al Williams

Dr. Dobb's Bloggers

The First TV

August 12, 2014

When I was in school (well, at least one of the times I was in school), I used to fix TVs to earn money. Sometimes fixing a TV can be a challenge, but there was always one very definite advantage: You knew that at one time the TV did work.

This is a stark contrast to bringing up a freshly designed embedded system. If you start out with a proven board, that can help. But if you have a fresh PC board with a new design, anything could be wrong. The board layout could be in error. The circuit design could have a flaw (although, presumably you prototyped it). You may have assembled the board wrong (a backward component). You may have a damaged component on the board. Or, of course, you may have a bug in your software (as hard as that is to imagine).

I remember one board that refused to do anything despite a perfectly good prototype. Some probing showed that a single net on the board had not been routed (this was well before you did all this on a computer). That net connected the system's clock generator to the rest of the board, so probing at the clock generator looked good, but the system wasn't getting any clock signal.

Exactly how to best proceed depends on how much test equipment you have. If I can, I usually don't populate any active components until I can check out the board's power system. It is worthwhile to make sure the right voltages are everywhere you expect them to be. Depending on the board, you might be able to check the clock and reset circuitry.

Sometimes you can't isolate the active components. You ought to have an idea of how much current the board should draw and make sure you are not drawing more than you expect. I'd still check the voltages before trying anything else.

Once you have power, you can try loading some software. My advice is to keep it simple, especially the first time. The classic test is to blink a digital output and watch it with an LED or an oscilloscope. Once that works, you can move to more complex tests.

I do think it's important, though, to try specific tests on a startup. There's always a temptation to just try to start with code you may "know" works through simulation or execution on an evaluation board. You really want to test out the subsystems carefully. I try to write tests that "grow" as I get more confidence. For example:

  1. Toggle digital outputs.
  2. Invert digital inputs and send to digital outputs.
  3. Send digital inputs to host computer and an inverted copy to the digital outputs.
  4. Test other I/O (analog, PWM, motor controls)
  5. Test mass storage

Of course, the specific tests will depend on your exact design. The point is to test little pieces and then use those pieces to help test most pieces.

You don't need much to implement this methodology. A voltmeter, a power supply, and an LED is probably enough. An oscilloscope is helpful too, but not absolutely necessary.

Have a favorite tip for handling a first-time start up of a new design? Or a good horror story? Leave a comment and share.

Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
 


Video