![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681179.webp)
1140
Debugging Instructions
Section 3-29
Precautions
TRSM(045) is processed as NOP(000) when data tracing is not being per-
formed or when the sampling interval set in the parameters with a Peripheral
Device is not set to sample on TRSM(045) instruction execution.
Do not turn the Sampling Start Bit (A50815) ON or OFF from the program.
This bit must be turned ON and OFF from a Peripheral Device.
Example
The following example shows the overall data trace operation.
Note
Trace Memory has a ring structure. Data is stored to the end of the Trace
Memory area and then wraps to the beginning of the area, ending just before
the first valid data sample.
Trace Start Bit
A50814
The trace trigger conditions are established when
this bit is turned from OFF to ON. Samples will be
recorded after the specified delay (positive delay)
or the specified number of existing samples will
be valid (negative delay).
Sampling Start Bit
A50815
When this bit is turned from OFF to ON from a
Peripheral Device, data samples will start being
stored in Trace Memory with one of the following
three methods used to determine sampling:
1) Periodic sampling (10 to 2,550 ms intervals)
2) Sampling at TRSM(045) execution
3) Sampling at the end of each cycle
This bit must be turned ON and OFF from a
Peripheral Device.
Name
Address
Operation
Sampling
Operated from Peripheral Device
(Sampling Start Bit: A50815)
Trace Start Bit: A50814
Trace Busy Flag: A50813
Trace Completed Flag: A50812
Trace Trigger Monitor Flag: A50811
Example: word data
Trace Memory
See note.
Valid from here on
Delay
setting
Valid
samples
Trace ends when
Trace Memory is full.
: Execution of TRSM(045)
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...