Wiki

This version is outdated by a newer approved version.DiffThis version (06 Jun 2019 10:01) was approved by Antoniu Miclaus.The Previously approved version (15 Feb 2018 09:25) is available.Diff

This is an old revision of the document!





Pattern Generator - Test Case

Initial Setup

In order to proceed through the test case, first of all delete the Scopy *.ini file (saves previous settings made in Scopy tool) from the following path on Windows: C:\Users\your_username\AppData\Roaming\ADI .

Open the Pattern Generator instrument. The interface should look like the picture below:

Press multiple times on the “Run” button to check if the instrument works.

Test Title


A. Individual Channel Operation

Click to display ⇲

Click to hide ⇱

Description Test Steps Steps Resources Expected Results
Checking Individual Channels: Use PP as output 1. Connect DIO-0, CH0 to Scope CH1+, GND to Scope CH1-.
2. Enable CH0. By default, CH0 will generate a 5 KHz clock signal with duty cycle of 50%. Run instrument.The interface should look like in the “Step Resources” picture (left side).
3. Monitor CH0 through oscilloscope. Open built-in measurement feature for frequency, amplitude and duty cycle.The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 5 KHz, Amplitude: 3.2V to 3.4 V, Duty+: 50 %, Duty-:50%
4. Change frequency: 100 KHz, duty cycle: 30%. The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 100 KHz, Amplitude: 3.2V to 3.4 V, Duty+: 30 %, Duty-: 70%
5. Change frequency: 1 MHz, duty cycle: 60%. The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 1 MHz, Amplitude: 3.2V to 3.4 V, Duty+: 60 %, Duty-: 40%
6. Change frequency: 10 MHz, duty cycle: 70%. The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 1 MHz, Amplitude: 3.2V to 3.4 V, Duty+: 70 %, Duty-: 30%
7. Repeat steps 2 to 7 for DIO-1 to DIO-15. Behavior of each channel should be the same as with DIO-0, CH0. As the parameters are changed, the trace displayed in oscilloscope should follow.
Checking Phase8. Connect the following: DIO0 to ScopeCH1+, DIO1 to ScopeCH2+. GND to Scope CH1- and Scope CH2-.
9. Enable DIO0 and DIO1. Set the following parameters: DIO0: Frequency: 5 KHz, Phase: 0°, Duty Cycle: 50%; DIO1: Frequency: 5 KHz, Phase: 45°, Duty Cycle: 50 %. Run instrument.The interface should look like in the “Step Resources” picture (left side).
10. Monitor pattern generator output through oscilloscope. Use cursor feature of the oscilloscope. Move the vertical cursors as shown in steps resources. ΔT = 24us to 26us, corresponding to the 45° phase shift.
11. Change DIO1 phase: 120°. Use cursor feature of the oscilloscope. Move the vertical cursors as shown in steps resources. ΔT = 65us to 67us, corresponding to the 120° phase shift.
12. Change DIO1 phase: 270°. Use cursor feature of the oscilloscope. Move the vertical cursors as shown in steps resources. ΔT = 149us to 151us, corresponding to the 270° phase shift.
13. Set DIO1 phase to 0°. Now repeat steps for DIO0. Behavior of channel should be the same as with DIO1, CH1.
14. Use other channels, DIO2 to DIO15, and repeat steps to verify each. Behavior of each channel should be the same as with DIO1, CH1.

B. Group Channel Operation

Click to display ⇲

Click to hide ⇱

Description Test Steps Steps Resources Expected Results
Checking Group Channels and Patterns: Use PP as output. Binary Counter1.1 Enable and select channels DIO0 to DIO3. Then click “Group with selected”. Change pattern to Binary Counter. The interface should look like in the “Step Resources” picture (left side).
1.2 Open logic analyzer. Make a group with channels DIO0 to DIO3. Once grouped, choose parallel for the decoder.The plot in the logic analyzer should resemble the plot seen in the pattern generator.
1.3 Check the frequency of each channel through oscilloscope. Connect DIO0 to scopech1+. Enable built-in measurement for frequency. Frequency shown should be 2.4 KHz to 2.6 KHz, corresponding to set clock frequency/2.
1.4 Connect DIO1 to scopech1+. Enable built-in measurement for frequency. Frequency shown should be 1.24 KHz to 1.27 KHz, corresponding to set clock frequency/4.
1.5 Connect DIO2 to scopech1+. Enable built-in measurement for frequency. Frequency shown should be 620 Hz to 630 Hz, corresponding to set clock frequency/8.
1.6 Connect DIO3 to scopech1+. Enable built-in measurement for frequency. Frequency shown should be 310 Hz to 315 Hz, corresponding to set clock frequency/16.
Random 2.1 Change pattern to Random. Frequency: 5KHzThe interface should look like in the “Step Resources” picture (left side).
2.2 Monitor through logic analyzer. Use parallel as decoder.The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalents should be seen in logic analyzer.
2.3 Change frequency: 100 KHzThe interface should look like in the “Step Resources” picture (left side). There should be new set of data and hexadecimal equivalents.
2.4 Monitor through logic analyzer. Use parallel as decoder.The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalents should be seen in logic analyzer.
2.5 Change frequency: 10 MHzThe interface should look like in the “Step Resources” picture (left side). There should be new set of data and hexadecimal equivalents.
2.6 Monitor through logic analyzer. Use parallel as decoder.The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalents should be seen in logic analyzer.
Number pattern 3.1 Change pattern to Number pattern. Set number to 3.The interface should look like in the “Step Resources” picture (left side).
3.2 Monitor through logic analyzer. Use parallel as decoder.The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same number is seen in logic analyzer. Number: 3
3.3 Change number to 14. In the plot, it will show the hexadecimal equivalent which is E. The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalent is seen in logic analyzer. Hexadecimal equivalent: E
3.4 Add channels DIO4 to DIO7 to the group. It will now be an 8-channel group. Change number to 254. The plot will show the hexadecimal equivalent which is FE. The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalent is seen in logic analyzer. Hexadecimal equivalent: FE
Gray Counter 4.1 Change pattern to Gray Counter. The interface should look like in the “Step Resources” picture (left side).
4.2 Monitor through logic analyzer. Choose parallel for the decoder.The plot in the logic analyzer should resemble the plot seen in the pattern generator. One bit change per clock cycle.
UART 5.1 Dissolve current group channel. Enable and select DIO0 channel and click “Group with selected”. Change pattern to UART. Set parameters: Baud: 9600, Stop bit: 1, no parity, Data to send: ‘HELLO’. The interface should look like in the “Step Resources” picture (left side).
5.2 Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 9600, Data bits: 8, no parity.The interface should look like in the “Step Resources” picture (left side).
5.3 Change set parameters: Baud: 115200, Stop bit: 2, even parity, Data to send: ‘HI’. The interface should look like in the “Step Resources” picture (left side).
5.4 Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 115200, Data bits: 8, even parity.The interface should look like in the “Step Resources” picture (left side).
5.5 Change set parameters: Baud: 115200, Stop bit: 1, odd parity, Data to send: ‘HI’. The interface should look like in the “Step Resources” picture (left side).
5.6 Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 115200, Data bits: 8, odd parity.The interface should look like in the “Step Resources” picture (left side).
SPI 6.1 Dissolve current group channel. Enable and select DIO5 to DIO7 to create a 3-channel group. Click “Group with selected”. Change pattern to SPI. Set the following parameters: Bytes per frame: 2, inter frame space: 3, Data: ABCD1234.The interface should look like in the “Step Resources” picture (left side).
6.2 Monitor the channel through logic analyzer. Use SPI as decoder. Refer to steps resources picture for the configuration of logic analyzer. The interface should look like in the “Step Resources” picture (left side).
6.3 Change the following parameters: Bytes per frame: 1, inter frame space: 4, Data: ABCD1234.The interface should look like in the “Step Resources” picture (left side).
6.4 Monitor the channel through logic analyzer. Use SPI as decoder. Refer to steps resources picture for the configuration of logic analyzer. The interface should look like in the “Step Resources” picture (left side).
I2C7.1 Dissolve current group channel. Enable and select DIO0 and DIO1 to create a 2-channel group. Click “Group with selected”. Change pattern to I2C. Set the following parameters: Address: 72, Inter frame space: 3, Data: ABCD1234.The interface should look like in the “Step Resources” picture (left side).
7.2 Monitor the channel through logic analyzer. Use I2C as decoder. Refer to steps resources picture for the configuration of logic analyzer. The interface should look like in the “Step Resources” picture (left side).

C. Simultaneous Group and Individual Channels Operation

Click to display ⇲

Click to hide ⇱

Description Test Steps Steps Resources Expected Results
Checking Group and Individual Channels Simultaneously: Use PP as output.1. Enable and select channels DIO0 to DIO3 to create 4-channel group. Change group pattern to Binary Counter with frequency set to 5 KHz. Enable DIO4 channel and set as clock with frequency of 5 KHz. The interface should look like in the “Step Resources” picture (left side).
2. Monitor DIO4 through oscilloscope. And at the same time monitor the group channel through logic analyzer. On logic analyzer, the plot should resemble the plot seen in pattern generator, the group channel as well as the individual channel DIO4. On oscilloscope, frequency can be viewed by enabling measurement feature, frequency: 5KHz.
3. Do not dissolve group channel. Rename previous group as Group BC, for binary counter. Add another group channel. Enable and select DIO5, create a 1-channel group for UART. Change pattern to UART. Baud: 19200, stop bit: 1, no parity, Data: ‘HI’. Name this group as Group UART. Also, individual DIO4 channel remains enabled.The interface should look like in the “Step Resources” picture (left side).
4. Monitor DIO4 through oscilloscope. And at the same time monitor the 2 groups through logic analyzer. On logic analyzer, the plot should resemble the plot seen in pattern generator, the group channels as well as the individual channel DIO4. On oscilloscope, frequency can be viewed by enabling measurement feature, frequency: 5KHz.
5. Do not dissolve group channels. Disable Group UART. Add another group channel. Enable and select DIO6 to DIO9, create a 4-channel group. Change pattern to Gray Counter. Frequency: 10 KHz. Name this group as Group GC. Also, individual DIO4 channel remains enabled.The interface should look like in the “Step Resources” picture (left side).
6. Monitor DIO4 through oscilloscope. And at the same time monitor the groups through logic analyzer. On logic analyzer, the plot should resemble the plot seen in pattern generator, the group channels as well as the individual channel DIO4. On oscilloscope, frequency can be viewed by enabling measurement feature, frequency: 5KHz.

D. Other Features

Click to display ⇲

Click to hide ⇱

Description Test Steps Steps Resources Expected Results
Checking UI: Changing Channel Name 1.1 Open individual channel DIO. On its channel manager, modify its name to ‘CH 0’.The name should change as shown in steps resources picture.
1.2 Select DIO1 and DIO2 and create a channel. On the group’s channel manager, modify its name as ‘Group 1and2’. .The name should change as shown in steps resources picture.
Thickness 2.1 Open channel ‘CH 0’. On its channel manager, change thickness to 3.The thickness of the plot should now be more imposing as shown in steps resources picture, compared to previous.
2.2 Change thickness again to 5.The thickness of the plot should now be more imposing as shown in steps resources picture, compared to previous.
2.3 Open group channel ‘Group 1and2’. On group’s channel manager, change thickness to 3.The thickness of the plots, DIO1 and DIO2, should now be more imposing as shown in steps resources picture, compared to previous.
2.4 Open group channel ‘Group 1and2’. On group’s channel manager, change thickness to 5.The thickness of the plots, DIO1 and DIO2, should now be more imposing as shown in steps resources picture, compared to previous.
Color 3. Open channel ‘CH 0’. In its color settings, change the following colors, Edge: Blue, Low: orange, High: Yellow The interface should look like in the “Step Resources” picture (left side).
Knobs4.1 Checking frequency knob. Set the knob to large increment. No orange dot on the center. Change frequency value using the ± button.The frequency value should change accordingly with a high increment/decrement from 5 KHz to 10 KHz.
4.2 Set the knob to ±1 unit interval. With orange dot on the center. Change frequency value using the ± button.The frequency value should change accordingly with ±1 unit interval.
Checking the output: PP mode 5.1 Connect the DIO0 to oscilloscope ch1+, and oscilloscope ch1- to gnd. This is to monitor the output from the pattern generator.
5.2 Enable DIO0 in pattern generator. Set pattern to clock with 5 kHz frequency. Set output as PP. Run instrument and monitor on Oscilloscope The oscilloscope should show clock pulses from logic 0 to 1. It should look like in steps resources picture.
5.3 Try other patterns such as random pattern and monitor on oscilloscope. The oscilloscope should show random pulses from logic 0 to 1. It should look like in steps resources picture.
5.4 Repeat steps 5.2 and 5.3 for all channels.
OD mode 6.1 Change output to OD. Monitor output in oscilloscope. Oscilloscope should only show logic 0 since output is now in OD mode.
6.2 Do 6.1 to other channels.
6.3 To output two logic levels when operating in OD, a pull up resistor is needed. Connect the breadboard connection shown in steps resources.
6.4 Set power supply to 5V. Run power supply, pattern generator and monitor in oscilloscope. The trace should show two logic levels, with a few mV offset. When power supply is turned off, the oscilloscope should show only logic 0.
6.5 Repeat step 6.3 and 6.4 for all channels.
Mix Indicator 7.1 Disconnect current connections. Set channel output to the following: DIO0=OD, DIO1=PP, DIO2=PP, DIO3=OD. Then group DIO0 to DIO3. Output of the group should indicate “Mix” since output of the channels are not uniform.
7.2 Monitor configuration for each channel from the group Each channel under the group should work according to its output configuration (use steps from 5 and 6).
7.3 Change group output to PP. Each channel under the group should have output automatically selected as PP.
7.4 Monitor configuration for each channel from the group Each channel under the group should work according to its output configuration (use steps from 5).
7.5 Change group output to OD. Each channel under the group should have output automatically selected as OD.
7.6 Monitor configuration for each channel from the group Each channel under the group should work according to its output configuration (use steps from 6).

Test Results will be recorded in the following document: Pattern Generator Test Case


Return to Test Cases Table of Contents

university/tools/m2k/scopy/test-cases/pattern-generator.1559799896.txt.gz · Last modified: 06 Jun 2019 07:44 by Trecia Agoylo