Technical information

Section 3 Software Specifications when Using the SH7080 Series/SH7146 Series/SH/Tiny Series
Rev. 5.00 Aug. 18, 2009 Page 43 of 78
REJ10J1237-0500
Using Event Condition restricts the condition; the following three items are set as the internal trace
conditions.
Table 3.12 Trace Conditions of the Internal Trace
Item Acquisition Information
Trace halt Acquires the internal trace until the Event Condition is satisfied. (The
trace content is displayed in the [Trace] window after a trace has been
halted. No break occurs in the user program.)
Trace acquisition condition Acquires only the data access where the Event Condition is satisfied.
Point-to-point Traces the period from the satisfaction of Event Condition 5 to the
satisfaction of Event Condition 4.
To restrict trace acquisition to access for only a specific address or specific function of a program,
an Event Condition can be used. Typical examples are described below.
Example of halting a trace with a write access (L-bus) to H’FFFF8000 by the user program as
a condition (trace halt):
Set the condition to be acquired on [I-Trace mode].
Set the following in the [Event Condition 1] or [Event Condition 2] dialog box:
Address condition: Set [Address] and H’FFFF8000.
Bus state condition: Set [L-Bus] and [Write].
Action condition: Disable [Acquire Break] and set [Acquire Trace] for [Stop].
Example of acquiring the write access (L-bus) only to H’FFFF8000 by the user program (trace
acquisition condition):
Select [L-Bus & Branch] from [Type] and enable [Write] and [Data access] on [Acquisition].
Set the following in the [Event Condition 1] or [Event Condition 2] dialog box:
Address condition: Set [Address] and H’FFFF8000.
Bus state condition: Set [L-Bus] and [Write].
Action condition: Disable [Acquire Break] and set [Acquire Trace] for [Condition].
For the trace acquisition condition, the condition to be acquired by Event Condition should be
acquired by [I-Trace mode].
Example of acquiring a trace for the period while the program passes H’1000 through H’2000
(point-to-point):
Set the condition to be acquired on [I-Trace mode].
Set the address condition as H’1000 in the [Event Condition 5] dialog box.