s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 507

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
10.7.13 Trace Command
c17 tm
■ Example 1
■ Example 2
S5U1C17001C MANUAL
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
Operation
Format
Usage example
Sets the conditions below.
Turning trace on/off
When you turn trace on, trace information is sampled along with program execution.
Trace information items to be displayed
You can choose the items in the trace information to be displayed.
Output destination of trace information
You can choose a window or file as the destination at which sampled trace information is output. Choosing a
window displays trace information in the [Trace] window. Choosing a file requires that you specify a file name.
c17 tm on Mode [ Filename ]
c17 tm off
Mode:
Filename: Name of file to which trace information is output
(gdb) c17 tm on 0xff trace.log
This example sets the trace mode for displaying all information and specifies the trace.log file in which
to save the information. Running the program after setting these options outputs trace information to a file for
each instruction executed. If a file name is omitted, the information is displayed in the [Trace] window.
(gdb) c17 tm off
Trace mode is turned off. From this time on, no trace information is sampled even when running the program.
(set trace mode)
Trace mode (contents of trace information displayed)
Specify within the range from 0x00 to 0xff. Set the bit corresponding to the item to be displayed to 1.
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
When a file name is specified, sampled trace information is output to the specified file, and not
displayed in a window. When this entry is omitted, trace information is displayed in the [Trace]
window, and not output to a file.
Trace number
Clock number
PC value and instruction code
Bus information (address, R/W and access size, data)
Register values (R0–R7, SP)
PSR value (IE, IL, CVZN)
Disassembled contents and source code
Cumulative number of clocks (number of clocks spent by each instruction when set to 0)
(sets trace mode.)
(clears trace mode.)
EPSON
10 DEBUGGER
[SIM]
10-115

Related parts for s5u1c17001c