| ||||||||||
You may redistribute this newsletter for non-commercial purposes. For commercial use contact jack@ganssle.com. To subscribe or unsubscribe go here or drop Jack an email. |
||||||||||
Contents | ||||||||||
|
||||||||||
Editor's Notes | ||||||||||
After over 40 years in this field I've learned that "shortcuts make for long delays" (an aphorism attributed to J.R.R Tolkien). The data is stark: doing software right means fewer bugs and earlier deliveries. Adopt best practices and your code will be better and cheaper. This is the entire thesis of the quality movement, which revolutionized manufacturing but has somehow largely missed software engineering. Studies have even shown that safety-critical code need be no more expensive than the usual stuff if the right processes are followed. This is what my one-day Better Firmware Faster seminar is all about: giving your team the tools they need to operate at a measurably world-class level, producing code with far fewer bugs in less time. It's fast-paced, fun, and uniquely covers the issues faced by embedded developers. Public Seminars: I'll be presenting a public version of my Better Firmware Faster seminar outside of Boston on October 22, and Seattle October 29. There's more info here. Or email me personally. On-site Seminars: Have a dozen or more engineers? Bring this seminar to your facility. More info here. The last issue sparked a lot of reader ideas. Keep 'em coming! Latest blog: On Evil.
|
||||||||||
Quotes and Thoughts | ||||||||||
"While technology can change quickly, getting your people to change takes a great deal longer. That is why the people-intensive job of developing software has had essentially the same problems for over 40 years. It is also why, unless you do something, the situation won't improve by itself. In fact, current trends suggest that your future products will use more software and be more complex than those of today. This means that more of your people will work on software and that their work will be harder to track and more difficult to manage. Unless you make some changes in the way your software work is done, your current problems will likely get much worse." - Watts Humphrey |
||||||||||
Tools and Tips | ||||||||||
Please submit clever ideas or thoughts about tools, techniques and resources you love or hate. Here are the tool reviews submitted in the past. |
||||||||||
Freebies and Discounts | ||||||||||
This month we're giving away a 30 V 10 A power supply. The contest closes at the end of September, 2018. Enter via this link. |
||||||||||
On Test - A Story | ||||||||||
Daniel McBrearty wrote:
Testing is critically important, but it won't ensure the code is correct. It's just one of many filters we need to apply. |
||||||||||
On Hardware in Asynchronous Sampling | ||||||||||
In the last issue I wrote about some problems with using hardware to deal with an input wider than the CPU's bus. A number of people had thoughts about this. Ian Stedman wrote that the async timer problem would not exist if the timers counted using Gray Code. With that, only one bit changes at a time. This is the Gray sequence: 0 000 1 001 2 011 3 010 4 110 5 111 6 101 7 100 I don't know of any timers that count in Gray Code, but Digi-Key lists 202 encoders that do, out of 7274 total encoders. Code to convert Gray to binary is here. Craig Ross wrote:
David Wyland offered this about metastability:
|
||||||||||
More on Increasing the Resolution of an ADC | ||||||||||
Another subject in the last issue was using noise to increase the resolution of an ADC. Readers had lots of useful ideas. Phil M had the intriguing suggestion of using a triangular wave:
Jim Haflinger had an excellent idea: read, for instance, ten samples. Discard the highest and lowest, and average the remaining. The outliers might be, well, outliers. |
||||||||||
More on Whether 'Tis Nobler to Initialize or Not | ||||||||||
Finally, another subject in the last Muse was about initializing variables. Is the BSS zeroed or not? My take is that I always explicitly initialize. Rod Chapman, one of the smartest guys I know, is a SPARK advocate:
Steve Karg wrote:
That inspired me to look more closely at the 500+ mind-numbing pages of the C99 standard, where I found in 6.7.8:
Arithmetic types get assigned to a "positive" zero. In the next letter from a reader, Tom Oke talks about a Cyber 172 machine, which used ones complement math. That, for younger readers who never had to deal with this, supports both positive and negative zeroes. Tom Oke had a problem from the olden days:
Martin had a story where RC oscillators and uninitialized variables interacted:
|
||||||||||
This Week's Cool Product | ||||||||||
Note quite a product yet, but these passive sensors change how wi-fi signals from a smart phone are reflected. They can be used as switches and controls, This reminds me of one of the all-time amazing bugs: the Soviets gave the American ambassador a replica of the Great Seal of the United States, which hung in the ambassador's library. A passive resonant cavity vibrated in sync to conversations in the room; the Soviets flooded the room with microwaves, and the cavity modulated those, which could be picked up by a receiver. It took years for the Americans to find the bug. Note: This section is about something I personally find cool, interesting or important and want to pass along to readers. It is not influenced by vendors. |
||||||||||
Jobs! | ||||||||||
Let me know if you’re hiring embedded engineers. No recruiters please, and I reserve the right to edit ads to fit the format and intent of this newsletter. Please keep it to 100 words. There is no charge for a job ad. |
||||||||||
Joke For The Week | ||||||||||
Note: These jokes are archived here. Auto-correct has become my worst enema. |
||||||||||
Advertise With Us | ||||||||||
Advertise in The Embedded Muse! Over 28,000 embedded developers get this twice-monthly publication. . |
||||||||||
About The Embedded Muse | ||||||||||
The Embedded Muse is Jack Ganssle's newsletter. Send complaints, comments, and contributions to me at jack@ganssle.com. The Embedded Muse is supported by The Ganssle Group, whose mission is to help embedded folks get better products to market faster. |