Advanced Triggering with PicoScope

The PicoScope 6 software and PicoScope oscilloscopes have a number of advanced trigger types that enable you to capture a stable waveform even with complex signals. This makes them ideal for troubleshooting glitches, timing violations, overvoltages and dropouts in analog and digital circuits.
First we shall review the Simple Edge trigger and its limitations, and then we shall explore the possibilities that advanced triggering offers.

Simple Edge
As an oscilloscope user, you will be familiar with the standard type of triggering provided on all instruments. PicoScope 6 calls this the Simple Edge trigger, and uses it by default when you enable triggering. The scope monitors the incoming signal and waits for the voltage to rise above (or fall below) a set threshold, then causes the scope to capture and display the waveform. This method is adequate when the signal consists of repetitive pulses or cycles like those in a pure sine or square wave.

The Simple Edge trigger has a basic set of options: the signal source (A, B, C, D, EXT, AUXIO), edge direction (rising or falling) and threshold voltage.

Configuring the Simple Edge trigger
PicoScope 6 lets you avoid the complexity of advanced triggers unless you really need to use them. We will first look at the trigger mode control and the Simple Edge trigger types.

Trigger mode control
The trigger mode control, circled in the picture above, tells the scope whether to wait for a trigger condition and what to do afterwards. None, Single, Repeat and Auto modes work as in any other oscilloscope. There may also be special modes such as Rapid and ETS (Equivalent Time Sampling). You can find a full description of these trigger modes in the PicoScope 6 User’s Guide.


Figure 1: Trigger mode control

Standard triggering controls
The Channel, Rising edge, Falling edge and Threshold controls allow you to set up Simple Edge triggering. Experienced scope users will find these controls familiar even if they have not used PicoScope before.

In Figure 2, the trigger point is shown by the diamond shape. It indicates the moment when the signal rises above the threshold voltage of 0 V. This method gives a satisfactory display if all the pulses are of the same shape and equally spaced.


Figure 2: Square wavel

The square wave in Figure 2 represents the simplest type of signal produced by electronic circuits such as crystal oscillators and phase–locked loops. Most signals are more complex than this, like the more realistic example in Figure 3


Figure 3: Typical pulse train

In this waveform, the pulses are of unequal widths. If we use Single trigger mode, the scope will pick the first rising edge it sees. We happened to catch the rising edge of the shortest pulse in this case, but the scope could just as easily have started capturing on any of the other rising edges. If we were looking for a narrow pulse that occurred only once in every million normal pulses, then we would be very lucky to find it using this hit–or–miss method.


Figure 4: Superimposed views of the same pulse train in Repeat mode

In Auto or Repeat trigger mode, the scope captures continually many times each second. Figure 4 shows a number of waveforms superimposed, as you might see if the refresh rate is fast enough. This type of display is of little use if we want to see the data contained in the pulse train.

This brief discussion of Simple Edge triggering suggests that if we want to reliably find a rare event, such as a narrow pulse buried in a string of wider pulses, we need a more powerful type of trigger.

What advanced trigger types are available?
These advanced trigger types are available:

  • Advanced Edge trigger
  • Window trigger
  • Pulse Width trigger
  • Interval trigger
  • Runt
  • Window Pulse Width trigger
  • Level Dropout trigger
  • Window Dropout trigger
  • Logic trigger

(A further trigger type, Digital, is provided for mixed-signal oscilloscopes only.)

The Advanced Triggers button is the key control that lets you set up the conditions for advanced triggering.

Click this button to open the Advanced Triggers dialog. If the button is greyed out, you are using a trigger mode (ETS, for example) that is not compatible with advanced triggering.

Advanced Triggers dialog
This dialog allows you to set up the advanced triggers. The Simple Edge trigger also appears here: selecting it switches off advanced triggering.


Figure 6: Advanced Triggers dialog

Select one of the advanced trigger types in this list and a number of options, a diagram and a description will appear in the main area of the dialog.

Advanced edge trigger
The Advanced Edge trigger provides the standard rising, falling and dual edge conditions. Dual edge triggering allows you to check the widths and voltages of positive and negative pulses as the same time, as in Figure 7. It is useful for rapidly spotting jitter and noise problems, and for displaying eye patterns.


Figure 7: Rising and falling edge trigger, showing several captures superimposed

The Advanced Edge trigger also provides adjustable hysteresis. Hysteresis is a technique used on all types of trigger to reduce false triggering on noisy signals. The voltage threshold is split into two levels, and the trigger fires only when the signal crosses the two thresholds in the correct order. The first threshold arms the trigger, and the second causes it to fire. In Simple Edge triggering the distance between the hysteresis levels is fixed, but in advanced triggers it is adjustable.


Figure 8: Noisy signal with a single threshold

Consider the very noisy signal in Figure 8. It is difficult to trigger stably on this signal with a normal rising edge trigger because it crosses the trigger threshold, the red line in this example, several times in one cycle. If we zoom in on the highlighted parts of the signal, we will see how hysteresis can help.


Figure 9: Noisy signal with hysteresis trigger

In these zoomed–in views (Figure 9), the original threshold is the lower red line. The upper red line is the second threshold used by the hysteresis trigger.

The signal rises across the lower threshold at (1) and (2), arming the trigger but not firing it. At (3) the signal finally crosses the upper threshold, firing the trigger. On the falling edge of the signal, at (4) and (5), rising edges of noise pulses cause the signal to cross the upper and lower thresholds, but in the wrong order, so the trigger is not armed and does not fire. Thus the trigger occurs at only one well–defined point in the cycle, despite the noise on the signal.

In PicoScope, hysteresis is measured as a fraction of the full voltage range. For example, if the scope is set to a voltage range of ±1 V, then a hysteresis setting of 1% gives a hysteresis of 1% x 2 V = 20 mV.

Window trigger
This trigger detects the moment when the waveform enters or leaves a voltage range. This allows you to search for overvoltages and undervoltages at the same time. In Figure 10, a 5 volt power supply is monitored with thresholds of 4.5 and 5.5 volts. The window trigger would detect both the positive and negative excursions outside this range.


Figure 10: Window trigger

The Direction control specifies whether the trigger operates when the signal enters the window, exits it, or both. The Threshold 1 and Threshold 2 controls define the upper and lower limits of the voltage window.

Pulse Width trigger
This trigger enables you to trigger exclusively on pulses with a specified range of widths. This can be useful for finding glitches, rare events in synchronous control signals such as write–enables, or extreme values in pulse–width modulated (PWM) signals.


Figure 11: Pulse Width trigger

To obtain Figure 11, the trigger was set to “pulse width, positive, greater than 70 ns”. This found a 100 ns pulse in a stream of 50 ns pulses.

The Pulse direction control specifies whether you want to trigger on either positive or negative pulses.

The Condition control specifies whether you are looking for pulses wider or narrower than a specified width, or inside or outside a specified range of widths.

Interval trigger
This trigger helps you find missing or mis timed edges, or changes in signal frequency.


Figure 12: Missing clock edges

Figure 12 shows two examples of a 4 MHz clock waveform with a missing pulse. You could use a pulse width trigger to search for the extended high pulse in the top example or the extended low pulse in the bottom example, but the interval trigger lets you find both errors without having to change the trigger type. Setting an interval trigger of “rising, greater than 300 ns” will detect both cases. The trigger point is set to the first rising edge after the long interval.

Set the Starting edge control to either Rising or Falling according to the polarity of the edges you are interested in.
Level Dropout trigger
This trigger detects an edge followed by a specified time with no edges. This is useful for triggering on the end of a pulse train. Figure 14 shows the end of a pulse train in which rising edges normally occur every 133 ns. The dropout trigger has detected that no rising edges have occurred within 500 ns.

The Dropout control specifies whether to trigger when the signal remains high, low, or in either state relative to the threshold.

Window Pulse Width trigge
This trigger is a combination of the window trigger and the pulse width trigger. It detects when the signal enters or leaves a voltage range for a specified period of time. In Figure 13, a nominally ±700 mV signal has occasional overvoltages and undervoltages, but we have set the dwell time to “greater than 100 ns” so that only abnormally wide pulses that go outside this range are detected.


Figure 13: Pulse Width trigger

This trigger can be used to detect runt pulses, but the Runt trigger described later is easier to use in simple cases.

Level Dropout trigger
This trigger detects an edge followed by a specified time with no edges. This is useful for triggering on the end of a pulse train. Figure 14 shows the end of a pulse train in which rising edges normally occur every 133 ns. The dropout trigger has detected that no rising edges have occurred within 500 ns.


Figure 14: Level Dropout trigger

The Dropout control specifies whether to trigger when the signal remains high, low, or in either state relative to the threshold.

Window Window Dropout trigger
This trigger is a combination of the Window and Level Dropout triggers. It detects when the signal enters or leaves a voltage range and stays there for a specified time. This is useful for detecting when a signal gets stuck at a particular voltage. In Figure 15, the window dropout trigger was set to a 300 ns delay with a 600 mV to 800 mV window. It ignored the first pulse, which entered the window briefly, and the first dropout, when the signal remained below the window, but detected when the signal remained within the window for more than 300 ns.


Figure 15: Window Dropout trigger

Runt trigger
This trigger detects a pulse that crosses the first threshold but not the second. This type of pulse is called a runt pulse, and can occur when a logic driver has insufficient slew rate to reach a valid logic level in the time available.


Figure 16: Runt trigger

To detect runt pulses with a specified range of widths, use the Window Pulse Width trigger.

Logic trigger
This trigger detects a logical combination of the scope’s inputs.

In Figure 17 the trigger was set to “Channel A, level, above 0 V, Channel B, level, below 0 V, AND“. The trigger condition became true in the middle of the trace, at time t=0, when Channel A was above 0 V at the same time that Channel B was below 0 V.


Figure 17: Logic trigger

Instead of the AND function, you can combine the channels using NAND, OR, NOR, XOR or XNOR.

The channel A to D controls have the most options. With level–qualification selected, the channel triggers when above or below the threshold. With window–qualification selected, the channel triggers when inside or outside the specified voltage window. The Ext and AuxIO settings controls have only the level–qualified options.

Each channel has a Use checkbox to the right of its settings control. Setting this box causes the channel to be included in the logic trigger, and clearing it causes the channel to be ignored.

The Logic control specifies how the inputs are combined to produce a trigger condition using the Boolean functions AND, NAND, OR, NOR, XOR and XNOR. For example: to trigger on all of the channel conditions being met, choose AND; or to trigger on exactly one of them being met, select XOR.

Conclusion
The advanced triggers may seem daunting at first, but PicoScope helps you learn with interactive diagrams that illustrate the operation of each trigger type. As you change the options, the diagrams change to show how the thresholds work.

It is worth experimenting with these triggers, as they can sometimes save you from having to search through thousands of waveforms in the buffer to find a troublesome waveform.

Advanced triggering is available for:

  • PicoScope 2205 to 2208
  • PicoScope 3204A/B to 3207A/B
  • PicoScope 3404A/B, 3405A/B and 3406A/B
  • PicoScope 3224
  • PicoScope 3424
  • PicoScope 4000 Series
  • PicoScope 5000 Series
  • PicoScope 6000 Series

Note: not all trigger types are available for all models. Please check your scope’s specifications to confirm which trigger types are currently available.
 

Click here to edit description