HOME  |  NEWS  |  BLOGS  |  MESSAGES  |  FEATURES  |  VIDEOS  |  WEBINARS  |  INDUSTRIES  |  FOCUS ON FUNDAMENTALS
  |  REGISTER  |  LOGIN  |  HELP
Comment
Jon Titus
User Rank
Blogger
Re: Part IV: Fundamentals of Digital Debugging
Jon Titus   1/19/2012 3:05:57 PM
NO RATINGS
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
Watch as we teardown Amazon's Fire Phone -- the company's first smartphone, designed to compete with iOS, Android, and Windows Phone devices.
Lithium-ion batteries will soon back up the power grid on the Hawaiian island of Kauai, providing the stability to handle intermittent power fluctuations from renewable energy sources.
A relative newcomer to the 3D printing market has developed a 3D printer that can use five different materials in multiple colors for customized creations.
These free camps are designed for children ages 10 to 18. Attendees are introduced to 3D CAD software and shown how 3D printers can make their work a reality. Many classes were nearly 50 percent girls and 50 percent boys.
Take a look through these film and TV robots from 1990 through 1994.
More:Blogs|News
Design News Webinar Series
7/23/2014 11:00 a.m. California / 2:00 p.m. New York
7/17/2014 11:00 a.m. California / 2:00 p.m. New York
6/25/2014 11:00 a.m. California / 2:00 p.m. New York
5/13/2014 10:00 a.m. California / 1:00 p.m. New York / 6:00 p.m. London
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Aug 4 - 8, Introduction to Linux Device Drivers
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6


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 Class: August 12 - 14
Sponsored by igus
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Sponsored Content

Technology Marketplace

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