Jump to content

Tiva- Connected Launchpad DSO

Recommended Posts

Tiva- Connected Launchpad DSO

Here is a beginners version of an Oscilloscope and Network Analyser, using the Connected Launchpad as digitiser and a modified version of the CircuitGear Mini Graphic User Interface of Syscomp Electronic Design Ltd. www.syscompdesign.com.

1 channel differential @ 4 Msps or 2 channel diff. @ 2 Msps max.
The 12 bit ADCs sample always at 2Msps, on lower required speeds the signals are oversampled as much as practical for an output of 14 bit unsigned integers. This makes aliasing-filtering easier.
The timing is entirely done by the ADC-clock.

The software is made with "Energia version 0101E0012" ; thanks for this "easy to start with" tool.
and with the wiring_analog.c  from https://github.com/vladn2/Energia/ . (this one does not use interrupts).
There are many comments in the code to explain the workings.

There are timing problems while using Energia version 0101E0013 even with the new pde.jar for optimisation.

With a AD9850  direct digital synthesis (DDS) as sine-wave generator, output frequency resolution of 0.0291 Hz with a 125 MHz reference clock. This is based on: http://forum.stellarisiti.com/topic/558-ad9850-with-energia/




CircuitGear GUI modification.

The offset (new in vertical.tcl) and Gnd-shift (in cursors.tcl) is now handled in the GUI (display.tcl), not in hardware. In display.tcl is channel C embedded as product of chan.A and B for power measurement. Change of the vertical settings or the cursors ends in a re-plot of the screen with the old data for further investigation.

For the trigger-modes and options are buttons used, very handy especially for Single-shot to quickly stop acquisition when a freak signal occurs (the menus are still there). The Single-shot mode now also functions in the scan-mode, so that acquisition stops at the end of the screen.

While developing, it became necessary to add a ‘disconnect,  item to the hardware menu.

The Waveform Generator GUI sends its frequency value as one big number to the LaunchPad. Amplitude and offset are not used (yet).

In the Network Analyser mode the logarithmic frequency settings and the right plot limit are changed and the ‘End Frequency’ is as measurement step added.
The logarithmic steps are now set by the number of steps per decade.

To implement these changes, install the GUI from www.syscompdesign.com. Than rename the original tcl-files in the source-directory that must be replaced by the modified ones and copy the modified versions in the source-directory. Also copy the two images (these were necessary to better fit my screen) in the Images-directory.


Future plans:

Build the analog part.
Implement amplitude setting on the DDS.
Implement a Hi-Res-mode by using a longer circular buffer.


Tiva-DSO and GUI modification.zip

CircuitGear display.zip

Link to post
Share on other sites
  • 5 months later...

I have downloaded your package on 64 bit linux, and I would very much like to try it, but it says it needs tkTable. I have installed the tktable package, and it still says that it needs tkTable. Can you provide any help? I am not that familiar with tcl/tk. C/C++ has always been my playground    :)

Link to post
Share on other sites

Actually, I have gone through that, already and done the troubleshooting in there. Still having the issues with your software. It appears they do not use tktable. Your project does, however. At least, I can run their project, but when I make the changes with your project, I have the problems with tktable.

Link to post
Share on other sites

Hi Icdiman,


I used windows 7 and stopt this project, at least for now.


Since u say that their project runs ok, did you change the anwer on the "i" command?

If so, maybe change in their program the subprograms step by step. (or even line by line, I used Notepad++ for that).

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...