![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681178.webp)
1139
Debugging Instructions
Section 3-29
The data-tracing operations performed with the Peripheral Device are summa-
rized in the following list.
1,2,3...
1.
Set the following parameters with the Peripheral Device.
a) Set the address of the bit or word to be traced.
b) Set the trigger condition. One of the three following conditions can con-
trol when data stored into Trace Memory is valid.
i) The Trace Start Bit goes from OFF to ON.
ii) A specified bit goes from OFF to ON.
iii) The value of a specified word matches the set value.
c)
Set the sampling interval to “TRSM” for sampling at the execution of
TRSM(045) in the program.
d) Set the delay.
2.
When the Sampling Start Bit is turned from OFF to ON with the Peripheral
Device, the specified data will begin being sampled each time that
TRSM(045) is executed and the sampled data will be stored in Trace Mem-
ory. The Trace Busy Flag (A50813) will be turned ON at the same time.
3.
When the trigger condition (Trace Start Bit ON, specified bit ON, or value
of specified word matching set value) is met, the sampled data will be valid
beginning with the next sample plus or minus the number of samples set
with the delay setting. The Trace Trigger Monitor Flag (A50811) will be
turned ON at the same time.
4.
The trace will end when TRSM(045) has been executed enough times to
fill the Trace Memory. When the trace ends, the Trace Completed Flag
(A50812) will be turned ON and the Trace Busy Flag (A50813) will be
turned OFF.
5.
Read the contents of Trace Memory with the Peripheral Device.
The following table shows relevant bits and flags in the Auxiliary Area. Only
A50814 and A50815 are meant to be controlled by the user, and A00815 must
not be turned ON from the program, i.e., it must be turned ON only from a
Peripheral Device.
Name
Address
Operation
Trace Trigger Monitor
Flag
A50811
This flag is turned ON when the trigger condition
has been established with the Trace Start Bit. It is
turned OFF when sampling is started for the next
trace (by the Sampling Start Bit).
Trace Completed
Flag
A50812
This flag is turned ON when trace samples have
filled the Trace Memory. It is turned OFF the next
time that the Sampling Start Bit goes from OFF to
ON.
Trace Busy Flag
A50813
This flag is turned ON when the Sampling Start
Bit goes from OFF to ON. It is turned OFF when
the trace is completed.
Содержание 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...