Everything
 

Measurement Condition Setting dialog box [E2]


This dialog box is used to set conditions for measurement in the Measuring CAN Bus Reception Processing Times panel [E2].

You can make settings for the measurement condition with the number you have selected before opening this dialog box.

Figure A.66

Measurement Condition Setting Dialog Box

 

This section describes the following.

[How to open]

-

On the Measuring CAN Bus Reception Processing Times panel [E2], click [Set Condition 1...] or [Set Condition 2...] from the [Set Condition] button on the toolbar.

[Description of each area]

(1)

[Measurement range start condition] area

This area allows you to select conditions that define the beginning of the range over which measurement of CAN bus reception processing times will proceed.

(a)

[Condition type]

Select "Detect CAN Frame" or "Detect External Trigger Input Signal" as the type of the condition.

(b)

[Channel]

Select ch0 or ch1 as the channel number to be detected, that is, the number of the CAN channel or external trigger input channel depending on whether "Detect CAN Frame" or "Detect External Trigger Input Signal" has been selected for [Condition type].

(c)

[Frame format]

If you have selected "Detect CAN Frame" for [Condition type], select "Standard" or "Extended" as the format of CAN frames to be detected.

(d)

[Baud rate]

If you have selected "Detect CAN Frame" for [Condition type], select one of the following values as the bit rate for use in the detection of CAN communications.

1M bps (default), 500K bps, 250K bps, 125K bps

(e)

[Sampling point]

If you have selected "Detect CAN Frame" for [Condition type], specify the relative position as a percentage within one bit period for the sampling of each bit of data in CAN frames to be detected. Decimal values from 1 to 100 can be specified.

(f)

[ID], [Mask]

If you have selected "Detect CAN Frame" for [Condition type], specify ID in CAN frames to be detected and the mask value to be used as hexadecimal values.

The range of values that can be specified varies depending on selection of [Frame format] as shown below.

Selection of [Frame format]

Settable Range

Standard

0 to 7FF

Extended

0 to 1FFFFFFF

When 0 is selected for a mask bit, the bit is treated as being masked.

If [Mask] is blank, all current ID bits are treated as not being masked.

(g)

[Data], [Mask]

If you have selected "Detect CAN Frame" for [Condition type], specify data in CAN frames to be detected and the mask value to be used as hexadecimal values in the range from 0 to FFFFFFFFFFFFFFFF.

The values specified in the sequence are assumed to be in data fields 0, 1, 2, …, in that order, within the CAN frames. When the value of the last digit takes up less than one byte, the lower-order bits are padded with 0.

Example

When the input value is 0011223, it is assumed that 0x00 is to be found in data field 0, 0x11 in data field 1, 0x22 in data field 2, and 0x30 in data field 3.

 

When 0 is selected for a mask bit, the bit is treated as being masked.

If [Mask] is blank, all current ID bits are treated as not being masked.

(h)

[Data Length]

If you have selected "Detect CAN Frame" for [Condition type], select the data size in bytes for CAN frames to be detected as a value from 0 to 8.

(i)

[Detection times]

If you have selected "Detect CAN Frame" for [Condition type], time measurement starts when CAN frames have been detected the number of times specified in this field.

(j)

[Waveform detection]

If you have selected "Detect External Trigger Input Signal" for [Condition type], select the type of the external trigger input waveform to be detected from the following drop-down list.

Rising edge

Rising edges are detected.

Falling edge

Falling edges are detected.

Both edges

Both rising and falling edges are detected.

(2)

[Measurement range end condition] area

This area allows you to select conditions that define the end of the range over which measurement of CAN bus reception processing times will proceed.

(a)

[Condition type]

Select "Detection of DBTAG" or "Detection of external input trigger signal" as the type of the condition.

(b)

[DBTAG value]

If you have selected "Detection of DBTAG" for [Condition type], select the value of DBTAG to be detected.

The facility for measuring CAN bus reception processing times supports the following ten values.

 

0x21, 0x29, 0x31, 0x39, 0x41, 0x49, 0x51, 0x59, 0x61, 0x69

(c)

[Channel]

If you have selected "Detection of external input trigger signal" for [Condition type], select ch0 or ch1 as the channel number to be detected.

(d)

[Detected waveform]

If you have selected "Detection of external input trigger signal" for [Condition type], select the type of the external trigger input waveform to be detected from the following drop-down list.

Rising edge

Rising edges are detected.

Falling edge

Falling edges are detected.

Both edges

Both rising and falling edges are detected.

(3)

[Timeout setting] area

This area allows you to make timeout settings for the measurement of CAN bus reception processing times.

(a)

[Detect timeout]

Select whether to detect timeout.

(b)

[Timeout period]

Enter a decimal value from 0 to 2,345,624,805,922,133 (in nanoseconds) as the timeout value.

(c)

[Timeout action]

Select the action on timeout detection from the following drop-down list.

Detection only

Detection of timeout is only used as a condition for external trigger output.

Stop internal tracing

Tracing within the MCU stops but execution of the program continues.

Stop program

Execution of the program stops.

Caution

"Stop internal tracing" is not selectable as the action on timeout detection when "Detection of DBTAG" is selected as the type of measurement-end condition.

(4)

[External trigger output setting] area

This area allows you to make settings for the output of external trigger signals in cases where measuring CAN bus reception processing times needs to work with an external device.

(a)

[Output external trigger signal]

Select whether to output an external trigger signal.

(b)

[External trigger signal output condition]

Select the timing for the output of an external trigger signal from the following drop-down list.

Start condition is true

An external trigger signal will be output when the condition set in the [Measurement range start condition] area is satisfied.

End condition is true

An external trigger signal will be output when the condition set in the [Measurement range end condition] area is satisfied.

Timeout condition is true

An external trigger signal will be output when the condition set in the [Timeout setting] area is satisfied.

Caution

"Start condition is true" is not selectable when "Detect External Trigger Input Signal" is selected as the type of measurement-start condition.
"End condition is true" is also not selectable when "Detect External Trigger Input Signal" is selected as the type of measurement-end condition.
"Timeout condition is true" is not selectable when timeout detection is disabled.

(c)

[Channel]

Select ch0 or ch1 as the channel from which an external trigger signal will be output.

(d)

[Output waveform]

The waveform of the pulse signal to be output as the external trigger is displayed.

(e)

[Pulse width]

Specify the width of the pulse signal to be output as the external trigger as a decimal value from 1 to 65535 (in microseconds).

[Function buttons]

Button

Function

OK

Clicking on this button applies the conditions set in this dialog box as measurement conditions in the Measuring CAN Bus Reception Processing Times panel [E2].

Cancel

Nullifies settings and closes this dialog box.

Help

Displays the help for this dialog box.