Texas Instruments TMS320 User Manual page 86

Dsp/bios v5.40
Hide thumbs Also See for TMS320:
Table of Contents

Advertisement

Instrumentation APIs
3.5.3.3 Statistics About Value Differences
Example 3-1. Gathering Information About Differences in Values
Figure 3-3. Current Value Deltas From One STS_set
3-24
Both STS_set and STS_delta update the contents of the previous value field
in an STS object. Depending on the call sequence, you can measure specific
value differences or the value difference since the last STS update. Example
3-1 shows code for gathering information about differences between specific
values. Figure 3-3 shows current values when measuring differences from
the base value.
STS_set(&sts, targetValue);
"processing"
STS_delta(&sts, currentValue); /* T
"processing"
STS_delta(&sts, currentValue); /* T
"processing"
STS_delta(&sts, currentValue); /* T
"processing"
Current value
Previous value
Delta
Dx
1
T
T
0
1
/* T
*/
0
*/
1
*/
2
*/
3
Dx
3
Dx
2
T
T
2
3
Time T

Advertisement

Table of Contents
loading

Table of Contents