Using the ICE10
AVR
®
ATICE10 User Guide
3-3
3.5
Using Breakpoint
ICE10 supports an unlimited number of breakpoints. Breakpoints can be placed directly
in the source code. When running the code, execution will be halted
before
executing
the code line with the breakpoint. ICE10 does not support advanced or complex break-
points. For in-depth description of breakpoints and how to use them, see the on-line
help system in AVR Studio.
3.6
Using Traces
The ICE10 has a 32K x 96-bit trace buffer that stores information about program execu-
tion for every clock cycle. When the emulator is stopped, this trace buffer can be
examined to extract information about the history of the emulated program. The details
on which data are stored and how to retrieve them are described in the “AVR Studio On-
line Help.” When the trace buffer is full, it will wrap around and start overwriting the old-
est entries.
The trace buffer can be turned on or off at any program line. This makes it possible to
skip tracing delay loops and other subroutines which would otherwise fill the trace mem-
ory with unnecessary data. The trace buffer is inactive by default. To trace an entire
program, a
Trace on
marker should be placed on the first line of the program.
For in-depth description of Traces and how to understand the contents of the trace
buffer, see the on-line help system in AVR Studio.
3.7
Using Triggers
The ICE10 has five external trigger inputs and five trigger outputs, all located on the Aux
connector next to the Pod connector. The pinout is shown in Figure 3-2 and Table 3-1.
The trigger inputs can act as break signals to the emulator and/or they can be logged
in the trace buffer. Any inputs set up to break the emulator are activated when a rising
edge is detected.
The trigger outputs may be set as trigger points on any instruction in the code window
in AVR Studio. If enabled on an instruction, the output(s) will remain high for one AVR
clock cycle when the marked instruction is executed. This can be used to trigger a
logic analyzer or an oscilloscope.
Figure 3-2.
AUX Connector