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
(Video) NASA's Modular Robotic Vehicle (MRV) is an EV inspired by manned rovers used for space exploration.
Comedian John Oliver recently did a segment on patent trolls, offering a hiliarious take on a serious issue plaguing US industries.
United Launch Alliance will fly 3D-printed flight hardeware parts on its rockets starting next year with the Atlas V. The company's Vulcan next-gen launch vehicle will have more than 100 production parts made with 3D printing. The main driver? Parts consolidation and 57% lower production costs.
The new small-form-factor EZ-BLE PRoC (Programmable Radio on Chip) module is a derivative of the existing PRoC BLE Programmable Radio-on-Chip solution. The EZ-BLE PRoC module integrates the programmability and ARM Cortex-M0 core of the PRoC BLE, two crystals, an onboard chip antenna, a metal shield, and passive components.
The engineers and inventors of the post WWII period turned their attention to advancements in electronics, communication, and entertainment. Breakthrough inventions range from LEGOs and computer gaming to the integrated circuit and Ethernet -- a range of advancements that have little in common except they changed our lives.
More:Blogs|News
Design News Webinar Series
3/31/2015 11:00 a.m. California / 2:00 p.m. New York
2/25/2015 11:00 a.m. California / 2:00 p.m. New York
12/11/2014 8:00 a.m. California / 11:00 a.m. New York
5/7/2015 11:00 a.m. California / 2:00 p.m. New York
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
May 4 - 8, Designing Low Power Systems using Battery and Energy Harvesting Energy Sources
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7


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.
Last Archived Class
Sponsored by Proto Labs
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Sponsored Content

Technology Marketplace

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