Jon Titus
User Rank
Re: Part IV: Fundamentals of Digital Debugging
Jon Titus   1/19/2012 3:05:57 PM
Q: When writing pure software often stubs are used to return values to emulate an external environment, moreso for a program that must interact externally. How do you simulate the effect of interaction before commiting to the actual external environment at the testing stage? ( bottom-up vs top-down approach).


A:  Years ago I had to build an instrument to acquire data from chemical instruments.  I used a large EPROM to store a simulated waveform and then fed it to a DAC with an R/C filter to simulate the signal.  That gave me a "standard" to use for testing.  As an alternate, I could have saved this data in memory and written a routine to obtain it form that memory instead of using an ADC to digitize the DAC's output.  But, in those days, memory was expensive and processors couldn't address more than 64 Kbytes.  Is that what you're getting at?

Partner Zone
Latest Analysis
General Motors is putting an off-road twist on hydrogen fuel cell technology with an imposing new pickup demonstrator called the Chevrolet Colorado ZH2.
Fine powder printing of industry-standard metal and ceramic powders with a grain size of less than 10 microns is now available from industrial 3D printer maker ExOne for its Innovent printer.
At ARM TechCon 2016, CEO Simon Segars will discuss how he sees billions of devices scaling to trillions as IoT applications proliferate. We know it’s happening. How do we prepare?
The term “autopilot” is now at the heart of a growing debate between Tesla Motors Inc. and Germany’s Federal Motor Transport Authority.
A make-your-own Star Wars Sith Lightsaber hilt is heftier and better-looking than most others out there, according to its maker, Sean Charlesworth. You can 3D print it from free source files, and there's even a hardware kit available -- not free -- so you can build one just in time for Halloween.
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Oct 10 - 14, Embedded System Design Techniques™: Getting Started Developing Professional Embedded Software
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7 | 8 | 9 | 10

Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.
Next Course September 27-29:
Sponsored by 3M
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Technology Marketplace

Copyright © 2016 UBM Canon, A UBM company, All rights reserved. Privacy Policy | Terms of Service