This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
university:tools:m2k:scopy:pattgen [16 May 2018 14:16] – Adrian Suciu | university:tools:m2k:scopy:pattgen [10 Mar 2021 08:15] – Add missing new lines Guramulta Daniel | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== General Description ===== | ===== General Description ===== | ||
- | {{ : | + | {{ : |
The pattern generator instrument can be used to generate output from the M2K with user configurable parameters. | The pattern generator instrument can be used to generate output from the M2K with user configurable parameters. | ||
- | *Channel | + | *Channel |
*Signals Plot | *Signals Plot | ||
*Control Panel | *Control Panel | ||
- | {{ : | + | {{ : |
The buttons on top of the pattern generator are: | The buttons on top of the pattern generator are: | ||
* The Run button starts the pattern generation. | * The Run button starts the pattern generation. | ||
Line 15: | Line 16: | ||
* The gearwheel button activates the general settings menu in the control panel. | * The gearwheel button activates the general settings menu in the control panel. | ||
* The sliders button activates the pattern settings menu in the control panel. | * The sliders button activates the pattern settings menu in the control panel. | ||
- | {{ : | ||
The plot shows a preview of the generated signals by the pattern generator. For the enabled channels, the generated waveform is shown. For channel groups (groups of one or more channels) a “decoder” is displayed and has the purpose to graphically represent the binary value of the channel group. | The plot shows a preview of the generated signals by the pattern generator. For the enabled channels, the generated waveform is shown. For channel groups (groups of one or more channels) a “decoder” is displayed and has the purpose to graphically represent the binary value of the channel group. | ||
- | {{ : | + | The channel |
- | The channel | + | {{ : |
- | The user can enable channels by clicking the {{: | + | The user can enable channels by clicking the blue checkbox |
- | The channel | + | By double clicking the channel the channel |
- | The channel number is in the third column. This is the actual DIO number of the device. | + | {{ : |
- | The select button is used to merge multiple channels together into a channel group. | + | In the channel |
- | Channel groups are used to generate more complex patterns that span over multiple channels. | + | The pattern for this channel/ channel |
- | + | To group a set of channel the same mechanism as in the Logic Analyzer | |
- | In order to create a channel group, select multiple channels and click the {{: | + | |
- | + | ||
- | {{: | + | |
- | The {{: | + | |
- | An alternative to the select/ | + | |
- | {{ : | + | |
- | An advantage dragging and dropping elements over using select/ | + | |
- | + | ||
- | The {{: | + | |
- | {{ : | + | |
- | Whenever an element in the channel manager is clicked, it becomes highlighted. The highlighted element has a darker tint in the channel | + | |
- | + | ||
- | {{ : | + | |
- | The control panel allows | + | |
- | The {{: | + | |
- | The Pattern combobox allows the user to select one of the currently implemented patterns.\\ | + | |
The currently implemented patterns are: | The currently implemented patterns are: | ||
*Clock – generates a clock signal having user selectable frequency, phase and duty cycle. | *Clock – generates a clock signal having user selectable frequency, phase and duty cycle. | ||
Line 53: | Line 37: | ||
*Import - imports a CSV file and outputs it's content | *Import - imports a CSV file and outputs it's content | ||
- | The output combobox allows output drive selection between | + | {{ : |
- | * PP - pushpull | + | {{ : |
- | * OD - opendrain | + | |
- | The Name editbox changes the name of the channel/ | + | |
- | The thickness editbox changes the size of the channel/ | + | |
- | The colors editboxes change the colors of the channel/ | + | |
\\ | \\ | ||
Line 67: | Line 47: | ||
==== Enable & run one channel ==== | ==== Enable & run one channel ==== | ||
- | < | + | < |
\\ | \\ | ||
- | {{: | + | {{ : |
\\ | \\ | ||
2. Start pattern generator | 2. Start pattern generator | ||
Line 81: | Line 62: | ||
5. Modify parameters - set frequency to 1MHz, 70% duty cycle | 5. Modify parameters - set frequency to 1MHz, 70% duty cycle | ||
- | {{: | + | {{ : |
\\ | \\ | ||
6. Run pattern generator | 6. Run pattern generator | ||
Line 89: | Line 71: | ||
==== Create a 4 channel binary counter ==== | ==== Create a 4 channel binary counter ==== | ||
< | < | ||
- | 3.1 Select multiple channels | + | 3.1 Select multiple channels |
- | Select multiple channels | + | Enable multiple |
- | {{: | + | 3.2 Create group |
- | + | Group this 4 channels together | |
- | 3.2 Create group | + | |
- | Click the “group with selected” button | + | |
- | {{: | + | 3.3 Select Binary Counter pattern |
+ | 3.4 The plot should resemble a binary counter | ||
- | 3.3 Make sure channel group is enabled | + | {{ : |
- | It should look something like this. If it’s not enabled, enable it by clicking the left enable button. | + | |
- | {{: | ||
- | |||
- | 3.4 Select Binary Counter pattern | ||
- | From the right menu, select | ||
- | |||
- | {{: | ||
- | 3.5 The plot should resemble a binary counter | + | 3.5 Start pattern generation |
- | {{: | + | 3.6 Using the scope verify channels 0 and 1 |
- | + | ||
- | 3.6 Start pattern generation | + | |
- | 3.7 Using the scope verify channels 0 and 1 | + | |
{{: | {{: | ||
Line 121: | Line 92: | ||
3.8 Using the Scopy' | 3.8 Using the Scopy' | ||
- | {{: | + | {{ : |
</ | </ | ||
- | |||
- | ==== Channel group shuffling ==== | ||
- | < | ||
- | 4.1 Make sure the state of the instrument is the one at step (1 channelgroup with channels 0,1,2,3, binary counter, 5kHz, stopped) [[https:// | ||
- | |||
- | 4.2 Drag and drop Channel 6 in between channels 1 and 2 inside the channel group like in gif | ||
- | |||
- | {{: | ||
- | |||
- | 4.3 Drag and drop channel 3 from the channel group inbetween channels 0 and 1 like in gif “pg-2.gif” | ||
- | |||
- | {{: | ||
- | |||
- | 4.4 The instrument should look like this | ||
- | |||
- | {{: | ||
- | |||
- | 4.5 Select the channel group and channels 4 and 5 and click group with selected | ||
- | |||
- | {{: | ||
- | |||
- | 4.6 Using the logic analyzer verify channels 0-6 | ||
- | |||
- | {{: | ||
- | |||
- | </ | ||
- | |||
- | ==== Using drag and drop to create channel groups ==== | ||
- | < | ||
- | 1. Drag and drop channel 12 onto channel 9 like in gif “pg-3”. | ||
- | You should let go of the mouse button when the blue highlight shows up. | ||
- | {{: | ||
- | |||
- | 2. Select the newly created channel groups with channel 10 and 11 and group them (like in the previous steps) | ||
- | |||
- | 3. Enable the channel group | ||
- | |||
- | 4. Select channel group by clicking on it in the channel manager | ||
- | |||
- | 5. Select random pattern in the settings | ||
- | |||
- | {{: | ||
- | |||
- | 6. Start pattern generation | ||
- | |||
- | 7. Using logic analyzer verify lines 9, | ||
- | They pattern generated should be the same as in Scopy | ||
- | |||
- | {{: | ||
- | </ | ||
- | |||
- | ==== Hide inactive & colors & other UI ==== | ||
- | |||
- | < | ||
- | 1. Select a channel group by clicking it in the channel manager. Set name in the channel group settings to " | ||
- | |||
- | {{: | ||
- | |||
- | 2. Select a channel inside the channel manager. Change name to “DIOZERO” in the channel settings. | ||
- | |||
- | 3. Select LOW color as white, select HIGH color as orange from channel settings. | ||
- | |||
- | {{: | ||
- | |||
- | 4. Select “Hide Inactive” | ||
- | Scopy should look similar to this: | ||
- | |||
- | {{: | ||
- | |||
- | 5. Start pattern generation | ||
- | The signals should be generated the same way even though the inactive channels are missing. | ||
- | |||
- | 6. Show all | ||
- | Show all channels. Signals are generated in the same fashion | ||
- | |||
- | |||
- | </ | ||
==== Change settings while running ==== | ==== Change settings while running ==== | ||
Line 230: | Line 124: | ||
The UART decoder should pop up over channel 15 | The UART decoder should pop up over channel 15 | ||
- | {{: | + | {{ : |
4. Monitor the channel in the logic analyzer. Use UART decoder. Alternatively use a serial terminal connected to the channel. | 4. Monitor the channel in the logic analyzer. Use UART decoder. Alternatively use a serial terminal connected to the channel. | ||
- | |||
- | {{: | ||
5. Create a 3-channel group and select SPI pattern. Set SPI parameters at will, but make sure you send some data. | 5. Create a 3-channel group and select SPI pattern. Set SPI parameters at will, but make sure you send some data. | ||
- | |||
- | {{: | ||
6. Monitor the channels and use a SPI decoder | 6. Monitor the channels and use a SPI decoder | ||
Line 245: | Line 135: | ||
7. The channels should resemble the SPI pattern. | 7. The channels should resemble the SPI pattern. | ||
- | {{: | + | {{ : |
</ | </ | ||
**Return to [[university: | **Return to [[university: |